summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorJoe Watkins <krakjoe@php.net>2017-01-26 09:04:07 +0000
committerJoe Watkins <krakjoe@php.net>2017-01-26 09:04:25 +0000
commit2d339fa4d1e82c888e4f514a741eb7ac14055671 (patch)
treeb5d01e060438ea91f27694f1f1f99d1e35ca8e18 /ext
parent76a7470160f977e486a1c9953012241abb5c1159 (diff)
parentf65ae82c55b986fbc1e140de998b4a9c44911cac (diff)
downloadphp-git-2d339fa4d1e82c888e4f514a741eb7ac14055671.tar.gz
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0: Fixed #73973 - debug_zval_dump() assertion error for resource consts with --enable-debug
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/tests/general_functions/bug73973.phpt9
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)