summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-07-23 11:57:02 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-07-25 10:42:10 +0200
commit1cbcf0f4f1e9a14b3fc76f6d3e53b567a9464fd4 (patch)
treec90f41f18aa20ea31ad32d2260a49c2ad56f890c /scripts
parentdee243d475b088189862d30755aac7bb9cdd61b3 (diff)
downloadphp-git-1cbcf0f4f1e9a14b3fc76f6d3e53b567a9464fd4.tar.gz
Throw notice for plain wrapper fread/fwrite errors
Similar to what is done for socket read/write errors.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dev/bless_tests.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/dev/bless_tests.php b/scripts/dev/bless_tests.php
index 190ebfb86a..25a4843c07 100755
--- a/scripts/dev/bless_tests.php
+++ b/scripts/dev/bless_tests.php
@@ -53,6 +53,7 @@ function normalizeOutput(string $out): string {
$out = preg_replace('/in \/.+:\d+$/m', 'in %s:%d', $out);
$out = preg_replace('/^#(\d+) \/.+\(\d+\):/m', '#$1 %s(%d):', $out);
$out = preg_replace('/Resource id #\d+/', 'Resource id #%d', $out);
+ $out = preg_replace('/resource\(\d+\) of type/', 'resource(%d) of type', $out);
$out = preg_replace('/string\(\d+\) "([^"]*%d)/', 'string(%d) "$1', $out);
return $out;
}