Skip to content

Commit

Permalink
Fixed PHP6 unicode related tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Aug 15, 2014
1 parent d1b48a8 commit e3de409
Show file tree
Hide file tree
Showing 78 changed files with 125 additions and 84 deletions.
4 changes: 3 additions & 1 deletion ext/mysql/tests/mysql_client_encoding.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ if ($link_enc !== $tmp['charset']) {
}
}

if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && function_exists('is_unicode')) {
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) &&
(version_compare(PHP_VERSION, '6.9.9', '<=') == 1) &&
function_exists('is_unicode')) {
// unicode mode
if (!is_unicode($default_link_enc) || !is_unicode($link_enc)) {
printf("[010] No unicode returned!\n");
Expand Down
3 changes: 2 additions & 1 deletion ext/mysql/tests/mysql_db_name.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ if (false !== ($tmp = mysql_db_name($res, $num + 1)))
printf("[006] Expecting boolean/false, got %s/%s. [%d] %s\n",
gettype($tmp), $tmp, mysql_errno($link), mysql_error($link));

$unicode = (boolean)(version_compare(PHP_VERSION, '5.9.9', '>') == 1);
$unicode = (boolean)(version_compare(PHP_VERSION, '5.9.9', '>') == 1 &&
version_compare(PHP_VERSION, '6.9.9', '<=') == 1);
for ($i = 0; $i < $num; $i++) {
if ('' === ($dbname = mysql_db_name($res, $i)))
printf("[%03d] Got empty database name! [%d] %s\n",
Expand Down
8 changes: 6 additions & 2 deletions ext/mysql/tests/mysql_db_query.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ $row = mysql_fetch_assoc($res);
if (1 != $row['id'])
printf("[005] Expecting record 1/a, got record %s/%s\n", $row['id'], $row['label']);

if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($row['label'])) {
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) &&
(version_compare(PHP_VERSION, '6.9.9', '<=') == 1) &&
!is_unicode($row['label'])) {
printf("[006] No unicode returned! [%d] %s\n", mysql_errno($link), mysql_error($link));
var_inspect($row);
}
Expand All @@ -47,7 +49,9 @@ $row = mysql_fetch_assoc($res);
if (1 != $row['id'])
printf("[008] Expecting record 1/a, got record %s/%s\n", $row['id'], $row['label']);

if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($row['label'])) {
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) &&
(version_compare(PHP_VERSION, '6.9.9', '<=') == 1) &&
!is_unicode($row['label'])) {
printf("[009] No unicode returned! [%d] %s\n", mysql_errno(), mysql_error());
var_inspect($row);
}
Expand Down
4 changes: 3 additions & 1 deletion ext/mysql/tests/mysql_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ $tmp = mysql_error($link);
if (!is_string($tmp) || !preg_match("/Table '\w*\.test' doesn't exist/su", $tmp))
printf("[006] Expecting string/[Table... doesn't exit], got %s/%s. [%d] %s\n", gettype($tmp), $tmp, mysql_errno($link), mysql_error($link));

if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($tmp)) {
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) &&
(version_compare(PHP_VERSION, '6.9.9', '<=') == 1) &&
!is_unicode($tmp)) {
printf("[007] Expecting Unicode error message!\n");
var_inspect($tmp);
}
Expand Down
4 changes: 3 additions & 1 deletion ext/mysql/tests/mysql_field_flags.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ if (false !== ($tmp = mysql_field_flags($res, -1)))
if (!is_string($tmp = mysql_field_flags($res, 0)) || empty($tmp))
printf("[006] Expecting non empty string, got %s/%s\n", gettype($tmp), $tmp);

if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($tmp)) {
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) &&
(version_compare(PHP_VERSION, '6.9.9', '<=') == 1) &&
!is_unicode($tmp)) {
printf("[007] Check the unicode support!\n");
var_inspect($tmp);
}
Expand Down
4 changes: 3 additions & 1 deletion ext/mysql/tests/mysql_get_client_info.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ include "connect.inc";
if (!is_string($info = mysql_get_client_info()) || ('' === $info))
printf("[001] Expecting string/any_non_empty, got %s/%s\n", gettype($info), $info);

