mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
Made test compatible with O+
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
--TEST--
|
||||
Bug #55156 (ReflectionClass::getDocComment() returns comment even though the class has none)
|
||||
--INI--
|
||||
opcache.save_comments=1
|
||||
opcache.load_comments=1
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
026: Name ambiguity (class name & namespace name)
|
||||
--INI--
|
||||
opcache.optimization_level=0
|
||||
--FILE--
|
||||
<?php
|
||||
namespace Foo;
|
||||
|
||||
@@ -21,6 +21,14 @@ $sig1 = $phar->getSignature();
|
||||
|
||||
include $pname . '/a.php';
|
||||
|
||||
if (function_exists("opcache_get_status")) {
|
||||
$status = opcache_get_status();
|
||||
if ($status["opcache_enabled"]) {
|
||||
ini_set("opcache.revalidate_freq", "0");
|
||||
sleep(2);
|
||||
}
|
||||
}
|
||||
|
||||
file_put_contents($pname .'/a.php', "modified!\n");
|
||||
file_put_contents($pname .'/b.php', "another!\n");
|
||||
|
||||
|
||||
@@ -15,6 +15,15 @@ $files = array();
|
||||
$files['a.php'] = '<?php echo "This is a\n"; ?>';
|
||||
$files['b.php'] = '<?php echo "This is b\n"; ?>';
|
||||
$files['b/c.php'] = '<?php echo "This is b/c\n"; ?>';
|
||||
|
||||
if (function_exists("opcache_get_status")) {
|
||||
$status = opcache_get_status();
|
||||
if ($status["opcache_enabled"]) {
|
||||
ini_set("opcache.revalidate_freq", "0");
|
||||
sleep(2);
|
||||
}
|
||||
}
|
||||
|
||||
include 'files/phar_test.inc';
|
||||
|
||||
include $pname . '/a.php';
|
||||
|
||||
@@ -15,6 +15,15 @@ $files = array();
|
||||
$files['a.php'] = '<?php echo "This is a\n"; ?>';
|
||||
$files['b.php'] = '<?php echo "This is b\n"; ?>';
|
||||
$files['b/c.php'] = '<?php echo "This is b/c\n"; ?>';
|
||||
|
||||
if (function_exists("opcache_get_status")) {
|
||||
$status = opcache_get_status();
|
||||
if ($status["opcache_enabled"]) {
|
||||
ini_set("opcache.revalidate_freq", "0");
|
||||
sleep(2);
|
||||
}
|
||||
}
|
||||
|
||||
include 'files/phar_test.inc';
|
||||
|
||||
include $pname . '/a.php';
|
||||
|
||||
@@ -15,6 +15,14 @@ $pname = 'phar://' . $fname;
|
||||
|
||||
file_put_contents($pname . '/a.php', "brand new!\n");
|
||||
|
||||
if (function_exists("opcache_get_status")) {
|
||||
$status = opcache_get_status();
|
||||
if ($status["opcache_enabled"]) {
|
||||
ini_set("opcache.revalidate_freq", "0");
|
||||
sleep(2);
|
||||
}
|
||||
}
|
||||
|
||||
$phar = new Phar($fname);
|
||||
var_dump($phar->isFileFormat(Phar::TAR));
|
||||
$sig1 = md5_file($fname);
|
||||
|
||||
@@ -18,6 +18,14 @@ $phar['b/c.php'] = '<?php echo "This is b/c\n"; ?>';
|
||||
$phar->setStub('<?php __HALT_COMPILER(); ?>');
|
||||
$phar->stopBuffering();
|
||||
|
||||
if (function_exists("opcache_get_status")) {
|
||||
$status = opcache_get_status();
|
||||
if ($status["opcache_enabled"]) {
|
||||
ini_set("opcache.revalidate_freq", "0");
|
||||
sleep(2);
|
||||
}
|
||||
}
|
||||
|
||||
include $alias . '/a.php';
|
||||
include $alias . '/b.php';
|
||||
include $alias . '/b/c.php';
|
||||
|
||||
@@ -18,6 +18,14 @@ $phar['b/c.php'] = '<?php echo "This is b/c\n"; ?>';
|
||||
$phar->setStub('<?php __HALT_COMPILER(); ?>');
|
||||
$phar->stopBuffering();
|
||||
|
||||
if (function_exists("opcache_get_status")) {
|
||||
$status = opcache_get_status();
|
||||
if ($status["opcache_enabled"]) {
|
||||
ini_set("opcache.revalidate_freq", "0");
|
||||
sleep(2);
|
||||
}
|
||||
}
|
||||
|
||||
include $alias . '/a.php';
|
||||
include $alias . '/b.php';
|
||||
include $alias . '/b/c.php';
|
||||
|
||||
@@ -15,6 +15,14 @@ $pname = 'phar://' . $fname;
|
||||
|
||||
file_put_contents($pname . '/a.php', "brand new!\n");
|
||||
|
||||
if (function_exists("opcache_get_status")) {
|
||||
$status = opcache_get_status();
|
||||
if ($status["opcache_enabled"]) {
|
||||
ini_set("opcache.revalidate_freq", "0");
|
||||
sleep(2);
|
||||
}
|
||||
}
|
||||
|
||||
$phar = new Phar($fname);
|
||||
var_dump($phar->isFileFormat(Phar::ZIP));
|
||||
$sig1 = md5_file($fname);
|
||||
|
||||
@@ -18,6 +18,14 @@ $phar['b/c.php'] = '<?php echo "This is b/c\n"; ?>';
|
||||
$phar->setStub('<?php __HALT_COMPILER(); ?>');
|
||||
$phar->stopBuffering();
|
||||
|
||||
if (function_exists("opcache_get_status")) {
|
||||
$status = opcache_get_status();
|
||||
if ($status["opcache_enabled"]) {
|
||||
ini_set("opcache.revalidate_freq", "0");
|
||||
sleep(2);
|
||||
}
|
||||
}
|
||||
|
||||
include $alias . '/a.php';
|
||||
include $alias . '/b.php';
|
||||
include $alias . '/b/c.php';
|
||||
|
||||
@@ -18,6 +18,14 @@ $phar['b/c.php'] = '<?php echo "This is b/c\n"; ?>';
|
||||
$phar->setStub('<?php __HALT_COMPILER(); ?>');
|
||||
$phar->stopBuffering();
|
||||
|
||||
if (function_exists("opcache_get_status")) {
|
||||
$status = opcache_get_status();
|
||||
if ($status["opcache_enabled"]) {
|
||||
ini_set("opcache.revalidate_freq", "0");
|
||||
sleep(2);
|
||||
}
|
||||
}
|
||||
|
||||
include $alias . '/a.php';
|
||||
include $alias . '/b.php';
|
||||
include $alias . '/b/c.php';
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
--TEST--
|
||||
ReflectionMethod::getDocComment() uses wrong comment block
|
||||
--INI--
|
||||
opcache.save_comments=1
|
||||
opcache.load_comments=1
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
--TEST--
|
||||
ReflectionFunction basic tests
|
||||
--INI--
|
||||
opcache.save_comments=1
|
||||
opcache.load_comments=1
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
ReflectionFunction basic tests
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('reflection') or die('skip'); ?>
|
||||
--INI--
|
||||
opcache.save_comments=1
|
||||
opcache.load_comments=1
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -3,6 +3,9 @@ ReflectionClass::getDocComment()
|
||||
--CREDITS--
|
||||
Robin Fernandes <robinf@php.net>
|
||||
Steve Seear <stevseea@php.net>
|
||||
--INI--
|
||||
opcache.save_comments=1
|
||||
opcache.load_comments=1
|
||||
--FILE--
|
||||
<?php
|
||||
/**
|
||||
|
||||
@@ -3,6 +3,9 @@ ReflectionFunction::getDocComment()
|
||||
--CREDITS--
|
||||
Robin Fernandes <robinf@php.net>
|
||||
Steve Seear <stevseea@php.net>
|
||||
--INI--
|
||||
opcache.save_comments=1
|
||||
opcache.load_comments=1
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
--TEST--
|
||||
ReflectionMethod::getDocComment()
|
||||
--INI--
|
||||
opcache.save_comments=1
|
||||
opcache.load_comments=1
|
||||
--FILE--
|
||||
<?php
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
--TEST--
|
||||
Test usage of ReflectionProperty methods isDefault(), getModifiers(), getDeclaringClass() and getDocComment().
|
||||
--INI--
|
||||
opcache.save_comments=1
|
||||
opcache.load_comments=1
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
--TEST--
|
||||
Test ReflectionProperty::getDocComment() usage.
|
||||
--INI--
|
||||
opcache.save_comments=1
|
||||
opcache.load_comments=1
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
--TEST--
|
||||
Reflection Bug #36308 (ReflectionProperty::getDocComment() does not reflect extended class commentary)
|
||||
--INI--
|
||||
opcache.save_comments=1
|
||||
opcache.load_comments=1
|
||||
--FILE--
|
||||
<?php
|
||||
class Base {
|
||||
|
||||
@@ -240,6 +240,7 @@ $ini_overwrites = array(
|
||||
'ignore_repeated_errors=0',
|
||||
'precision=14',
|
||||
'memory_limit=128M',
|
||||
'opcache.fast_shutdown=0',
|
||||
);
|
||||
|
||||
function write_information($show_html)
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
output buffering - stati
|
||||
--INI--
|
||||
opcache.optimization_level=0
|
||||
--FILE--
|
||||
<?php
|
||||
$stati = array();
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
--TEST--
|
||||
ob_start() chunk_size: confirm buffer is flushed after any output call that causes its length to equal or exceed chunk_size.
|
||||
--INI--
|
||||
opcache.optimization_level=0
|
||||
--FILE--
|
||||
<?php
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user