php-src/ext/opcache/tests/ct_eval_frameless_003.phpt
Ilija Tovilo 631bc81607
Implement stackless internal function calls
Co-authored-by: Dmitry Stogov <dmitry@zend.com>

Closes GH-12461
2024-02-06 17:42:28 +01:00

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