mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
e9f783fcdd
For rationale, see #6787 Extensions migrated in part 3: * ftp * gmp * iconv * opcache * shmop
19 lines
360 B
PHP
19 lines
360 B
PHP
--TEST--
|
|
Test that script cached info is correct
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.file_update_protection=0
|
|
opcache.validate_timestamps=1
|
|
opcache.file_cache_only=0
|
|
--EXTENSIONS--
|
|
opcache
|
|
--FILE--
|
|
<?php
|
|
var_dump(opcache_is_script_cached(__FILE__));
|
|
var_dump(opcache_is_script_cached("nonexistent.php"));
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(false)
|