MFH: fix #39850 (SplFileObject throws contradictory/wrong error messages when trying to open "php://wrong")

This commit is contained in:
Antony Dovgal 2006-12-18 14:56:20 +00:00
parent 6e0b78cd4c
commit a726dcaa99
2 changed files with 3 additions and 0 deletions

2
NEWS
View file

@ -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)

View file

@ -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;
}