mirror of
https://github.com/php/php-src.git
synced 2025-08-15 05:28:50 +02:00
bless_tests: Replace the object ID in var_dump()
for namespaced classes (#19174)
This commit is contained in:
parent
2c42479890
commit
6ca6d569ff
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ function normalizeOutput(string $out): string {
|
|||
$out = preg_replace('/in (\/|[A-Z]:\\\\)\S+ on line \d+/m', 'in %s on line %d', $out);
|
||||
$out = preg_replace('/in (\/|[A-Z]:\\\\)\S+:\d+/m', 'in %s:%d', $out);
|
||||
$out = preg_replace('/\{closure:(\/|[A-Z]:\\\\)\S+:\d+\}/', '{closure:%s:%d}', $out);
|
||||
$out = preg_replace('/object\(([A-Za-z0-9]*)\)#\d+/', 'object($1)#%d', $out);
|
||||
$out = preg_replace('/object\(([A-Za-z0-9\\\\]*)\)#\d+/', 'object($1)#%d', $out);
|
||||
$out = preg_replace('/^#(\d+) (\/|[A-Z]:\\\\)\S+\(\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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue