php-src
php-src copied to clipboard
The PHP Interpreter
### Description The following code: ```php
### Description I would expect the the execution context to be restored following the `PHP_EMBED_END_BLOCK()` macro, but this doesn't seem to be the case for signal handlers. here is a...
### Description Running this code with the JIT enabled results in a segfault (sometimes I have to run it 2-3 times before it happens): https://gist.github.com/therealgaxbo/5e7b111c994bf932e3e7870ac258babe ``` $ php -v PHP...
### Description Hi, I don't know if this can be considered an error or a feature, depending of the view point, but I have detected that some of my code...
### Description The following code: ```php
Uncaught TypeError: Memcached::setMulti(): Argument #2 ($expiration) must be of type int, int given
### Description The following code: ```php setMulti(['hello' => 'world'], 2); ``` Resulted in this output: ``` Fatal error: Uncaught TypeError: Memcached::setMulti(): Argument #2 ($expiration) must be of type int, int...
### Description Getting the DOM extension version from the reflection API results in "20031129" no matter which PHP version is used: https://3v4l.org/VIJKY I would expect it to behave like other...
### Description I deliberately avoid the callable type in my code because it produces misleading error messages. Examples: ```php $cb = [PhpTokn::class, 'tokenize']; // typo in class name (fn(callable $cb)...
### Description > I'm not quite sure where to open this topic? Is it better to post it here or in php.internals or elsewhere? PHP has made incredible progress in...
### Description The following code: ```php $x = new SplFixedArray(/*count*/ 1); php > var_export((array)$x); array ( 0 => NULL, ) php > $y = clone $x; ``` Resulted in this...