diff options
author | andrewnester <andrew.nester.dev@gmail.com> | 2017-01-24 16:38:30 +0300 |
---|---|---|
committer | Joe Watkins <krakjoe@php.net> | 2017-01-26 09:03:47 +0000 |
commit | f65ae82c55b986fbc1e140de998b4a9c44911cac (patch) | |
tree | 69b1ed421fdf796e75b46449760a3890b0b706f8 /ext/standard | |
parent | a15c1990ebf0dc7929511482ef9b59bad903b0bc (diff) | |
download | php-git-f65ae82c55b986fbc1e140de998b4a9c44911cac.tar.gz |
Fixed #73973 - debug_zval_dump() assertion error for resource consts with --enable-debug
Diffstat (limited to 'ext/standard')
-rw-r--r-- | ext/standard/tests/general_functions/bug73973.phpt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/standard/tests/general_functions/bug73973.phpt b/ext/standard/tests/general_functions/bug73973.phpt new file mode 100644 index 0000000000..8bb4daaab0 --- /dev/null +++ b/ext/standard/tests/general_functions/bug73973.phpt @@ -0,0 +1,9 @@ +--TEST-- +Bug #73973 debug_zval_dump() assertion error for resource consts with --enable-debug +--FILE-- +<?php +define('myerr', fopen('php://stderr', 'w')); +debug_zval_dump(myerr); +?> +--EXPECTF-- +resource(5) of type (stream) refcount(%d) |