mirror of
https://github.com/php/php-src.git
synced 2024-11-23 01:44:06 +08:00
Close PHP tags in tests
Closes GH-12422
This commit is contained in:
parent
1c9c3af157
commit
f39b5c4c25
@ -4,6 +4,7 @@ Bug #54547: wrong equality of string numbers near LONG_MAX with 64-bit longs
|
||||
<?php
|
||||
if (PHP_INT_MAX !== 9223372036854775807)
|
||||
die("skip for 64-bit long systems only");
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump("9223372036854775807" == "9223372036854775808");
|
||||
|
@ -32,5 +32,6 @@ try {
|
||||
}
|
||||
}
|
||||
echo 'okey';
|
||||
?>
|
||||
--EXPECT--
|
||||
okey
|
||||
|
@ -4,6 +4,7 @@ Bug #62097: fix for bug #54547 is wrong for 32-bit machines
|
||||
<?php
|
||||
if (PHP_INT_MAX !== 2147483647)
|
||||
die('skip for system with 32-bit wide longs only');
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump("02147483647" == "2147483647",
|
||||
|
@ -18,5 +18,6 @@ class C extends B {
|
||||
}
|
||||
}
|
||||
echo "okey";
|
||||
?>
|
||||
--EXPECT--
|
||||
okey
|
||||
|
File diff suppressed because one or more lines are too long
@ -5,6 +5,7 @@ Bug #65969 (Chain assignment with T_LIST failure)
|
||||
$obj = new stdClass;
|
||||
list($a,$b) = $obj->prop = [1,2];
|
||||
var_dump($a,$b);
|
||||
?>
|
||||
--EXPECT--
|
||||
int(1)
|
||||
int(2)
|
||||
|
@ -3,5 +3,6 @@ Invalid consecutive numeric separators after hex literal
|
||||
--FILE--
|
||||
<?php
|
||||
0x0__F;
|
||||
?>
|
||||
--EXPECTF--
|
||||
Parse error: syntax error, unexpected identifier "__F" in %s on line %d
|
||||
|
@ -3,5 +3,6 @@ Invalid consecutive numeric separators after binary literal
|
||||
--FILE--
|
||||
<?php
|
||||
0b0__1
|
||||
?>
|
||||
--EXPECTF--
|
||||
Parse error: syntax error, unexpected identifier "__1" in %s on line %d
|
||||
|
@ -17,5 +17,6 @@ function a() {
|
||||
}
|
||||
|
||||
foreach(a() as $v);
|
||||
?>
|
||||
--EXPECTF--
|
||||
Fatal error: Allowed memory size of %d bytes exhausted %s
|
||||
|
@ -20,6 +20,7 @@ A::out();
|
||||
B::out();
|
||||
C::out();
|
||||
echo PHP_EOL;
|
||||
?>
|
||||
--EXPECT--
|
||||
A
|
||||
B
|
||||
|
@ -19,6 +19,7 @@ class C extends A {
|
||||
A::out();
|
||||
B::out();
|
||||
C::out();
|
||||
?>
|
||||
--EXPECT--
|
||||
A
|
||||
B
|
||||
|
@ -10,5 +10,6 @@ class Bar {
|
||||
}
|
||||
new Bar();
|
||||
echo "ok\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
ok
|
||||
|
@ -64,5 +64,6 @@ $test
|
||||
->f()->f()->f()->f()->f()->f()->f()->f()->f()->f()
|
||||
;
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Fatal error: Maximum call stack size of %d bytes reached during compilation. Try splitting expression in %s on line %d
|
||||
|
@ -116,5 +116,6 @@ $test = [
|
||||
1
|
||||
];
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Fatal error: Maximum call stack size of %d bytes reached during compilation. Try splitting expression in %s on line %d
|
||||
|
@ -21,6 +21,7 @@ gc_collect_cycles();
|
||||
|
||||
var_dump($map);
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
object(WeakMap)#%d (1) {
|
||||
[0]=>
|
||||
|
@ -21,6 +21,7 @@ gc_collect_cycles();
|
||||
|
||||
var_dump($map);
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
object(WeakMap)#%d (1) {
|
||||
[0]=>
|
||||
|
@ -26,6 +26,7 @@ gc_collect_cycles();
|
||||
|
||||
var_dump($ref->get());
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
object(WeakMap)#%d (1) {
|
||||
[0]=>
|
||||
|
@ -26,6 +26,7 @@ gc_collect_cycles();
|
||||
|
||||
var_dump($ref->get());
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
object(WeakMap)#%d (1) {
|
||||
[0]=>
|
||||
|
@ -26,6 +26,7 @@ gc_collect_cycles();
|
||||
|
||||
var_dump($map);
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
object(WeakMap)#%d (1) {
|
||||
[0]=>
|
||||
|
@ -23,6 +23,7 @@ gc_collect_cycles();
|
||||
|
||||
var_dump($map2);
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
object(WeakMap)#1 (1) {
|
||||
[0]=>
|
||||
|
@ -27,6 +27,7 @@ unset($container, $canary);
|
||||
gc_collect_cycles();
|
||||
echo 2;
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
1container
|
||||
canary
|
||||
|
@ -25,6 +25,7 @@ unset($canary);
|
||||
gc_collect_cycles();
|
||||
echo 2;
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
1canary
|
||||
2
|
||||
|
@ -19,6 +19,7 @@ gc_collect_cycles();
|
||||
|
||||
var_dump($m);
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
object(WeakMap)#1 (0) {
|
||||
}
|
||||
|
@ -19,6 +19,7 @@ var_dump(zend_test_zend_ini_parse_quantity('0g10'));
|
||||
var_dump(zend_test_zend_ini_parse_quantity('0m10'));
|
||||
var_dump(zend_test_zend_ini_parse_quantity('0k10'));
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: Invalid quantity "0x0x12": no digits after base prefix, interpreting as "0" for backwards compatibility in %s on line %d
|
||||
int(0)
|
||||
|
@ -31,6 +31,7 @@ foreach (['', ' '] as $leadingWS) {
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
# "1"
|
||||
int(1)
|
||||
|
@ -28,6 +28,7 @@ foreach (['', ' '] as $leadingWS) {
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
# "0b11"
|
||||
int(3)
|
||||
|
@ -36,6 +36,7 @@ foreach ($tests as $setting) {
|
||||
var_dump(zend_test_zend_ini_parse_quantity($setting));
|
||||
print "\n";
|
||||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
# "K"
|
||||
|
||||
|
@ -28,6 +28,7 @@ foreach (['', ' '] as $leadingWS) {
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
# "0x1F"
|
||||
int(31)
|
||||
|
@ -7,6 +7,7 @@ zend_test
|
||||
|
||||
var_dump(ini_set("zend_test.quantity_value", "1MB"));
|
||||
var_dump(ini_get("zend_test.quantity_value"));
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: Invalid "zend_test.quantity_value" setting. Invalid quantity "1MB": unknown multiplier "B", interpreting as "1" for backwards compatibility in %s on line %d
|
||||
string(1) "0"
|
||||
|
@ -8,6 +8,7 @@ zend_test.quantity_value=1MB
|
||||
<?php
|
||||
|
||||
var_dump(ini_get("zend_test.quantity_value"));
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: Invalid "zend_test.quantity_value" setting. Invalid quantity "1MB": unknown multiplier "B", interpreting as "1" for backwards compatibility in %s on line %d
|
||||
string(3) "1MB"
|
||||
|
@ -28,6 +28,7 @@ foreach (['', ' '] as $leadingWS) {
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
# "0o14"
|
||||
int(12)
|
||||
|
@ -46,6 +46,7 @@ foreach ($tests as $name => $value) {
|
||||
print "----------\n";
|
||||
}
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
# No overflow 001: "0"
|
||||
0
|
||||
|
@ -27,6 +27,7 @@ foreach ($tests as $setting) {
|
||||
var_dump(zend_test_zend_ini_parse_quantity($setting));
|
||||
print "\n";
|
||||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
# "0"
|
||||
int(0)
|
||||
|
@ -34,6 +34,7 @@ foreach ($tests as $name => $value) {
|
||||
printf("# zend_test_zend_ini_parse_uquantity(\"-1\") === -1\n");
|
||||
var_dump(zend_test_zend_ini_parse_uquantity("-1") === -1);
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
# No overflow 001: "0"
|
||||
0
|
||||
|
@ -5,6 +5,7 @@ curl
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (curl_version()['version_number'] < 0x73800) die('skip requires curl >= 7.56.0');
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
include 'server.inc';
|
||||
|
@ -16,5 +16,6 @@ try {
|
||||
} catch (DOMException $e) {
|
||||
echo "DOMException: " . $e->getMessage();
|
||||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
DOMException: Not Found Error
|
||||
|
@ -17,5 +17,6 @@ try {
|
||||
} catch (DOMException $e) {
|
||||
echo "DOMException: " . $e->getMessage();
|
||||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
DOMException: Not Found Error
|
||||
|
@ -15,5 +15,6 @@ try {
|
||||
} catch (DOMException $e) {
|
||||
echo "DOMException: " . $e->getMessage();
|
||||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
DOMException: Hierarchy Request Error
|
||||
|
@ -9,5 +9,6 @@ $doc = new \DOMDocument();
|
||||
$doc->loadXML('<a><!-- foo --></a>');
|
||||
$doc->documentElement->firstChild->remove();
|
||||
echo $doc->saveXML($doc->documentElement);
|
||||
?>
|
||||
--EXPECT--
|
||||
<a/>
|
||||
|
@ -21,6 +21,7 @@ foreach ($test_values as $test_value) {
|
||||
var_dump($test_struct->y === $test_value);
|
||||
}
|
||||
var_dump($test_struct->x);
|
||||
?>
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
bool(true)
|
||||
|
@ -18,6 +18,7 @@ try {
|
||||
} catch (ValueError $ex) {
|
||||
echo "Exception: ", $ex->getMessage(), "\n";
|
||||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
bool(true)
|
||||
|
@ -11,5 +11,6 @@ try {
|
||||
} catch (Error $ex) {
|
||||
echo "Exception: ", $ex->getMessage(), "\n";
|
||||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
Exception: Cannot directly construct FTP\Connection, use ftp_connect() or ftp_ssl_connect() instead
|
||||
|
@ -27,6 +27,7 @@ foreach ($options as $option) try {
|
||||
echo "Exception: ", $ex->getMessage(), "\n";
|
||||
}
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
Exception: ftp_set_option(): Argument #3 ($value) must be greater than 0 for the FTP_TIMEOUT_SEC option
|
||||
Exception: ftp_set_option(): Argument #3 ($value) must be of type int for the FTP_TIMEOUT_SEC option, string given
|
||||
|
@ -22,6 +22,7 @@ try {
|
||||
}
|
||||
|
||||
echo "===DONE===\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
*** Testing ftp_ssl_connect() function : error conditions ***
|
||||
|
||||
|
@ -8,6 +8,7 @@ gettext
|
||||
if (!setlocale(LC_ALL, 'en_US.UTF-8')) {
|
||||
die("skip en_US.UTF-8 locale not supported.");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
chdir(__DIR__);
|
||||
|
@ -8,6 +8,7 @@ gettext
|
||||
if (!setlocale(LC_ALL, 'en_US.UTF-8')) {
|
||||
die("SKIP en_US.UTF-8 locale not supported.");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
chdir(__DIR__);
|
||||
|
@ -8,6 +8,7 @@ gettext
|
||||
if (!setlocale(LC_ALL, 'en_US.UTF-8')) {
|
||||
die("skip en_US.UTF-8 locale not supported.");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
chdir(__DIR__);
|
||||
|
@ -10,5 +10,6 @@ try {
|
||||
} catch (Error $ex) {
|
||||
echo "Exception: ", $ex->getMessage(), "\n";
|
||||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
Exception: Cannot directly construct IMAP\Connection, use imap_open() instead
|
||||
|
@ -6,5 +6,6 @@ imap
|
||||
<?php
|
||||
|
||||
class T extends IMAP\Connection {}
|
||||
?>
|
||||
--EXPECTF--
|
||||
Fatal error: Class T cannot extend final class IMAP\Connection in %s on line %d
|
||||
|
@ -5,6 +5,7 @@ intl
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (version_compare(INTL_ICU_VERSION, '57.1') <= 0) die('skip for ICU >= 58.1');
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
ini_set("intl.error_level", E_WARNING);
|
||||
|
@ -6,6 +6,7 @@ intl
|
||||
<?php
|
||||
if (!class_exists('Spoofchecker'))
|
||||
die('skip intl extension does not have spoof checker');
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
class A extends IntlDateFormatter {
|
||||
|
@ -8,6 +8,7 @@ intl
|
||||
<?php
|
||||
if (version_compare(INTL_ICU_VERSION, '52.1') >= 0)
|
||||
die('skip for ICU < 52.1');
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
ini_set("intl.error_level", E_WARNING);
|
||||
|
@ -8,6 +8,7 @@ intl
|
||||
<?php
|
||||
if (version_compare(INTL_ICU_VERSION, '52.1') < 0)
|
||||
die('skip for ICU >= 52.1');
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
ini_set("intl.error_level", E_WARNING);
|
||||
|
@ -19,5 +19,6 @@ try {
|
||||
echo $e->getMessage();
|
||||
}
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
datefmt_create: time format must be UDAT_PATTERN if date format is UDAT_PATTERN: U_ILLEGAL_ARGUMENT_ERROR
|
||||
|
@ -17,5 +17,6 @@ try {
|
||||
} catch (\IntlException $e) {
|
||||
echo $e->getMessage();
|
||||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
datefmt_create: invalid locale: U_ILLEGAL_ARGUMENT_ERROR
|
||||
|
@ -6,6 +6,7 @@ intl
|
||||
<?php
|
||||
if (!defined('INTL_IDNA_VARIANT_UTS46'))
|
||||
die('skip no UTS #46 API');
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$utf8dn = "www.fußball.com";
|
||||
|
@ -6,6 +6,7 @@ intl
|
||||
<?php
|
||||
if (!defined('INTL_IDNA_VARIANT_UTS46'))
|
||||
die('skip no UTS #46 API');
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
ini_set("intl.error_level", E_WARNING);
|
||||
|
@ -14,6 +14,7 @@ $mf = new MessageFormatter('en_US', $fmt);
|
||||
var_dump($mf->format(array("foo" => 7, "\x80" => "bar")));
|
||||
|
||||
var_dump($mf->format(array("foo" => "\x80")));
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: MessageFormatter::format(): Invalid UTF-8 data in argument key: '€' in %s on line %d
|
||||
bool(false)
|
||||
|
@ -10,5 +10,6 @@ try {
|
||||
} catch (Error $ex) {
|
||||
echo "Exception: ", $ex->getMessage(), "\n";
|
||||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
Exception: Cannot directly construct LDAP\Connection, use ldap_connect() instead
|
||||
|
@ -6,6 +6,7 @@ dom
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (LIBXML_VERSION < 20912) die('skip For libxml2 >= 2.9.12 only');
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
@ -29,6 +29,7 @@ print libxml_get_external_entity_loader()[0] . "\n";
|
||||
libxml_set_external_entity_loader(null);
|
||||
var_dump(libxml_get_external_entity_loader());
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
NULL
|
||||
Handler#A
|
||||
|
@ -5,6 +5,7 @@ dom
|
||||
--CLEAN--
|
||||
<?php
|
||||
@unlink(__DIR__ . "/foobar.dtd");
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
chdir(__DIR__);
|
||||
|
@ -70,6 +70,7 @@ require_once 'skipifconnectfailure.inc';
|
||||
$mysqli->close();
|
||||
|
||||
print "done!";
|
||||
?>
|
||||
--CLEAN--
|
||||
<?php
|
||||
require_once 'clean_table.inc';
|
||||
|
@ -39,6 +39,7 @@ require_once 'skipifconnectfailure.inc';
|
||||
}
|
||||
|
||||
print "done!";
|
||||
?>
|
||||
--CLEAN--
|
||||
<?php
|
||||
require_once 'clean_table.inc';
|
||||
|
@ -21,6 +21,7 @@ register_shutdown_function(function () {
|
||||
});
|
||||
|
||||
new BadClass();
|
||||
?>
|
||||
--EXPECTF--
|
||||
Autoloading BadClass
|
||||
Autoloading Foo
|
||||
|
@ -21,6 +21,7 @@ register_shutdown_function(function () {
|
||||
});
|
||||
|
||||
new BadClass();
|
||||
?>
|
||||
--EXPECTF--
|
||||
Autoloading BadClass
|
||||
Autoloading Foo
|
||||
|
@ -21,6 +21,7 @@ register_shutdown_function(function () {
|
||||
});
|
||||
|
||||
new BadClass2();
|
||||
?>
|
||||
--EXPECTF--
|
||||
Autoloading BadClass2
|
||||
|
||||
|
@ -18,6 +18,7 @@ if (PHP_OS_FAMILY === 'Windows') {
|
||||
var_dump($loaded);
|
||||
|
||||
var_dump(ini_get('dl_test.long'));
|
||||
?>
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
string(1) "0"
|
||||
|
@ -22,6 +22,7 @@ try {
|
||||
} catch (TypeError $e) {
|
||||
echo $e->getMessage(), "\n";
|
||||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: Undefined variable $y in %s on line %d
|
||||
Cannot assign null to reference held by property Test::$x of type string
|
||||
|
@ -30,5 +30,6 @@ function checkTree($treeNode) {
|
||||
|
||||
$tree = createTree(12);
|
||||
var_dump(checkTree($tree));
|
||||
?>
|
||||
--EXPECT--
|
||||
int(8191)
|
||||
|
@ -57,6 +57,7 @@ eq(3.0, 3.0, true, false);
|
||||
eq(3.0, 2.0, true, false);
|
||||
eq(3.0, NAN, true, false);
|
||||
eq(NAN, NAN, true, false);
|
||||
?>
|
||||
--EXPECT--
|
||||
bool(false)
|
||||
bool(false)
|
||||
|
@ -108,5 +108,6 @@ for ($y = 0; $y < 10; $y++) {
|
||||
}
|
||||
}
|
||||
$m = Matrix::fromArray($a);
|
||||
?>
|
||||
--EXPECT--
|
||||
These are the array bounds: 10 * 10
|
||||
|
@ -52,6 +52,7 @@ for ($i = 0; $i < 5; $i++) {
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
0
|
||||
1
|
||||
|
@ -33,5 +33,6 @@ for ($i = 0; $i < 10; $i++) {
|
||||
touch(__DIR__ . '/gh8461-001.inc');
|
||||
|
||||
print "OK";
|
||||
?>
|
||||
--EXPECT--
|
||||
OK
|
||||
|
@ -26,5 +26,6 @@ for ($i = 0; $i < 10; $i++) {
|
||||
touch(__DIR__ . '/gh8461-002.inc');
|
||||
|
||||
print "OK";
|
||||
?>
|
||||
--EXPECT--
|
||||
OK
|
||||
|
@ -34,5 +34,6 @@ for ($i = 0; $i < 10; $i++) {
|
||||
touch(__DIR__ . '/gh8461-003.inc');
|
||||
|
||||
print "OK";
|
||||
?>
|
||||
--EXPECT--
|
||||
OK
|
||||
|
@ -55,6 +55,7 @@ for ($i = 0; $i < 10; $i++) {
|
||||
|
||||
var_dump($initialRequest ? $x : $y);
|
||||
print "OK";
|
||||
?>
|
||||
--EXPECT--
|
||||
int(10)
|
||||
OK
|
||||
|
@ -32,6 +32,7 @@ for ($i = 0; $i < 10; $i++) {
|
||||
|
||||
var_dump($initialRequest ? $x : $y);
|
||||
print "OK";
|
||||
?>
|
||||
--EXPECT--
|
||||
int(10)
|
||||
OK
|
||||
|
@ -44,6 +44,7 @@ namespace test {
|
||||
var_dump($initialRequest ? $x : $y);
|
||||
print "OK";
|
||||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
int(10)
|
||||
OK
|
||||
|
@ -31,5 +31,6 @@ for ($i = 0; $i < 10; $i++) {
|
||||
}
|
||||
|
||||
print "OK";
|
||||
?>
|
||||
--EXPECT--
|
||||
OK
|
||||
|
@ -67,5 +67,6 @@ for ($i = 0; $i < 10; $i++) {
|
||||
}
|
||||
|
||||
print "OK";
|
||||
?>
|
||||
--EXPECT--
|
||||
OK
|
||||
|
@ -44,6 +44,7 @@ touch(__DIR__ . '/gh8591-001.inc');
|
||||
var_dump($x);
|
||||
|
||||
print "OK";
|
||||
?>
|
||||
--EXPECT--
|
||||
int(1)
|
||||
OK
|
||||
|
@ -47,6 +47,7 @@ new Model();
|
||||
var_dump($x);
|
||||
|
||||
print "OK";
|
||||
?>
|
||||
--EXPECT--
|
||||
int(1)
|
||||
OK
|
||||
|
@ -40,6 +40,7 @@ new Model();
|
||||
var_dump($x);
|
||||
|
||||
print "OK";
|
||||
?>
|
||||
--EXPECT--
|
||||
int(1)
|
||||
OK
|
||||
|
@ -46,6 +46,7 @@ touch(__DIR__ . '/gh8591-004.inc');
|
||||
var_dump($x);
|
||||
|
||||
print "OK";
|
||||
?>
|
||||
--EXPECT--
|
||||
int(1)
|
||||
OK
|
||||
|
@ -36,6 +36,7 @@ touch(__DIR__ . '/gh8591-005.inc');
|
||||
var_dump($x);
|
||||
|
||||
print "OK";
|
||||
?>
|
||||
--EXPECT--
|
||||
int(1)
|
||||
OK
|
||||
|
@ -33,6 +33,7 @@ new Model();
|
||||
var_dump($x);
|
||||
|
||||
print "OK";
|
||||
?>
|
||||
--EXPECT--
|
||||
int(1)
|
||||
OK
|
||||
|
@ -31,11 +31,12 @@ class Loop {
|
||||
Loop::test();
|
||||
Loop::test2();
|
||||
Loop::test3();
|
||||
?>
|
||||
--EXPECTF--
|
||||
$_main:
|
||||
; (lines=7, args=0, vars=0, tmps=0)
|
||||
; (after optimizer)
|
||||
; %sdce_009.php:1-23
|
||||
; %sdce_009.php:1-24
|
||||
0000 INIT_STATIC_METHOD_CALL 0 string("Loop") string("test")
|
||||
0001 DO_UCALL
|
||||
0002 INIT_STATIC_METHOD_CALL 0 string("Loop") string("test2")
|
||||
|
@ -10,6 +10,7 @@ opcache.preload={PWD}/preload_enum.inc
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
@ -20,6 +20,7 @@ class Foo {
|
||||
var_dump(class_exists("Test"));
|
||||
var_dump(Test::X);
|
||||
var_dump(Test::Y);
|
||||
?>
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
int(1)
|
||||
|
@ -5,6 +5,7 @@ Check for JIT enablement status
|
||||
if (ini_get("pcre.jit") === FALSE) {
|
||||
die("skip no jit built");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
@ -13,6 +13,7 @@ var_dump(preg_replace_callback_array(
|
||||
"/a/" => 'b',
|
||||
"/b/" => 'invalid callable'), 'a'));
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Fatal error: Uncaught TypeError: preg_replace_callback_array(): Argument #1 ($pattern) must contain only valid callbacks in %spreg_replace_callback_array_fatal_error.php:%d
|
||||
Stack trace:
|
||||
|
@ -20,6 +20,7 @@ $version = $matches[1] * 10000 + $matches[2] * 100 + $matches[3];
|
||||
if ($version < 41000)
|
||||
die(sprintf("skip Need MySQL Server 4.1.0+, found %d.%02d.%02d (%d)\n",
|
||||
$matches[1], $matches[2], $matches[3], $version));
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
|
||||
|
@ -85,6 +85,7 @@ if (false == MySQLPDOTest::detect_transactional_mysql_engine($db))
|
||||
}
|
||||
|
||||
print "done!";
|
||||
?>
|
||||
--CLEAN--
|
||||
<?php
|
||||
require __DIR__ . '/mysql_pdo_test.inc';
|
||||
|
@ -78,6 +78,7 @@ MySQLPDOTest::skip();
|
||||
}
|
||||
|
||||
print "done!";
|
||||
?>
|
||||
--CLEAN--
|
||||
<?php
|
||||
require __DIR__ . '/mysql_pdo_test.inc';
|
||||
|
@ -10,6 +10,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN' &&
|
||||
!extension_loaded('com_dotnet')) {
|
||||
die('skip - either PDOTEST_DSN or com_dotnet extension is needed to setup the connection');
|
||||
}
|
||||
?>
|
||||
--REDIRECTTEST--
|
||||
# magic auto-configuration
|
||||
|
||||
|
@ -20,6 +20,7 @@ $db = PDOTest::test_factory('ext/pdo_odbc/tests/common.phpt');
|
||||
// PDO::ATTR_SERVER_VERSION: 07.02.0015
|
||||
var_dump($db->getAttribute(PDO::ATTR_SERVER_INFO));
|
||||
var_dump($db->getAttribute(PDO::ATTR_SERVER_VERSION));
|
||||
?>
|
||||
--EXPECTF--
|
||||
string(%d) "%s"
|
||||
string(%d) "%s"
|
||||
|
@ -23,3 +23,4 @@ int(0)
|
||||
@unlink(__DIR__ . '/bug69279a/2.txt');
|
||||
@unlink(__DIR__ . '/bug69279a/3.txt');
|
||||
@rmdir(__DIR__ . '/bug69279a');
|
||||
?>
|
||||
|
@ -15,6 +15,7 @@ $p['some/file'] = "<?php const MAXPATHLEN = 4096, OVERFLOW = 1, PATH = 'path'; s
|
||||
$p->setStub("<?php Phar::mapPhar('sample.phar'); __HALT_COMPILER();");
|
||||
// execute the phar code:
|
||||
require('phar://sample.phar/some/file');
|
||||
?>
|
||||
--CLEAN--
|
||||
<?php
|
||||
unlink('path/needle.php');
|
||||
|
@ -6,6 +6,7 @@ phar
|
||||
<?php
|
||||
$arr = Phar::getSupportedSignatures();
|
||||
if (!in_array("OpenSSL", $arr)) die("skip openssl support required");
|
||||
?>
|
||||
--INI--
|
||||
phar.require_hash=0
|
||||
phar.readonly=0
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user