mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
631bc81607
Co-authored-by: Dmitry Stogov <dmitry@zend.com> Closes GH-12461
16 lines
215 B
PHP
16 lines
215 B
PHP
--TEST--
|
|
Test ct eval of frameless function
|
|
--EXTENSIONS--
|
|
opcache
|
|
--FILE--
|
|
<?php
|
|
class Foo {
|
|
public function __toString() {
|
|
return strpos('foo', 'o', 0);
|
|
}
|
|
}
|
|
echo (string)new Foo();
|
|
?>
|
|
--EXPECT--
|
|
1
|