php-src
php-src copied to clipboard
The PHP Interpreter
### Description If an anonymous function is defined inside a method, attempting to create a new instance of any attribute attached to it, through reflection, that only targets functions (`#[Attribute(Attribute::TARGET_FUNCTION)]`)...
### Description I have faced with similar problem in **pdo_mysql** too while building and testing mentioned [here](https://github.com/php/php-src/issues/8419) and here is fix sed -i -e "s@'/ext/pdo/tests'@'/../../ext/pdo/tests'@g" /usr/src/php/ext/pdo_mysql/tests/common.phpt but actually I've got...
### Description The following code: ```bash cd /usr/src/php/ext/json && phpize && ./configure && make ``` Resulted in this output: ``` Build complete. Don't forget to run 'make test'. ``` Config...
### Description I have faced with problem in **soap** extension while building and testing **tests/bug73037.phpt** Resulted in this output: ``` Iteration 0 HTTP/1.1 200 OK Date: Fri, 22 Apr 2022...
### Description If openssl 1.1.1n is configured & built with any combination of the `Configure [no- ...]` options: ``` no-md2 no-md4 no-md5 no-rmd160 ``` While building php 8.0.18, linking results...
### Description The following code: ```php add(IntlCalendar::FIELD_DAY_OF_MONTH, 1); echo IntlDateFormatter::formatObject($cal), "\n"; $cal->add(IntlCalendar::FIELD_SECOND, 1); echo IntlDateFormatter::formatObject($cal), "\n"; ``` Resulted in this output: ``` Mar 12, 2022, 1:59:59 AM Mar 13, 2022,...
### Description The following code: ```php new("bar(*)(void)"); FFI::addr($x)[0] = fn() => $ffi->new("bar"); var_dump($x()); ``` Resulted in these memory leaks: ``` object(FFI\CData:struct )#5 (1) { ["a"]=> int(0) } [Sun Apr 24...
### Description Hi I was trying to build tokenizer and catch next error The following code: ```bash ./configure && make ``` Resulted in this output: ``` make: *** No rule...
### Description The following code: ```php offsetExists($obj1)); var_dump($wm->offsetExists($obj2)); var_dump($os->offsetExists($obj1)); var_dump($os->offsetExists($obj2)); foreach ($wm as $key => $value) { if ($key === $obj1) { echo 'key $obj1 is always here'; } }...
### Description Using the `zend_hash_iterators_*` API, non-empty arrays are properly marked as poisoned in the `HashTableIterator` entries when destroyed. However there is an edge case: if `nNumUsed == 0` (thanks...