php-src
php-src copied to clipboard
The PHP Interpreter
### Description The following code: ```php echo quoted_printable_encode("X" . str_repeat("\xc4\x85", 15)); ``` Resulted in this output (breaking C485 over two lines): ``` x=C4=85=C4=85=C4=85=C4=85=C4=85=C4=85=C4=85=C4=85=C4=85=C4=85=C4=85=C4= =85=C4=85=C4=85=C4=85 ``` But I expected this output...
### Description ### Description On a busy php-fpm server, an application that calls `opcache_reset()` on many requests makes **every newly spawned worker start bigger and bigger**, without limit, until FPM...
### Description `quoted_printable_encode()` is documented to follow RFC 2045 section 6.7, which limits encoded lines to 76 characters. Input bytes in the range 0xF5 to 0xFF are encoded as `=XX`...
### Description `posix_get_last_error()` and `socket_last_error()` without a socket return an error left by a previous request in the same worker. `POSIX_G(last_error)` and `SOCKETS_G(last_error)` are set to 0 in GINIT and...
### Description Since #25081, master doesn't build with GCC 15: ``` ext/session/php_session.h:252:34: error: expected identifier or '(' before 'zend_result' 252 | PHPAPI ZEND_ATTRIBUTE_DEPRECATED zend_result php_session_valid_key(const char *key); | ^~~~~~~~~~~ ```...
### Description It appears that ? parameter substitution does not work in sub queries. Results from hard coded queries work fine, as they do from a SQLite command line. See...
### Description `Phar::setSignatureAlgorithm(Phar::OPENSSL, $key)` keeps a pointer into the `$key` string in `PHAR_G(openssl_privatekey)` and doesn't copy it. Here the key string from `file_get_contents()` is freed right after the call, and...
### Description The following code: ```php children[] = $this; } $this->children[] = $this; } function __destruct() { $this->children = NULL; } } define("MAX", 16); for ($n = 0; $n <...