mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
MFH: fix #39850 (SplFileObject throws contradictory/wrong error messages when trying to open "php://wrong")
This commit is contained in:
parent
6e0b78cd4c
commit
a726dcaa99
2 changed files with 3 additions and 0 deletions
2
NEWS
2
NEWS
|
@ -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)
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue