diff --git a/ext/spl/tests/bug81691.phpt b/ext/spl/tests/bug81691.phpt index 597e37a9c82..5ae5dd6b08f 100644 --- a/ext/spl/tests/bug81691.phpt +++ b/ext/spl/tests/bug81691.phpt @@ -10,6 +10,6 @@ var_dump($obj->fgets()); ?> --EXPECTF-- -Warning: fclose(): %d is not a valid stream resource in %s on line %d +Warning: fclose(): cannot close the provided stream, as it must not be manually closed in %s on line %d string(6) "flags & PHP_STREAM_FLAG_NO_FCLOSE) != 0) { - php_error_docref(NULL, E_WARNING, ZEND_LONG_FMT " is not a valid stream resource", stream->res->handle); + php_error_docref(NULL, E_WARNING, "cannot close the provided stream, as it must not be manually closed"); RETURN_FALSE; } diff --git a/ext/standard/tests/filters/bug54350.phpt b/ext/standard/tests/filters/bug54350.phpt index da4429ef68d..046db0483a9 100644 --- a/ext/standard/tests/filters/bug54350.phpt +++ b/ext/standard/tests/filters/bug54350.phpt @@ -22,5 +22,5 @@ fwrite($fd, "foo"); ?> --EXPECTF-- -Warning: fclose(): %d is not a valid stream resource in %s on line %d +Warning: fclose(): cannot close the provided stream, as it must not be manually closed in %s on line %d fclose(): Argument #1 ($stream) must be an open stream resource diff --git a/ext/xmlwriter/tests/bug79029.phpt b/ext/xmlwriter/tests/bug79029.phpt index 7b091e80e84..22feb4599e7 100644 --- a/ext/xmlwriter/tests/bug79029.phpt +++ b/ext/xmlwriter/tests/bug79029.phpt @@ -26,7 +26,7 @@ okey @unlink("bug79029_3.txt"); ?> --EXPECTF-- -Warning: fclose(): %d is not a valid stream resource in %sbug79029.php on line %d +Warning: fclose(): cannot close the provided stream, as it must not be manually closed in %sbug79029.php on line %d -Warning: fclose(): %d is not a valid stream resource in %sbug79029.php on line %d +Warning: fclose(): cannot close the provided stream, as it must not be manually closed in %sbug79029.php on line %d okey