xref: /PHP-7.3/ext/spl/tests/bug77360.phpt (revision 16c62a81)
1--TEST--
2Bug #77360: class_uses causes segfault
3--FILE--
4<?php
5
6class foobar {}
7$str = "foo";
8$str .= "bar";
9var_dump(class_uses($str, false));
10var_dump(class_uses($str, false));
11var_dump($str);
12
13?>
14--EXPECT--
15array(0) {
16}
17array(0) {
18}
19string(6) "foobar"
20