if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($info)) {
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) &&
(version_compare(PHP_VERSION, '6.9.9', '<=') == 1) &&
!is_unicode($info)) {
printf("[002] Expecting Unicode!\n");
var_inspect($info);
}
Expand Down
4 changes: 3 additions & 1 deletion ext/mysql/tests/mysql_get_host_info.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ if ($def_info !== $info) {
var_dump($info);
}

if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($info)) {
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) &&
(version_compare(PHP_VERSION, '6.9.9', '<=') == 1) &&
!is_unicode($info)) {
printf("[005] Expecting Unicode error message!\n");
var_inspect($info);
}
Expand Down
4 changes: 3 additions & 1 deletion ext/mysql/tests/mysql_get_server_info.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ if ($def_info !== $info) {
var_dump($info);
}

if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($info)) {
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) &&
(version_compare(PHP_VERSION, '6.9.9', '<=') == 1) &&
!is_unicode($info)) {
printf("[005] Expecting Unicode error message!\n");
var_inspect($info);
}
Expand Down
4 changes: 3 additions & 1 deletion ext/mysql/tests/mysql_info.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ if (!$res = mysql_query("UPDATE test SET label = 'b' WHERE id >= 100", $link))
if (!is_string($tmp = mysql_info($link)) || ('' == $tmp))
printf("[012] Expecting string/any_non_empty, got %s/%s\n", gettype($tmp), $tmp);

if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($tmp)) {
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) &&
(version_compare(PHP_VERSION, '6.9.9', '<=') == 1) &&
!is_unicode($tmp)) {
printf("[013] Expecting Unicode!\n");
var_inspect($info);
}
Expand Down
4 changes: 3 additions & 1 deletion ext/mysql/tests/mysql_list_dbs.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ if (!$num = mysql_num_rows($res))
printf("[004] Empty database list? [%d] %s\n", mysql_errno($link), mysql_error($link));

$row = mysql_fetch_array($res, MYSQL_NUM);
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($row[0])) {
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) &&
(version_compare(PHP_VERSION, '6.9.9', '<=') == 1) &&
!is_unicode($row[0])) {
printf("[005] Check for unicode support\n");
var_inspect($row);
}
Expand Down
8 changes: 6 additions & 2 deletions ext/mysql/tests/mysql_list_processes.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ if (!$num = mysql_num_rows($res))
printf("[003] Empty process list? [%d] %s\n", mysql_errno($link), mysql_error($link));

$row = mysql_fetch_array($res, MYSQL_NUM);
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($row[0])) {
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) &&
(version_compare(PHP_VERSION, '6.9.9', '<=') == 1) &&
!is_unicode($row[0])) {
printf("[004] Check for unicode support\n");
var_inspect($row);
}
Expand All @@ -38,7 +40,9 @@ if (!$num = mysql_num_rows($res))
printf("[006] Empty process list? [%d] %s\n", mysql_errno(), mysql_error());

$row = mysql_fetch_array($res, MYSQL_NUM);
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($row[0])) {
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) &&
(version_compare(PHP_VERSION, '6.9.9', '<=') == 1) &&
!is_unicode($row[0])) {
printf("[007] Check for unicode support\n");
var_inspect($row);
}
Expand Down
8 changes: 6 additions & 2 deletions ext/mysql/tests/mysql_query.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ if (mysql_query('DROP PROCEDURE IF EXISTS p', $link)) {
printf("[009] Result seems wrong, dumping\n");
var_dump($tmp);
}
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($tmp['p_version'])) {
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) &&
(version_compare(PHP_VERSION, '6.9.9', '<=') == 1) &&
!is_unicode($tmp['p_version'])) {
printf("[010] Expecting unicode string, dumping\n");
var_dump($tmp);
}
Expand All @@ -75,7 +77,9 @@ if (mysql_query('DROP PROCEDURE IF EXISTS p', $link)) {
printf("[012] Result seems wrong, dumping\n");
var_dump($tmp);
}
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($tmp['f_version'])) {
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) &&
(version_compare(PHP_VERSION, '6.9.9', '<=') == 1) &&
!is_unicode($tmp['f_version'])) {
printf("[013] Expecting unicode string, dumping\n");
var_dump($tmp);
}
Expand Down
4 changes: 3 additions & 1 deletion ext/mysql/tests/mysql_stat.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ if ((!is_string($stat = mysql_stat($link))) || ('' === $stat))
printf("[003] Expecting non empty string, got %s/'%s', [%d] %s\n",
gettype($stat), $stat, mysql_errno($link), mysql_error($link));

