php-src
php-src copied to clipboard
The PHP Interpreter
### Description The following code (https://3v4l.org/pvIjH): ```php $v) { var_dump($v); } ``` Resulted in this output: ``` int(1) ``` But I expected this output instead: ``` int(1) int(2) ``` ###...
bcsub incorrect result when second operand precision is higher than the scale applied to the result
### Description The following code: ```php
### Description ``` (float) '1'; (float) '1.0'; (float) ''; (float) 'x'; // should always warn (int) '1'; (int) '1.0'; (int) ''; (int) 'x'; // should always warn ``` https://3v4l.org/gDLOv This...
### Description Mid-sized test-suite seems to halt at `phpdbg_end_oplog()` - i only installed xdebug to trace it. The following code: ```bash phpdbg -qrr -dmemory_limit="-1" -dxdebug.mode=trace -dxdebug.start_with_request=yes ./vendor/bin/phpunit --coverage-clover=build/logs/clover.xml ``` Resulted...
### Description The following code: ```php ``` PDO is also affected. I dealt with a PHP user's issue where they had a password with a `;` in it. Unfortunately, the...
### Description The following code: ```php
### Description I just compiled php-8.1.4 with the new compiler clang-14. It said: php-8.1.4/sapi/phpdbg/phpdbg.c:861:7: warning: use of bitwise '|' with boolean operands [-Wbitwise-instead-of-logical] php-8.1.4/sapi/phpdbg/phpdbg.c:861:8: warning: use of bitwise '&' with...
### Description The following code: ```php
### Description I don't have a simple reproducer unfortunately. It's happening during a complex import task. But we managed to get the following backtrace. We're not using curl directly, it's...
### Description Since PHP 8.1 local settings of a workdir (from registry of windows) are loaded for scripts from another directory (Case D in STR). Is it bug or new...