diff options
Diffstat (limited to 'ext/opcache/tests/preload_unresolved_prop_type.phpt')
-rw-r--r-- | ext/opcache/tests/preload_unresolved_prop_type.phpt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/opcache/tests/preload_unresolved_prop_type.phpt b/ext/opcache/tests/preload_unresolved_prop_type.phpt index 3e2accd19e..9e0b3570ee 100644 --- a/ext/opcache/tests/preload_unresolved_prop_type.phpt +++ b/ext/opcache/tests/preload_unresolved_prop_type.phpt @@ -11,7 +11,12 @@ require_once('skipif.inc'); if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows'); ?> --FILE-- +<?php +class Unknown { +} +$x = new Test; +$x->prop = new Unknown; +?> ===DONE=== ---EXPECTF-- -Warning: Can't preload class Test with unresolved property types in %s on line %d +--EXPECT-- ===DONE=== |