php-src
php-src copied to clipboard
The PHP Interpreter
### Description The path `/ /../ /../ /../ /../path/to/file` is considered invalid by some file check functions: ```php false realpath("/ /../ /../ /../ /../path/to/file"); // -> false filesize("/ /../ /../...
### Description The following code: ```php [$w - 1, 0, -$w, $h], 'vertical flip (negative src_height)' => [0, $h - 1, $w, -$h], 'both (negative src_width/src_height)' => [$w - 1,...
### Description Since the bundled libmagic was upgraded to 5.48 (bbb345b363), `finfo` no longer recognizes TrueType fonts. The following code: ```php file('OpenSans-Regular.ttf')); ``` Resulted in this output on PHP 8.6.0-dev...
### Description The following code: ```php open(__DIR__ . "/test.zip", ZipArchive::CREATE | ZipArchive::OVERWRITE); file_put_contents(__DIR__ . "/test.txt", "contents"); $zip->addFile(__DIR__ . "/test.txt", "file.txt"); unlink(__DIR__ . "/test.txt"); set_error_handler(function () { throw new Exception; });...
### Description When `opcache_compile_file()` is given a file that fails with a fatal compile error, the function catches the bailout, emits a warning, returns `false` and lets the script continue....
### Description The following code: ```php stream, "42"); } return PSFS_ERR_FATAL; } } for($i = 0; $i < 5; ++$i) { var_dump(stream_filter_register("test_filter$i", "test_filter$i")); filter_errors_test("test_filter$i", "42"); } ``` Resulted in this...
### Description The following code: ```php ptr == prop' failed. Aborted (core dumped) ``` ### PHP Version PHP 8.4.0-dev ### Operating System ubuntu 22.04
### Description Attempt to build PHP with gcc-14 fails due to incompatible pointer types error. Resulted in this output: ``` /bin/sh /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php84/work/php-8.4.0beta3/libtool --silent --preserve-dup-deps --tag=CC --mode=compile ccache /opt/local/bin/gcc-mp-14 -Imain/streams/ -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php84/work/php-8.4.0beta3/main/streams/...
### Description The following code: ```php
### Description The following code: ```php