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