mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
13 lines
169 B
Plaintext
13 lines
169 B
Plaintext
|
--TEST--
|
||
|
First Class Callable from NEW
|
||
|
--FILE--
|
||
|
<?php
|
||
|
class Foo {
|
||
|
|
||
|
}
|
||
|
|
||
|
new Foo(...);
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Fatal error: Cannot create Closure for new expression in %s on line 6
|