php-src
php-src copied to clipboard
The PHP Interpreter
### Description The following code fetches a object with a single property whose name and value is '42'. ```php query('SELECT 42'); $obj = $res->fetch_object(); $prop = 42; var_dump($obj); echo ">{$obj->$prop}{$obj->$prop}
### Description Currently, PHP 8.1 is shipped with source files of LSAPI 7.9. Support for PHP 8.1 is available from 8.0 and newer. Litespeed environment variables like $VH_USER, $VH_ROOT and...
### Description Hi, We've come across an interesting issue where an instance of the php-fpm pool ran by one user gets stuck restarting and tries to kill another user's php-fpm...
### Description I got a strange one :) There is an inconsistency between php-cgi and php-cli if following conditions are meet. - Generate an array with `range()` where one argument...
### Description The following code: ```php
### Description The following code: ```php
### Description I believe that a lot of code in php-src/pecls relies on the fact that the pointer of Z_OBJPROP_P doesn't change, for non-empty properties tables. There's may be more...
### Description The following code: ```php 'Test', ]; private const TEST = 'test'; } class B extends A { } $r = new ReflectionClass(B::class); print_r($r->getConstants()); ``` Resulted in this output:...
### Description I've been trying to modernize the build system of an extension (specifically PDO_IBM, so we can do better CI), including [replacing an old and crufty PDO check](https://github.com/php/pecl-database-pdo_ibm/pull/6/commits/6510dd4e9a4de052763693bcce8ddc78945eeafc) (that...
### Description The following code leaks memory when observed: ```php call($object); } ``` To reproduce, run with `php -dzend_test.observer.enabled=1 -dzend_test.observer.observe_all=1 -dzend_test.observer.show_output=0` and see memory consumption explode. ### PHP Version PHP8.0...