if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($stat)) {
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) &&
(version_compare(PHP_VERSION, '6.9.9', '<=') == 1) &&
!is_unicode($stat)) {
printf("[004] Expecting Unicode error message!\n");
var_inspect($stat);
}
Expand Down
8 changes: 6 additions & 2 deletions ext/mysql/tests/mysql_unbuffered_query.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ if (mysql_unbuffered_query('DROP PROCEDURE IF EXISTS p', $link)) {
printf("[008] Result seems wrong, dumping\n");
var_dump($tmp);
}
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($tmp['p_version'])) {
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) &&
(version_compare(PHP_VERSION, '6.9.9', '<=') == 1) &&
!is_unicode($tmp['p_version'])) {
printf("[009] Expecting unicode string, dumping\n");
var_dump($tmp);
}
Expand All @@ -65,7 +67,9 @@ if (mysql_unbuffered_query('DROP PROCEDURE IF EXISTS p', $link)) {
printf("[011] Result seems wrong, dumping\n");
var_dump($tmp);
}
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($tmp['f_version'])) {
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) &&
(version_compare(PHP_VERSION, '6.9.9', '<=') == 1) &&
!is_unicode($tmp['f_version'])) {
printf("[012] Expecting unicode string, dumping\n");
var_dump($tmp);
}
Expand Down
4 changes: 2 additions & 2 deletions ext/mysqli/mysqli_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -1688,9 +1688,9 @@ static int mysqli_options_get_option_zval_type(int option)
{
switch (option) {
#ifdef MYSQLI_USE_MYSQLND
#if PHP_MAJOR_VERSION >= 6
#if PHP_MAJOR_VERSION == 6
/* PHP-7 doesn't supprt unicode yet ??? */
/*case MYSQLND_OPT_NUMERIC_AND_DATETIME_AS_UNICODE:*/
case MYSQLND_OPT_NUMERIC_AND_DATETIME_AS_UNICODE:
#endif
case MYSQLND_OPT_NET_CMD_BUFFER_SIZE:
case MYSQLND_OPT_NET_READ_BUFFER_SIZE:
Expand Down
4 changes: 3 additions & 1 deletion ext/mysqli/tests/bug35517.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ require_once('skipifconnectfailure.inc');
if (gettype($id) !== 'string') {
printf("[002] Expecting string on 32bit got %s/%s\n", gettype($id), var_export($id, true));
}
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($id)) {
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) &&
(version_compare(PHP_VERSION, '6.9.9', '<=') == 1) &&
!is_unicode($id)) {
printf("[003] Expecting unicode string\n");
}
}
Expand Down
4 changes: 3 additions & 1 deletion ext/mysqli/tests/mysqli_get_warnings.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ if (!$TEST_EXPERIMENTAL)
$warning = new mysqli_warning($mysqli);
$i = 1;
while ($warning->next() && ('' != ($tmp = $warning->message))) {
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($tmp))
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) &&
(version_compare(PHP_VERSION, '6.9.9', '<=') == 1) &&
!is_unicode($tmp))
printf("[033a] Warning should have been a unicode string, got %s/%s", gettype($tmp), $tmp);
$i++;
}
Expand Down
4 changes: 3 additions & 1 deletion ext/mysqli/tests/mysqli_info.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ require_once('skipifconnectfailure.inc');
if (!is_string($tmp = mysqli_info($link)) || ('' == $tmp))
printf("[006] Expecting string/any_non_empty, got %s/%s\n", gettype($tmp), $tmp);

if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && !is_unicode($tmp))
if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) &&
(version_compare(PHP_VERSION, '6.9.9', '<=') == 1) &&
!is_unicode($tmp))
printf("[007] Expecting unicode, because unicode mode it on. Got binary string\n");

