php-src
php-src copied to clipboard
The PHP Interpreter
### Description The following code: ```php
### Description The following code: ```php format($args); var_dump($result); var_dump(intl_get_error_message()); ``` Resulted in this output: ``` bool(false) string(107) "No strategy to convert the value given for the argument with key '1'...
### Description When running the following code: ```php next(); $it->__construct([]); ``` PHP will report a memory leak ("Warning: Leaked 1 hashtable iterators in Unknown on line 0"): ``` ==271560== Memcheck,...
### Description When running the following code: ```php start(); echo "Value from fiber suspending: ", $value, PHP_EOL; $fiber->__construct(function (): void { echo "Bar"; $value = Fiber::suspend('new'); echo "Changed: ", $value,...
### Description OpenSSL became more strict about unexpected EOF (not sending close notify) in 1.1.1e but reverted that change in 1.1.1f due to the huge amount of non-compliant servers. With...
### Description The following code: ``` php -r "var_dump(openssl_x509_checkpurpose(file_get_contents('v_crt.pem'), X509_PURPOSE_SSL_SERVER, array('v_ca.pem')));" ``` Resulted in this output: ``` bool(false) ``` But I expected this output instead: ``` bool(true) ``` where v_cert.pem...
### Description The following code: ```
### Description during review of some application code I came across implementation of allow_self_signed option of ssl_context and it seem to me that there's an uninitialized value used in condition...
### Description How to compile PHP directly into binary to run
### Description The following code: ```php ``` Resulted in this output: ``` Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in E:\connect.php:8 Stack trace: #0 {main} thrown in E:\connect.php...