Also remove tests that target only old PHP versions.
DateTimeZone::getLocation -- timezone_location_get — Returns location information for a timezone public array DateTimeZone::getLocation ( void ) ;
--CREDITS--
marcosptf - <marcosptf@yahoo.com.br> - #phparty7 - @phpsp - novatec/2015 - sao paulo - br
---SKIPIF--
-<?php
-if (phpversion() < "5.3.0") {
- die('SKIP php version so lower.');
-}
-?>
--FILE--
<?php
$arrayDate = DateTimeZone::listAbbreviations();
if((!in_array($timeZoneArray['country_code'], $countryCode)) && (NULL != $timeZoneArray['country_code']) && ("" != $timeZoneArray['country_code'])) {
array_push($countryCode, $timeZoneArray['country_code']);
-
+
if(in_array($timeZoneArray['country_code'], $countryCodeTest)){
print_r($timeZoneArray);
}
marcosptf - <marcosptf@yahoo.com.br> - @phpsp - sao paulo - br
--SKIPIF--
<?php
-if (phpversion() < "5.3.0") {
- die('SKIP php version so lower.');
-}
require_once(dirname(__FILE__) . '/skip_mhash.inc'); ?>
?>
--FILE--
require_once('skipif.inc');
require_once('skipifemb.inc');
require_once('connect.inc');
-if (($tmp = substr(PHP_VERSION, 0, strpos(PHP_VERSION, '.'))) && ($tmp < 5))
- die("skip Reflection not available before PHP 5 (found PHP $tmp)");
/*
Let's not deal with cross-version issues in the EXPECTF/UEXPECTF.
require_once('skipifconnectfailure.inc');
require_once('connect.inc');
-if (($tmp = substr(PHP_VERSION, 0, strpos(PHP_VERSION, '.'))) && ($tmp < 5))
- die("skip Reflection not available before PHP 5 (found PHP $tmp)");
-
/*
Let's not deal with cross-version issues in the EXPECTF/UEXPECTF.
Most of the things which we test are covered by mysqli_class_*_interface.phpt.
require_once('skipifemb.inc');
require_once('connect.inc');
-if (($tmp = substr(PHP_VERSION, 0, strpos(PHP_VERSION, '.'))) && ($tmp < 5))
- die("skip Reflection not available before PHP 5 (found PHP $tmp)");
-
/*
Let's not deal with cross-version issues in the EXPECTF/UEXPECTF.
Most of the things which we test are covered by mysqli_class_*_interface.phpt.
Phar: test fopen() interception
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip");?>
-<?php if (substr(phpversion(), 0, 3) == '5.2') die("skip PHP >= 5.3 required for this test");?>
--INI--
phar.require_hash=1
phar.readonly=0
Warning: fopen() expects at least 2 parameters, 0 given in %sfopen.php on line %d
hihi
Warning: fopen(notfound.txt): failed to open stream: No such file or directory in phar://%sfopen.phar.php/index.php on line %d
-===DONE===
\ No newline at end of file
+===DONE===
+++ /dev/null
---TEST--
-Phar: test fopen() interception
---SKIPIF--
-<?php if (!extension_loaded("phar")) die("skip");?>
-<?php if (substr(phpversion(), 0, 3) != '5.2') die("skip PHP 5.2 required for this test");?>
---INI--
-phar.require_hash=1
-phar.readonly=0
---FILE--
-<?php
-Phar::interceptFileFuncs();
-$a = fopen(__FILE__, 'rb'); // this satisfies 1 line of code coverage
-fclose($a);
-$a = fopen(); // this satisfies another line of code coverage
-
-$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
-$a = new Phar($fname);
-$a['index.php'] = '<?php
-$a = fopen("dir/file1.txt", "r");
-echo fread($a, 2);
-fclose($a);
-$a = fopen("file1.txt", "r", true);
-echo fread($a, 2);
-fclose($a);
-$a = fopen("notfound.txt", "r", true);
-?>';
-$a['dir/file1.txt'] = 'hi';
-$a['dir/file2.txt'] = 'hi2';
-$a['dir/file3.txt'] = 'hi3';
-$a->setStub('<?php
-set_include_path("phar://" . __FILE__ . "/dir" . PATH_SEPARATOR . "phar://" . __FILE__);
-include "index.php";
-__HALT_COMPILER();');
-include $fname;
-?>
-===DONE===
---CLEAN--
-<?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
---EXPECTF--
-Warning: fopen() expects at least 2 parameters, 0 given in %sfopen5.2.php on line %d
-hihi
-Warning: fopen(phar://%sfopen5.2.phar.php/notfound.txt): failed to open stream: phar error: "notfound.txt" is not a file in phar "%sfopen5.2.phar.php" in phar://%sfopen5.2.phar.php/index.php on line %d
-===DONE===
\ No newline at end of file
Phar: test edge cases of fopen() function interception #2
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip"); ?>
-<?php if (version_compare(phpversion(), '6.0', '>=')) die('skip parameter parsing changed in 6.0'); ?>
--INI--
phar.readonly=0
--FILE--
+++ /dev/null
---TEST--
-Phar: test stat function interceptions and is_file/is_link edge cases (PHP 5.2)
---SKIPIF--
-<?php if (!extension_loaded("phar")) die("skip");?>
-<?php if (substr(phpversion(), 0, 3) != '5.2') die("skip PHP 5.2 required for this test");?>
---INI--
-phar.readonly=0
-phar.require_hash=0
---FILE--
-<?php
-Phar::interceptFileFuncs();
-is_file();
-is_link();
-var_dump(is_file(__FILE__));
-
-$fname2 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.tar';
-$fname3 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.tar';
-copy(dirname(__FILE__) . '/tar/files/links.tar', $fname2);
-$a = new PharData($fname2);
-$b = $a->convertToExecutable();
-unset($a);
-Phar::unlinkArchive($fname2);
-$b['foo/stat.php'] = '<?php
-echo "is_link\n";
-var_dump(is_link("./stat.php"),is_file("./stat.php"), is_link("./oops"), is_file("./oops"));
-var_dump(is_link("testit/link"), filetype("testit/link"), filetype("testit"), is_file("testit/link"));
-echo "not found\n";
-var_dump(is_link("notfound"));
-echo "dir\n";
-var_dump(is_dir("./bar"), is_file("foo/bar/blah"));
-?>';
-$b->addEmptyDir('foo/bar/blah');
-$b->setStub('<?php
-include "phar://" . __FILE__ . "/foo/stat.php";
-__HALT_COMPILER();');
-include $fname3;
-?>
-===DONE===
---CLEAN--
-<?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar'); ?>
-<?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.tar'); ?>
---EXPECTF--
-Warning: Wrong parameter count for is_file() in %sstat2.php on line %d
-
-Warning: Wrong parameter count for is_link() in %sstat2.php on line %d
-bool(true)
-is_link
-bool(false)
-bool(true)
-bool(false)
-bool(false)
-bool(true)
-string(4) "link"
-string(3) "dir"
-bool(true)
-not found
-bool(false)
-dir
-bool(true)
-bool(false)
-===DONE===
\ No newline at end of file
Phar: test stat function interceptions and is_file/is_link edge cases (PHP 5.3+)
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip");?>
-<?php if (substr(phpversion(), 0, 3) == '5.2') die("skip PHP 5.3+ required for this test");?>
--INI--
phar.readonly=0
phar.require_hash=0
--CREDITS--
Florian Anderiasch
fa@php.net
---SKIPIF--
-<?php
- if (version_compare(phpversion(), '5.2.7', '<')) {
- die('skip old php, not eligible');
- }
-?>
--FILE--
<?php
var_dump('TCP_NODELAY');
mixed forward_static_call_array ( callable $function , array $parameters );
--CREDITS--
marcosptf - <marcosptf@yahoo.com.br> - @phpsp - sao paulo - br
---SKIPIF--
-<?php
-if (phpversion() < "5.3.0") {
- die('SKIP php version so lower.');
-}
-?>
--FILE--
<?php
string gethostname(void);
--CREDITS--
marcosptf - <marcosptf@yahoo.com.br> - #phparty7 - @phpsp - novatec/2015 - sao paulo - br
---SKIPIF--
-<?php
-if (phpversion() < "5.3.0") {
- die('SKIP php version so lower.');
-}
-?>
--FILE--
<?php
var_dump(gethostname());
array stream_get_transports ( void );
--CREDITS--
marcosptf - <marcosptf@yahoo.com.br> - #phparty7 - @phpsp - novatec/2015 - sao paulo - br
---SKIPIF--
-<?php
-if (phpversion() < "5.3.0") {
- die('SKIP php version so lower.');
-}
-?>
--FILE--
<?php
print((is_array(stream_get_transports())) ? ("yes") : ("Test 'array stream_get_transports ( void );' has failed"));
array stream_get_wrappers ( void );
--CREDITS--
marcosptf - <marcosptf@yahoo.com.br> - #phparty7 - @phpsp - novatec/2015 - sao paulo - br
---SKIPIF--
-<?php
-if (phpversion() < "5.3.0") {
- die('SKIP php version so lower.');
-}
-?>
--FILE--
<?php
print((is_array(stream_get_wrappers())) ? ("yes") : ("Test 'array stream_get_wrappers ( void );' has failed"));
string stream_socket_get_name ( resource $handle , bool $want_peer ) ;
--CREDITS--
marcosptf - <marcosptf@yahoo.com.br> - #phparty7 - @phpsp - novatec/2015 - sao paulo - br
---SKIPIF--
-<?php
-if (phpversion() < "5.3.0") {
- die('SKIP php version so lower.');
-}
-?>
--FILE--
<?php
$serverUri = "tcp://127.0.0.1:31854";
string stream_socket_recvfrom ( resource $socket , int $length [, int $flags = 0 [, string &$address ]] );
--CREDITS--
marcosptf - <marcosptf@yahoo.com.br> - #phparty7 - @phpsp - novatec/2015 - sao paulo - br
---SKIPIF--
-<?php
-if (phpversion() < "5.3.0") {
- die('SKIP php version so lower.');
-}
-?>
--FILE--
<?php
$serverUri = "tcp://127.0.0.1:31854";
print phpversion();
print "\n";
print phpversion('standard');
-
+?>
--EXPECTF--
%s
%s