1--TEST--
2Observer: Frameless calls are properly observable
3--EXTENSIONS--
4zend_test
5--INI--
6zend_test.observer.enabled=1
7zend_test.observer.show_output=1
8--FILE--
9<?php
10function _strpos(string $str) {
11    return \strpos($str, 'o', 1);
12}
13var_dump(_strpos('foo'));
14var_dump(_strpos('foo')); // second time, with no observers detected
15?>
16--EXPECTF--
17<!-- init '%s' -->
18<!-- init _strpos() -->
19<!-- init strpos() -->
20<!-- init var_dump() -->
21int(1)
22int(1)
23