xref: /PHP-7.1/tests/lang/bug19566.phpt (revision c0dfdd2f)
1--TEST--
2Bug #19566 (get_declared_classes() segfaults)
3--FILE--
4<?php
5class foo {}
6$result = get_declared_classes();
7var_dump(array_search('foo', $result));
8?>
9--EXPECTF--
10int(%d)
11