mirror of
https://github.com/php/php-src.git
synced 2026-04-22 15:38:49 +02:00
e9f783fcdd
For rationale, see #6787 Extensions migrated in part 3: * ftp * gmp * iconv * opcache * shmop
27 lines
334 B
PHP
27 lines
334 B
PHP
--TEST--
|
|
JIT SEND_REF: 001
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.file_update_protection=0
|
|
opcache.jit_buffer_size=1M
|
|
--EXTENSIONS--
|
|
opcache
|
|
--FILE--
|
|
<?php
|
|
function foo(&$obj) {
|
|
}
|
|
class A {
|
|
function foo() {
|
|
for ($i = 0; $i < 10; $i++) {
|
|
foo($this);
|
|
}
|
|
echo "ok\n";
|
|
}
|
|
}
|
|
$a = new A;
|
|
$a->foo();
|
|
?>
|
|
--EXPECT--
|
|
ok
|