Bug #80363 [NEW]: TypeError with nullable types with JIT enabled

From: Date: Fri, 13 Nov 2020 17:12:27 +0000
Subject: Bug #80363 [NEW]: TypeError with nullable types with JIT enabled
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230341@lists.php.net to get a copy of this message
From: security at paragonie dot com Operating system: N/A PHP version: 8.0.0RC4 Package: *General Issues Bug Type: Bug Bug description:TypeError with nullable types with JIT enabled Description: ------------ https://github.com/paragonie/constant_time_encoding/issues/26 This was reported in PHP-8.0-RC3 and there is nothing in the NEWS file to indicate it's fixed in RC4. https://github.com/php/php-src/blob/f5be0e5110ff816d2ce168c154cb3575d08e3cad/NEWS Test script: --------------- See Github issue. Expected result: ---------------- No TypeError Actual result: -------------- TypeError: mb_substr(): Argument #3 ($length) must be of type ?int, null given #34 /vendor/paragonie/constant_time_encoding/src/Binary.php(76): mb_substr #33 /vendor/paragonie/constant_time_encoding/src/Binary.php(76): ParagonIE\ConstantTime\Binary::safeSubstr #32 /vendor/paragonie/hidden-string/src/HiddenString.php(173): ParagonIE\HiddenString\HiddenString::safeStrcpy #31 /vendor/paragonie/hidden-string/src/HiddenString.php(56): ParagonIE\HiddenString\HiddenString::__construct #30 /vendor/paragonie/halite/src/Symmetric/Crypto.php(208): ParagonIE\Halite\Symmetric\Crypto::decryptWithAd #29 /vendor/paragonie/halite/src/Symmetric/Crypto.php(105): ParagonIE\Halite\Symmetric\Crypto::decrypt #28 /vendor/philetaylor/doctrine-encrypt/Encryptors/HaliteEncryptor.php(82): Philetaylor\DoctrineEncryptBundle\Encryptors\HaliteEncryptor::decrypt -- Edit bug report at https://bugs.php.net/bug.php?id=80363&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80363&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80363&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80363&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80363&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80363&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80363&r=support Expected behavior: https://bugs.php.net/fix.php?id=80363&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80363&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80363&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80363&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80363&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80363&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80363&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80363&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80363&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80363&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80363&r=mysqlcfg

« previous php.bugs (#230341) next »