summaryrefslogtreecommitdiff
path: root/ext/libxml
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2019-12-16 19:29:51 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2019-12-20 12:01:02 +0100
commit7bfeef602a908aed83a603cfdf3a7f93d24c15cc (patch)
tree7671f630e32c6f7cc3082b8ffea4a30b0989688c /ext/libxml
parent566b356ecac6cf9b18bd9d5112475a4aff488148 (diff)
downloadphp-git-7bfeef602a908aed83a603cfdf3a7f93d24c15cc.tar.gz
Promote warnings to exceptions in stream-related functions
GH-5017
Diffstat (limited to 'ext/libxml')
-rw-r--r--ext/libxml/tests/004.phpt8
1 files changed, 0 insertions, 8 deletions
diff --git a/ext/libxml/tests/004.phpt b/ext/libxml/tests/004.phpt
index d02fba2f6c..da96faad57 100644
--- a/ext/libxml/tests/004.phpt
+++ b/ext/libxml/tests/004.phpt
@@ -12,11 +12,8 @@ $ctxs = array(
new stdclass,
array('a'),
stream_context_create(),
- stream_context_create(array('file')),
- stream_context_create(array('file' => array('some_opt' => 'aaa')))
);
-
foreach ($ctxs as $ctx) {
try {
var_dump(libxml_set_streams_context($ctx));
@@ -31,7 +28,6 @@ echo "Done\n";
?>
--EXPECTF--
-Warning: stream_context_create(): options should have the form ["wrappername"]["optionname"] = $value in %s004.php on line %d
libxml_set_streams_context() expects parameter 1 to be resource, null given
bool(true)
libxml_set_streams_context() expects parameter 1 to be resource, string given
@@ -44,8 +40,4 @@ libxml_set_streams_context() expects parameter 1 to be resource, array given
bool(true)
NULL
bool(true)
-NULL
-bool(true)
-NULL
-bool(true)
Done