php-src
php-src copied to clipboard
The PHP Interpreter
### Description The following code: ```php value = new Test; test($box); foreach ([1, 2, 3] as &$box) {} ``` Resulted in this output: ``` php: Zend/zend_objects_API.c:188: void zend_objects_store_del(zend_object *): Assertion...
### Description # It has been confirmed that: - PHP 8.1.29 - The private key matches the public key - Data transfer is complete - Base64 encoding used for transmission...
### Description ### problem [Extracting the `HTTP_ACCEPT_LANGUAGE` header](https://stackoverflow.com/a/3771447/5008962) is [a very common task](https://neidl.net/technik/php-doku/function.http-negotiate-language.html#86787) and [many implementations in PHP apps exist](https://www.jesseskinner.com/blog/use-accept-language-header/). Some of the quite crude (only take the first two...
### Description Based on: https://web.archive.org/web/20251017002820/https://slcyber.io/assetnote-security-research-center/a-novel-technique-for-sql-injection-in-pdos-prepared-statements/ When developers write SQL statements by concatenating user input directly into the query, the input can contain a NUL byte which will then confuse the...
### Description This is a copy of https://github.com/doctrine/dbal/issues/7146 opened at doctrine/dbal, as the same change can be considered in php-src as well. I've been linked to a quite interesting article...
### Description The following code: ```php
### Description The following code: ```php "A", 15 => "B", default => "C", }; ``` Resulted in this output: ``` L0002 0000 MATCH int(15) 13: 0001, 15: 0003, default: 0005...
### Description The following code: ```php getBackingValue(); ``` Resulted in this output: ``` *explosion* ``` But I expected this output instead: ``` exception ``` ### PHP Version ```plain 8.4+ ```...
### Description The following code: ```php WSDL_CACHE_NONE]); $c->test([[1]]); ``` Resulted in this output: ``` ext/soap/php_encoding.c:3114:5: runtime error: member access within null pointer of type 'struct _encode' #0 0x3e95282 in to_xml_list...
## Description `opcache.opt_debug_level` lets the CLI SAPI dump the bytecode of a file without executing it, for instance: ``` php -d opcache.enable_cli=1 -d opcache.opt_debug_level=0x10000 -r 'opcache_compile_file("file.php");' ``` For tools that...