diff options
author | Antony Dovgal <tony2001@php.net> | 2006-12-18 14:56:20 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-12-18 14:56:20 +0000 |
commit | a726dcaa99fb4417b1aeab08b630535d3f4024ac (patch) | |
tree | b42804a4f5609aadfc9873b1d05dbaadd07724e5 | |
parent | 6e0b78cd4c5735df1f0c4a17e29773a4aa685453 (diff) | |
download | php-git-a726dcaa99fb4417b1aeab08b630535d3f4024ac.tar.gz |
MFH: fix #39850 (SplFileObject throws contradictory/wrong error messages when trying to open "php://wrong")
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | ext/standard/php_fopen_wrapper.c | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -6,6 +6,8 @@ PHP NEWS . cookies . canary protection (debug build only) . random generation of cookies and canaries +- Fixed bug #39850 (SplFileObject throws contradictory/wrong error messages + when trying to open "php://wrong"). (Tony) - Fixed bug #39832 (SOAP Server: parameter not matching the WSDL specified type are set to 0). (Dmitry) diff --git a/ext/standard/php_fopen_wrapper.c b/ext/standard/php_fopen_wrapper.c index 200ec5f2db..e533f5535e 100644 --- a/ext/standard/php_fopen_wrapper.c +++ b/ext/standard/php_fopen_wrapper.c @@ -276,6 +276,7 @@ php_stream * php_stream_url_wrap_php(php_stream_wrapper *wrapper, char *path, ch return stream; } else { /* invalid php://thingy */ + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid php:// URL specified"); return NULL; } |