xref: /PHP-8.4/sapi/phpdbg/tests/gh15268.phpt (revision a6c547d1)
1--TEST--
2GH-15268 (heap buffer overflow in phpdbg (zend_hash_num_elements() Zend/zend_hash.h))
3--SKIPIF--
4<?php
5if (function_exists('opcache_get_status')) die('skip not for opcache because it will link');
6?>
7--FILE--
8<?php
9class B extends A {
10}
11class A {
12}
13?>
14--PHPDBG--
15i classes
16q
17--EXPECTF--
18[Successful compilation of %s]
19prompt> [User Classes (2)]
20User Class B (0)
21|-------- User Class A (not yet linked because declaration for parent was not encountered when declaring the class)
22|---- in %s on line %d
23User Class A (0)
24|---- in %s on line %d
25prompt>
26