-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Labels
Description
Description
The following code:
<?php
$context = stream_context_create([
"http" => [
"uri_parser_class" => \Uri\Rfc3986\Uri::class,
],
]);
var_dump(file_get_contents("http://exa%23mple.org", context: $context));
Resulted in this output:
php: /home/phpfuzz/WorkSpace/flowfusion/php-src/ext/uri/php_uri.c:141: zend_result php_uri_get_property(const uri_internal_t *, uri_property_name_t, uri_component_read_mode_t, zval *): Assertion `result == FAILURE || (zval_get_type(&(*(zv))) == 6 && zend_gc_refcount(&((*(zv)).value.str)->gc) == 2) || zval_get_type(&(*(zv))) == 1 || zval_get_type(&(*(zv))) == 4' failed.
Aborted (core dumped)
To reproduce:
./php-src/sapi/cli/php ./test.php
Commit:
7e5ad5caf8e249453a84b4f62565188cf69b877f
Configurations:
CC="clang-12" CXX="clang++-12" CFLAGS="-DZEND_VERIFY_TYPE_INFERENCE" CXXFLAGS="-DZEND_VERIFY_TYPE_INFERENCE" ./configure --enable-debug --enable-address-sanitizer --enable-undefined-sanitizer --enable-re2c-cgoto --enable-fpm --enable-litespeed --enable-phpdbg-debug --enable-zts --enable-bcmath --enable-calendar --enable-dba --enable-dl-test --enable-exif --enable-ftp --enable-gd --enable-gd-jis-conv --enable-mbstring --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-zend-test --with-zlib --with-bz2 --with-curl --with-enchant --with-gettext --with-gmp --with-mhash --with-ldap --with-libedit --with-readline --with-snmp --with-sodium --with-xsl --with-zip --with-mysqli --with-pdo-mysql --with-pdo-pgsql --with-pgsql --with-sqlite3 --with-pdo-sqlite --with-webp --with-jpeg --with-freetype --enable-sigchild --with-readline --with-pcre-jit --with-iconv
Operating System:
Ubuntu 20.04 Host, Docker 0599jiangyc/flowfusion:latest
This report is automatically generated by FlowFusion
PHP Version
7e5ad5caf8e249453a84b4f62565188cf69b877f
Operating System
No response