summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-12-18 14:56:20 +0000
committerAntony Dovgal <tony2001@php.net>2006-12-18 14:56:20 +0000
commita726dcaa99fb4417b1aeab08b630535d3f4024ac (patch)
treeb42804a4f5609aadfc9873b1d05dbaadd07724e5
parent6e0b78cd4c5735df1f0c4a17e29773a4aa685453 (diff)
downloadphp-git-a726dcaa99fb4417b1aeab08b630535d3f4024ac.tar.gz
MFH: fix #39850 (SplFileObject throws contradictory/wrong error messages when trying to open "php://wrong")
-rw-r--r--NEWS2
-rw-r--r--ext/standard/php_fopen_wrapper.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 9d8f849c60..0621dab911 100644
--- a/NEWS
+++ b/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)
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;
}