if (!$res = mysqli_query($link, 'INSERT INTO test(id, label) SELECT id + 200, label FROM test'))
Expand Down
2 changes: 1 addition & 1 deletion ext/phar/tests/017.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Phar: opendir test - no dir specified at all
--SKIPIF--
<?php
if (!extension_loaded("phar")) die("skip");
if (version_compare(PHP_VERSION, "6.0", ">")) die("skip pre-unicode version of PHP required");
if (version_compare(PHP_VERSION, "6.0", "==")) die("skip pre-unicode version of PHP required");
?>
--INI--
phar.require_hash=0
Expand Down
2 changes: 1 addition & 1 deletion ext/phar/tests/017U.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Phar: opendir test - no dir specified at all
--SKIPIF--
<?php
if (!extension_loaded("phar")) die("skip");
if (version_compare(PHP_VERSION, "6.0", "<")) die("skip Unicode support required");
if (version_compare(PHP_VERSION, "6.0", "!=")) die("skip Unicode support required");
?>
--INI--
phar.require_hash=0
Expand Down
2 changes: 1 addition & 1 deletion ext/phar/tests/018.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Phar: opendir test, root directory
--SKIPIF--
<?php
if (!extension_loaded("phar")) die("skip");
if (version_compare(PHP_VERSION, "6.0", ">")) die("skip pre-unicode version of PHP required");
if (version_compare(PHP_VERSION, "6.0", "==")) die("skip pre-unicode version of PHP required");
?>
--INI--
phar.require_hash=0
Expand Down
2 changes: 1 addition & 1 deletion ext/phar/tests/018U.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Phar: opendir test, root directory
--SKIPIF--
<?php
if (!extension_loaded("phar")) die("skip");
if (version_compare(PHP_VERSION, "6.0", "<")) die("skip Unicode support required");
if (version_compare(PHP_VERSION, "6.0", "!=")) die("skip Unicode support required");
?>
--INI--
phar.require_hash=0
Expand Down
2 changes: 1 addition & 1 deletion ext/phar/tests/019b.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Phar: opendir test, recurse into
--SKIPIF--
<?php
if (!extension_loaded("phar")) die("skip");
if (version_compare(PHP_VERSION, "6.0", ">")) die("skip pre-unicode version of PHP required");
if (version_compare(PHP_VERSION, "6.0", "==")) die("skip pre-unicode version of PHP required");
?>
--INI--
phar.require_hash=0
Expand Down
2 changes: 1 addition & 1 deletion ext/phar/tests/019bU.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Phar: opendir test, recurse into
--SKIPIF--
<?php
if (!extension_loaded("phar")) die("skip");
if (version_compare(PHP_VERSION, "6.0", "<")) die("skip Unicode support required");
if (version_compare(PHP_VERSION, "6.0", "!=")) die("skip Unicode support required");
?>
--INI--
phar.require_hash=0
Expand Down
2 changes: 1 addition & 1 deletion ext/phar/tests/019c.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Phar: opendir test, recurse into
--SKIPIF--
<?php
if (!extension_loaded("phar")) die("skip");
if (version_compare(PHP_VERSION, "6.0", ">")) die("skip pre-unicode version of PHP required");
if (version_compare(PHP_VERSION, "6.0", "==")) die("skip pre-unicode version of PHP required");
?>
--INI--
phar.require_hash=0
Expand Down
2 changes: 1 addition & 1 deletion ext/phar/tests/019cU.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Phar: opendir test, recurse into
--SKIPIF--
<?php
if (!extension_loaded("phar")) die("skip");
if (version_compare(PHP_VERSION, "6.0", "<")) die("skip Unicode support required");
if (version_compare(PHP_VERSION, "6.0", "!=")) die("skip Unicode support required");
?>
--INI--
phar.require_hash=0
Expand Down
2 changes: 1 addition & 1 deletion ext/phar/tests/027.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Phar: phar:// opendir
--SKIPIF--
<?php
if (!extension_loaded("phar")) die("skip");
if (version_compare(PHP_VERSION, "6.0", ">")) die("skip pre-unicode version of PHP required");
if (version_compare(PHP_VERSION, "6.0", "==")) die("skip pre-unicode version of PHP required");
?>
--INI--
phar.require_hash=0
Expand Down
2 changes: 1 addition & 1 deletion ext/phar/tests/027U.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Phar: phar:// opendir
--SKIPIF--
<?php
if (!extension_loaded("phar")) die("skip");
if (version_compare(PHP_VERSION, "6.0", "<")) die("skip Unicode support required");
if (version_compare(PHP_VERSION, "6.0", "!=")) die("skip Unicode support required");
?>
--INI--
phar.require_hash=0
Expand Down
2 changes: 1 addition & 1 deletion ext/phar/tests/bug45218_SLOWTEST.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Phar::buildFromIterator() iterator, too many files for open file handles (Bug #4
--SKIPIF--
<?php
if (!extension_loaded("phar")) die("skip");
if (version_compare(PHP_VERSION, "6.0", ">")) die("skip pre-unicode version of PHP required");
if (version_compare(PHP_VERSION, "6.0", "==")) die("skip pre-unicode version of PHP required");
if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
?>
--INI--
Expand Down
2 changes: 1 addition & 1 deletion ext/phar/tests/bug45218_SLOWTESTU.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Phar::buildFromIterator() iterator, too many files for open file handles (Bug #4
--SKIPIF--
<?php
if (!extension_loaded("phar")) die("skip");
if (version_compare(PHP_VERSION, "6.0", "<")) die("skip Unicode support required");
if (version_compare(PHP_VERSION, "6.0", "!=")) die("skip Unicode support required");
if (getenv("SKIP_SLOW_TESTS")) die("skip slow tests excluded by request");
?>
--INI--
Expand Down
2 changes: 1 addition & 1 deletion ext/phar/tests/cached_manifest_1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Phar: phar.cache_list basic read test
--SKIPIF--
<?php
if (!extension_loaded("phar")) die("skip");
if (version_compare(PHP_VERSION, "6.0", ">")) die("skip pre-unicode version of PHP required");
if (version_compare(PHP_VERSION, "6.0", "==")) die("skip pre-unicode version of PHP required");
?>
--INI--
phar.cache_list={PWD}/files/nophar.phar
Expand Down
2 changes: 1 addition & 1 deletion ext/phar/tests/cached_manifest_1U.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Phar: phar.cache_list basic read test
--SKIPIF--
<?php
if (!extension_loaded("phar")) die("skip");
if (version_compare(PHP_VERSION, "6.0", "<")) die("skip Unicode support required");
if (version_compare(PHP_VERSION, "6.0", "!=")) die("skip Unicode support required");
?>
--INI--
phar.cache_list={PWD}/files/nophar.phar
Expand Down
2 changes: 1 addition & 1 deletion ext/phar/tests/fgc_edgecases.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Phar: test edge cases of file_get_contents() function interception
--SKIPIF--
<?php
if (!extension_loaded("phar")) die("skip");
if (version_compare(PHP_VERSION, "6.0", ">")) die("skip pre-unicode version of PHP required");
if (version_compare(PHP_VERSION, "6.0", "==")) die("skip pre-unicode version of PHP required");
?>
--INI--
phar.readonly=0
Expand Down
4 changes: 2 additions & 2 deletions ext/phar/tests/fopen_edgecases2U.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Phar: test edge cases of fopen() function interception #2 (PHP 6)
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip"); ?>
<?php if (version_compare(PHP_VERSION, "6.0.0-dev", "<")) die("skip Unicode support required"); ?>
<?php if (version_compare(PHP_VERSION, "6.0", "!=")) die("skip Unicode support required"); ?>
--INI--
phar.readonly=0
--FILE--
Expand Down Expand Up @@ -43,4 +43,4 @@ blah
test

Warning: fopen(phar://%sfopen_edgecases2U.phar.php/oops): failed to open stream: phar error: path "oops" is a directory in phar://%sfopen_edgecases2U.phar.php/foo/hi on line 6
===DONE===
===DONE===
Loading

0 comments on commit e3de409

Please sign in to comment.