]> granicus.if.org Git - php/commit
Check for exception after applying stream filters
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 8 Oct 2019 10:18:59 +0000 (12:18 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 8 Oct 2019 10:32:57 +0000 (12:32 +0200)
commit2fdd142f9941a05bdcffb0d6c11662ec333e6e09
tree4d703e6db04432ca7f1dfa5cb7cdf5a6211af0c5
parentd6fdc17f7fea5a4c4bfaf801f44d8b0a531428da
Check for exception after applying stream filters

This makes the stream opening actually fail, and avoids assertion
failures when we tokenize with EG(exception) set.

Also avoid throwing an additional warning after an exception has
already been thrown.
ext/standard/php_fopen_wrapper.c
ext/standard/tests/file/bug38450_2.phpt
ext/standard/tests/file/bug38450_3.phpt
ext/standard/tests/filters/object_init_failure_2.phpt [new file with mode: 0644]
ext/standard/tests/streams/bug77664.phpt
ext/standard/tests/streams/user-stream-error.phpt
main/streams/streams.c