diff options
Diffstat (limited to 'ext/standard')
83 files changed, 200 insertions, 200 deletions
diff --git a/ext/standard/tests/dir/opendir_variation5.phpt b/ext/standard/tests/dir/opendir_variation5.phpt index 59c8f072fa..f6b2934474 100644 --- a/ext/standard/tests/dir/opendir_variation5.phpt +++ b/ext/standard/tests/dir/opendir_variation5.phpt @@ -3,7 +3,7 @@ Test opendir() function : usage variations - directories with restricted permiss --SKIPIF-- <?php if( substr(PHP_OS, 0, 3) == 'WIN') { - die('skip Not for Windows'); + die('skip Not for Windows'); } require __DIR__ . '/../skipif_root.inc'; ?> diff --git a/ext/standard/tests/dir/scandir_variation5.phpt b/ext/standard/tests/dir/scandir_variation5.phpt index da20b5289e..7bee9f087a 100644 --- a/ext/standard/tests/dir/scandir_variation5.phpt +++ b/ext/standard/tests/dir/scandir_variation5.phpt @@ -3,7 +3,7 @@ Test scandir() function : usage variations - different directory permissions --SKIPIF-- <?php if( substr(PHP_OS, 0, 3) == 'WIN') { - die('skip Not for Windows'); + die('skip Not for Windows'); } require __DIR__ . '/../skipif_root.inc'; ?> diff --git a/ext/standard/tests/file/bug41874_1.phpt b/ext/standard/tests/file/bug41874_1.phpt index ed14d87a67..b7be9d068a 100644 --- a/ext/standard/tests/file/bug41874_1.phpt +++ b/ext/standard/tests/file/bug41874_1.phpt @@ -5,7 +5,7 @@ Venkat Raman Don --SKIPIF-- <?php if(substr(PHP_OS, 0, 3) != 'WIN' ) { - die('skip windows only test'); + die('skip windows only test'); } ?> --FILE-- diff --git a/ext/standard/tests/file/bug41874_2.phpt b/ext/standard/tests/file/bug41874_2.phpt index 012fc01a3d..f08e22fb02 100644 --- a/ext/standard/tests/file/bug41874_2.phpt +++ b/ext/standard/tests/file/bug41874_2.phpt @@ -5,7 +5,7 @@ Venkat Raman Don --SKIPIF-- <?php if(substr(PHP_OS, 0, 3) != 'WIN' ) { - die('skip windows only test'); + die('skip windows only test'); } ?> --FILE-- diff --git a/ext/standard/tests/file/bug41874_3.phpt b/ext/standard/tests/file/bug41874_3.phpt index 01bd7dc606..6ecfb8f5d5 100644 --- a/ext/standard/tests/file/bug41874_3.phpt +++ b/ext/standard/tests/file/bug41874_3.phpt @@ -5,7 +5,7 @@ Venkat Raman Don --SKIPIF-- <?php if(substr(PHP_OS, 0, 3) != 'WIN' ) { - die('skip windows only test'); + die('skip windows only test'); } ?> --FILE-- diff --git a/ext/standard/tests/file/bug47517.phpt b/ext/standard/tests/file/bug47517.phpt index 4eaf9a132c..22a2dc0c5f 100644 --- a/ext/standard/tests/file/bug47517.phpt +++ b/ext/standard/tests/file/bug47517.phpt @@ -7,7 +7,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') { } exec('net session 2>&1', $out, $status); if (!$status) { - die('skip test runs under an elevated user account'); + die('skip test runs under an elevated user account'); } ?> --FILE-- diff --git a/ext/standard/tests/file/bug47767.phpt b/ext/standard/tests/file/bug47767.phpt index a7c4f02e78..0ef3eb2091 100644 --- a/ext/standard/tests/file/bug47767.phpt +++ b/ext/standard/tests/file/bug47767.phpt @@ -5,7 +5,7 @@ Venkat Raman Don --SKIPIF-- <?php if(substr(PHP_OS, 0, 3) != 'WIN' ) { - die('skip windows only test'); + die('skip windows only test'); } include_once __DIR__ . '/windows_links/common.inc'; skipIfSeCreateSymbolicLinkPrivilegeIsDisabled(__FILE__); diff --git a/ext/standard/tests/file/bug60120.phpt b/ext/standard/tests/file/bug60120.phpt index 9d964e34cb..0236e9e1ea 100644 --- a/ext/standard/tests/file/bug60120.phpt +++ b/ext/standard/tests/file/bug60120.phpt @@ -4,7 +4,7 @@ Bug #60120 (proc_open hangs when data in stdin/out/err is getting larger or equa <?php $php = getenv('TEST_PHP_EXECUTABLE'); if (!$php) { - die("skip No php executable defined\n"); + die("skip No php executable defined\n"); } ?> --FILE-- diff --git a/ext/standard/tests/file/chroot_001.phpt b/ext/standard/tests/file/chroot_001.phpt index 7fda0b3654..a8bca2e04b 100644 --- a/ext/standard/tests/file/chroot_001.phpt +++ b/ext/standard/tests/file/chroot_001.phpt @@ -4,11 +4,11 @@ chroot() <?php chdir("/"); if (!@mkdir("testtmpskipifdir")) { - die("skip for root only"); + die("skip for root only"); } rmdir("testtmpskipifdir"); if (!function_exists("chroot")) { - die("skip chroot() not available"); + die("skip chroot() not available"); } ?> --FILE-- diff --git a/ext/standard/tests/file/file_get_contents_error001.phpt b/ext/standard/tests/file/file_get_contents_error001.phpt index 0bbce038e6..f2803e9189 100644 --- a/ext/standard/tests/file/file_get_contents_error001.phpt +++ b/ext/standard/tests/file/file_get_contents_error001.phpt @@ -7,7 +7,7 @@ file_get_contents() test using offset parameter out of range display_errors=false --SKIPIF-- <?php - if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); + if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); ?> --FILE-- <?php diff --git a/ext/standard/tests/file/fopen_variation10-win32.phpt b/ext/standard/tests/file/fopen_variation10-win32.phpt index a754f6431f..45ec3052cd 100644 --- a/ext/standard/tests/file/fopen_variation10-win32.phpt +++ b/ext/standard/tests/file/fopen_variation10-win32.phpt @@ -8,7 +8,7 @@ if(substr(PHP_OS, 0, 3) != "WIN") die("skip Run only on Windows"); if (!is_writable('c:\\')) { - die('skip. C:\\ not writable.'); + die('skip. C:\\ not writable.'); } ?> diff --git a/ext/standard/tests/file/fopen_variation11-win32.phpt b/ext/standard/tests/file/fopen_variation11-win32.phpt index e6201829b0..2236881263 100644 --- a/ext/standard/tests/file/fopen_variation11-win32.phpt +++ b/ext/standard/tests/file/fopen_variation11-win32.phpt @@ -7,7 +7,7 @@ Dave Kelsey <d_kelsey@uk.ibm.com> if(substr(PHP_OS, 0, 3) != "WIN") die("skip Run only on Windows"); if (!is_writable('c:\\')) { - die('skip. C:\\ not writable.'); + die('skip. C:\\ not writable.'); } ?> diff --git a/ext/standard/tests/file/fscanf_variation3.phpt b/ext/standard/tests/file/fscanf_variation3.phpt index 5226dba55a..ae197b6f96 100644 --- a/ext/standard/tests/file/fscanf_variation3.phpt +++ b/ext/standard/tests/file/fscanf_variation3.phpt @@ -3,7 +3,7 @@ Test fscanf() function: usage variations - integer formats with float values --SKIPIF-- <?php if (PHP_INT_SIZE != 4) { - die("skip this test is for 32bit platform only"); + die("skip this test is for 32bit platform only"); } ?> --FILE-- diff --git a/ext/standard/tests/file/fscanf_variation33.phpt b/ext/standard/tests/file/fscanf_variation33.phpt index 1809a0d1e5..c008c759c9 100644 --- a/ext/standard/tests/file/fscanf_variation33.phpt +++ b/ext/standard/tests/file/fscanf_variation33.phpt @@ -3,7 +3,7 @@ Test fscanf() function: usage variations - hexa formats with integer values --SKIPIF-- <?php if (PHP_INT_SIZE != 4) { - die("skip this test is for 32bit platform only"); + die("skip this test is for 32bit platform only"); } ?> --FILE-- diff --git a/ext/standard/tests/file/fscanf_variation34.phpt b/ext/standard/tests/file/fscanf_variation34.phpt index ac202ab26e..2dad3ace14 100644 --- a/ext/standard/tests/file/fscanf_variation34.phpt +++ b/ext/standard/tests/file/fscanf_variation34.phpt @@ -3,7 +3,7 @@ Test fscanf() function: usage variations - hexa formats with float values --SKIPIF-- <?php if (PHP_INT_SIZE != 4) { - die("skip this test is for 32bit platform only"); + die("skip this test is for 32bit platform only"); } ?> --FILE-- diff --git a/ext/standard/tests/file/fscanf_variation39.phpt b/ext/standard/tests/file/fscanf_variation39.phpt index 25a0b38706..f04d3b7e31 100644 --- a/ext/standard/tests/file/fscanf_variation39.phpt +++ b/ext/standard/tests/file/fscanf_variation39.phpt @@ -3,7 +3,7 @@ Test fscanf() function: usage variations - unsigned int formats with integer val --SKIPIF-- <?php if (PHP_INT_SIZE != 4) { - die("skip this test is for 32bit platform only"); + die("skip this test is for 32bit platform only"); } ?> --FILE-- diff --git a/ext/standard/tests/file/fscanf_variation40.phpt b/ext/standard/tests/file/fscanf_variation40.phpt index f13af1a26a..4b12a8cf0a 100644 --- a/ext/standard/tests/file/fscanf_variation40.phpt +++ b/ext/standard/tests/file/fscanf_variation40.phpt @@ -3,7 +3,7 @@ Test fscanf() function: usage variations - unsigned formats with float values --SKIPIF-- <?php if (PHP_INT_SIZE != 4) { - die("skip this test is for 32bit platform only"); + die("skip this test is for 32bit platform only"); } ?> --FILE-- diff --git a/ext/standard/tests/file/fscanf_variation55.phpt b/ext/standard/tests/file/fscanf_variation55.phpt index 3536d01b42..9b5eb967db 100644 --- a/ext/standard/tests/file/fscanf_variation55.phpt +++ b/ext/standard/tests/file/fscanf_variation55.phpt @@ -3,7 +3,7 @@ Test fscanf() function: usage variations - tracking file pointer while reading --SKIPIF-- <?php if (PHP_INT_SIZE != 4) { - die("skip this test is for 32bit platform only"); + die("skip this test is for 32bit platform only"); } ?> --FILE-- diff --git a/ext/standard/tests/file/fscanf_variation9.phpt b/ext/standard/tests/file/fscanf_variation9.phpt index eafa78cefd..8b88a036f3 100644 --- a/ext/standard/tests/file/fscanf_variation9.phpt +++ b/ext/standard/tests/file/fscanf_variation9.phpt @@ -3,7 +3,7 @@ Test fscanf() function: usage variations - float formats with integer values --SKIPIF-- <?php if (PHP_INT_SIZE != 4) { - die("skip this test is for 32bit platform only"); + die("skip this test is for 32bit platform only"); } ?> --FILE-- diff --git a/ext/standard/tests/file/link_win32.phpt b/ext/standard/tests/file/link_win32.phpt index 2bba5469c7..5aa3ce04fd 100644 --- a/ext/standard/tests/file/link_win32.phpt +++ b/ext/standard/tests/file/link_win32.phpt @@ -5,7 +5,7 @@ Venkat Raman Don --SKIPIF-- <?php if(substr(PHP_OS, 0, 3) != 'WIN' ) { - die('skip windows only test'); + die('skip windows only test'); } ?> --FILE-- diff --git a/ext/standard/tests/file/mkdir-004.phpt b/ext/standard/tests/file/mkdir-004.phpt index 46db531082..7de0e45894 100644 --- a/ext/standard/tests/file/mkdir-004.phpt +++ b/ext/standard/tests/file/mkdir-004.phpt @@ -4,7 +4,7 @@ recursive mkdir() tests <?php chdir("/"); if (!@mkdir("testtmpskipifdir")) { - die("skip for root only"); + die("skip for root only"); } rmdir("testtmpskipifdir"); ?> diff --git a/ext/standard/tests/file/mkdir-005.phpt b/ext/standard/tests/file/mkdir-005.phpt index 621c9922e5..383f8b18e0 100644 --- a/ext/standard/tests/file/mkdir-005.phpt +++ b/ext/standard/tests/file/mkdir-005.phpt @@ -4,7 +4,7 @@ recursive mkdir() tests <?php chdir("/"); if (!@mkdir("testtmpskipifdir")) { - die("skip for root only"); + die("skip for root only"); } rmdir("testtmpskipifdir"); ?> diff --git a/ext/standard/tests/file/tempnam_variation3-win32.phpt b/ext/standard/tests/file/tempnam_variation3-win32.phpt index f47bb610c6..86990f0341 100644 --- a/ext/standard/tests/file/tempnam_variation3-win32.phpt +++ b/ext/standard/tests/file/tempnam_variation3-win32.phpt @@ -3,7 +3,7 @@ Test tempnam() function: usage variations - obscure prefixes --SKIPIF-- <?php if(substr(PHP_OS, 0, 3) != "WIN") - die("skip run only on Windows"); + die("skip run only on Windows"); ?> --CONFLICTS-- obscure_filename diff --git a/ext/standard/tests/file/windows_links/bug48746_3.phpt b/ext/standard/tests/file/windows_links/bug48746_3.phpt index 09875f32c8..8150e2c551 100644 --- a/ext/standard/tests/file/windows_links/bug48746_3.phpt +++ b/ext/standard/tests/file/windows_links/bug48746_3.phpt @@ -5,12 +5,12 @@ Venkat Raman Don (don.raman@microsoft.com) --SKIPIF-- <?php if(substr(PHP_OS, 0, 3) != 'WIN' ) { - die('skip windows only test'); + die('skip windows only test'); } include_once __DIR__ . '/common.inc'; $ret = exec(get_junction().' /? 2>&1', $out); if (strpos($out[0], 'recognized')) { - die('skip. junction.exe not found in PATH.'); + die('skip. junction.exe not found in PATH.'); } ?> diff --git a/ext/standard/tests/file/windows_links/common.inc b/ext/standard/tests/file/windows_links/common.inc index b4a09e00c2..c55aa5d01a 100644 --- a/ext/standard/tests/file/windows_links/common.inc +++ b/ext/standard/tests/file/windows_links/common.inc @@ -21,10 +21,10 @@ function get_mountvol() { } function skipIfSeCreateSymbolicLinkPrivilegeIsDisabled(string $filename) { - $ln = "$filename.lnk"; - $ret = exec("mklink $ln " . __FILE__ .' 2>&1', $out); - @unlink($ln); - if (strpos($ret, 'privilege') !== false) { - die('skip SeCreateSymbolicLinkPrivilege not enabled'); - } + $ln = "$filename.lnk"; + $ret = exec("mklink $ln " . __FILE__ .' 2>&1', $out); + @unlink($ln); + if (strpos($ret, 'privilege') !== false) { + die('skip SeCreateSymbolicLinkPrivilege not enabled'); + } } diff --git a/ext/standard/tests/file/windows_mb_path/bug75063_utf8.phpt b/ext/standard/tests/file/windows_mb_path/bug75063_utf8.phpt index b8235c8842..5beb63f905 100644 --- a/ext/standard/tests/file/windows_mb_path/bug75063_utf8.phpt +++ b/ext/standard/tests/file/windows_mb_path/bug75063_utf8.phpt @@ -60,8 +60,8 @@ $d0 = $prefix . DIRECTORY_SEPARATOR . $dir_basename; $obj = scandir($d0); foreach ($obj as $file) { - if ("." == $file || ".." == $file) continue; - unlink($d0 . DIRECTORY_SEPARATOR . $file); + if ("." == $file || ".." == $file) continue; + unlink($d0 . DIRECTORY_SEPARATOR . $file); } rmdir($d0); diff --git a/ext/standard/tests/file/windows_mb_path/test_long_path_mkdir.phpt b/ext/standard/tests/file/windows_mb_path/test_long_path_mkdir.phpt index 1e3d7cd19c..1502d62e02 100644 --- a/ext/standard/tests/file/windows_mb_path/test_long_path_mkdir.phpt +++ b/ext/standard/tests/file/windows_mb_path/test_long_path_mkdir.phpt @@ -8,7 +8,7 @@ skip_if_not_win(); $start = realpath(__DIR__); if (strlen($start) > 260 || strlen($start) > 248) { - die("skip the starting path length is unsuitable for this test"); + die("skip the starting path length is unsuitable for this test"); } ?> diff --git a/ext/standard/tests/filters/bug74267.phpt b/ext/standard/tests/filters/bug74267.phpt index 7e5d550e17..703b6c0b87 100644 --- a/ext/standard/tests/filters/bug74267.phpt +++ b/ext/standard/tests/filters/bug74267.phpt @@ -6,14 +6,14 @@ $stream = fopen('php://memory', 'w'); stream_filter_append($stream, 'convert.quoted-printable-decode', STREAM_FILTER_WRITE, ['line-break-chars' => "\r\n"]); $lines = [ - "\r\n", - " -=()\r\n", - " -=\r\n", - "\r\n" - ]; + "\r\n", + " -=()\r\n", + " -=\r\n", + "\r\n" + ]; foreach ($lines as $line) { - fwrite($stream, $line); + fwrite($stream, $line); } fclose($stream); diff --git a/ext/standard/tests/general_functions/bug41518.phpt b/ext/standard/tests/general_functions/bug41518.phpt index 26e2413ce9..3b5ad3a833 100644 --- a/ext/standard/tests/general_functions/bug41518.phpt +++ b/ext/standard/tests/general_functions/bug41518.phpt @@ -5,7 +5,7 @@ Bug #41518 (file_exists() warns of open_basedir restriction on non-existent file $tmp_dir = __DIR__ . '/bug41518'; mkdir($tmp_dir); if (!is_dir($tmp_dir)) { - die("skip"); + die("skip"); } @unlink($tmp_dir); ?> diff --git a/ext/standard/tests/general_functions/dl-check-enabled.phpt b/ext/standard/tests/general_functions/dl-check-enabled.phpt index 7559b8d905..e989df0fb5 100644 --- a/ext/standard/tests/general_functions/dl-check-enabled.phpt +++ b/ext/standard/tests/general_functions/dl-check-enabled.phpt @@ -7,7 +7,7 @@ User Group: PHP-WVL & PHPGent #PHPTestFest <?php $enabled_sapi = array('cgi-fcgi', 'cli', 'embed', 'fpm'); if (!in_array(php_sapi_name(), $enabled_sapi)) { - die('skip dl() is not enabled for ' . php_sapi_name()); + die('skip dl() is not enabled for ' . php_sapi_name()); } ?> --INI-- diff --git a/ext/standard/tests/general_functions/dl-cve-2007-4887.phpt b/ext/standard/tests/general_functions/dl-cve-2007-4887.phpt index 0fe2a58143..effae83464 100644 --- a/ext/standard/tests/general_functions/dl-cve-2007-4887.phpt +++ b/ext/standard/tests/general_functions/dl-cve-2007-4887.phpt @@ -4,7 +4,7 @@ dl() filename length checks (CVE-2007-4887) <?php $enabled_sapi = array('cgi-fcgi', 'cli', 'embed', 'fpm'); if (!in_array(php_sapi_name(), $enabled_sapi)) { - die('skip dl() is not enabled for ' . php_sapi_name()); + die('skip dl() is not enabled for ' . php_sapi_name()); } ?> --INI-- diff --git a/ext/standard/tests/general_functions/dl-full-path-not-supported.phpt b/ext/standard/tests/general_functions/dl-full-path-not-supported.phpt index 746162c7bf..aaf7d042e5 100644 --- a/ext/standard/tests/general_functions/dl-full-path-not-supported.phpt +++ b/ext/standard/tests/general_functions/dl-full-path-not-supported.phpt @@ -7,7 +7,7 @@ User Group: PHP-WVL & PHPGent #PHPTestFest <?php $enabled_sapi = array('cgi-fcgi', 'cli', 'embed', 'fpm'); if (!in_array(php_sapi_name(), $enabled_sapi)) { - die('skip dl() is not enabled for ' . php_sapi_name()); + die('skip dl() is not enabled for ' . php_sapi_name()); } ?> --INI-- diff --git a/ext/standard/tests/general_functions/proc_nice_basic-win.phpt b/ext/standard/tests/general_functions/proc_nice_basic-win.phpt index 6bf3b2c0a6..e79bcad3c1 100644 --- a/ext/standard/tests/general_functions/proc_nice_basic-win.phpt +++ b/ext/standard/tests/general_functions/proc_nice_basic-win.phpt @@ -5,11 +5,11 @@ proc_nice() basic behaviour /* No function_exists() check, proc_nice() is always available on Windows */ if (!defined('PHP_WINDOWS_VERSION_MAJOR')) { - die('skip: Only for Windows'); + die('skip: Only for Windows'); } if (getenv('SKIP_SLOW_TESTS')) { - doe('skip: Slow test'); + doe('skip: Slow test'); } ?> --FILE-- diff --git a/ext/standard/tests/general_functions/proc_nice_variation5.phpt b/ext/standard/tests/general_functions/proc_nice_variation5.phpt index 650b13c60c..f4378a4d92 100644 --- a/ext/standard/tests/general_functions/proc_nice_variation5.phpt +++ b/ext/standard/tests/general_functions/proc_nice_variation5.phpt @@ -7,9 +7,9 @@ Michele Orselli (mo@ideato.it) Simone Gentili (sensorario@gmail.com) --SKIPIF-- <?php - if(!function_exists('proc_nice')) die("skip. proc_nice not available "); - if(!function_exists('posix_geteuid')) die("skip. posix_geteuid not available "); - if(posix_geteuid() == 0) print "skip - Cannot run test as root."; + if(!function_exists('proc_nice')) die("skip. proc_nice not available "); + if(!function_exists('posix_geteuid')) die("skip. posix_geteuid not available "); + if(posix_geteuid() == 0) print "skip - Cannot run test as root."; ?> --FILE-- <?php diff --git a/ext/standard/tests/general_functions/proc_open_sockets1.phpt b/ext/standard/tests/general_functions/proc_open_sockets1.phpt index baecc44827..acc8eee617 100644 --- a/ext/standard/tests/general_functions/proc_open_sockets1.phpt +++ b/ext/standard/tests/general_functions/proc_open_sockets1.phpt @@ -4,47 +4,47 @@ proc_open() with output socketpairs <?php $cmd = [ - getenv("TEST_PHP_EXECUTABLE"), - __DIR__ . '/proc_open_sockets1.inc' + getenv("TEST_PHP_EXECUTABLE"), + __DIR__ . '/proc_open_sockets1.inc' ]; $spec = [ - ['null'], - ['socket'], - ['socket'] + ['null'], + ['socket'], + ['socket'] ]; $proc = proc_open($cmd, $spec, $pipes); foreach ($pipes as $pipe) { - var_dump(stream_set_blocking($pipe, false)); + var_dump(stream_set_blocking($pipe, false)); } while ($pipes) { - $r = $pipes; - $w = null; - $e = null; - - if (!stream_select($r, $w, $e, null, 0)) { - throw new Error("Select failed"); - } - - foreach ($r as $i => $pipe) { - if (!is_resource($pipe) || feof($pipe)) { - unset($pipes[$i]); - continue; - } - - $chunk = @fread($pipe, 8192); - - if ($chunk === false) { - throw new Error("Failed to read: " . (error_get_last()['message'] ?? 'N/A')); - } - - if ($chunk !== '') { - echo "PIPE {$i} << {$chunk}\n"; - } - } + $r = $pipes; + $w = null; + $e = null; + + if (!stream_select($r, $w, $e, null, 0)) { + throw new Error("Select failed"); + } + + foreach ($r as $i => $pipe) { + if (!is_resource($pipe) || feof($pipe)) { + unset($pipes[$i]); + continue; + } + + $chunk = @fread($pipe, 8192); + + if ($chunk === false) { + throw new Error("Failed to read: " . (error_get_last()['message'] ?? 'N/A')); + } + + if ($chunk !== '') { + echo "PIPE {$i} << {$chunk}\n"; + } + } } ?> diff --git a/ext/standard/tests/general_functions/proc_open_sockets2.phpt b/ext/standard/tests/general_functions/proc_open_sockets2.phpt index 25f3153ec4..7f9e1a85c5 100644 --- a/ext/standard/tests/general_functions/proc_open_sockets2.phpt +++ b/ext/standard/tests/general_functions/proc_open_sockets2.phpt @@ -5,49 +5,49 @@ proc_open() with IO socketpairs function poll($pipe, $read = true) { - $r = ($read == true) ? [$pipe] : null; - $w = ($read == false) ? [$pipe] : null; - $e = null; - - if (!stream_select($r, $w, $e, null, 0)) { - throw new \Error("Select failed"); - } + $r = ($read == true) ? [$pipe] : null; + $w = ($read == false) ? [$pipe] : null; + $e = null; + + if (!stream_select($r, $w, $e, null, 0)) { + throw new \Error("Select failed"); + } } function read_pipe($pipe): string { - poll($pipe); - - if (false === ($chunk = @fread($pipe, 8192))) { - throw new Error("Failed to read: " . (error_get_last()['message'] ?? 'N/A')); - } - - return $chunk; + poll($pipe); + + if (false === ($chunk = @fread($pipe, 8192))) { + throw new Error("Failed to read: " . (error_get_last()['message'] ?? 'N/A')); + } + + return $chunk; } function write_pipe($pipe, $data) { - poll($pipe, false); - - if (false == @fwrite($pipe, $data)) { - throw new Error("Failed to write: " . (error_get_last()['message'] ?? 'N/A')); - } + poll($pipe, false); + + if (false == @fwrite($pipe, $data)) { + throw new Error("Failed to write: " . (error_get_last()['message'] ?? 'N/A')); + } } $cmd = [ - getenv("TEST_PHP_EXECUTABLE"), - __DIR__ . '/proc_open_sockets2.inc' + getenv("TEST_PHP_EXECUTABLE"), + __DIR__ . '/proc_open_sockets2.inc' ]; $spec = [ - ['socket'], - ['socket'] + ['socket'], + ['socket'] ]; $proc = proc_open($cmd, $spec, $pipes); foreach ($pipes as $pipe) { - var_dump(stream_set_blocking($pipe, false)); + var_dump(stream_set_blocking($pipe, false)); } printf("STDOUT << %s\n", read_pipe($pipes[1])); diff --git a/ext/standard/tests/general_functions/proc_open_sockets3.phpt b/ext/standard/tests/general_functions/proc_open_sockets3.phpt index 5ee9e53b56..be2a371238 100644 --- a/ext/standard/tests/general_functions/proc_open_sockets3.phpt +++ b/ext/standard/tests/general_functions/proc_open_sockets3.phpt @@ -5,34 +5,34 @@ proc_open() with socket and pipe function poll($pipe, $read = true) { - $r = ($read == true) ? [$pipe] : null; - $w = ($read == false) ? [$pipe] : null; - $e = null; - - if (!stream_select($r, $w, $e, null, 0)) { - throw new \Error("Select failed"); - } + $r = ($read == true) ? [$pipe] : null; + $w = ($read == false) ? [$pipe] : null; + $e = null; + + if (!stream_select($r, $w, $e, null, 0)) { + throw new \Error("Select failed"); + } } function read_pipe($pipe): string { - poll($pipe); - - if (false === ($chunk = @fread($pipe, 8192))) { - throw new Error("Failed to read: " . (error_get_last()['message'] ?? 'N/A')); - } - - return $chunk; + poll($pipe); + + if (false === ($chunk = @fread($pipe, 8192))) { + throw new Error("Failed to read: " . (error_get_last()['message'] ?? 'N/A')); + } + + return $chunk; } $cmd = [ - getenv("TEST_PHP_EXECUTABLE"), - __DIR__ . '/proc_open_sockets2.inc' + getenv("TEST_PHP_EXECUTABLE"), + __DIR__ . '/proc_open_sockets2.inc' ]; $spec = [ - ['pipe', 'r'], - ['socket'] + ['pipe', 'r'], + ['socket'] ]; $proc = proc_open($cmd, $spec, $pipes); diff --git a/ext/standard/tests/general_functions/putenv_bug75574_cp936_win.phpt b/ext/standard/tests/general_functions/putenv_bug75574_cp936_win.phpt index 9a92bef794..9e963dd1ce 100644 --- a/ext/standard/tests/general_functions/putenv_bug75574_cp936_win.phpt +++ b/ext/standard/tests/general_functions/putenv_bug75574_cp936_win.phpt @@ -7,7 +7,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') { die("skip Valid only on Windows"); } if (!sapi_windows_cp_set(936)) { - die("skip Required CP 936 or compatible"); + die("skip Required CP 936 or compatible"); } ?> diff --git a/ext/standard/tests/image/getimagesize.phpt b/ext/standard/tests/image/getimagesize.phpt index ed32ac7c0e..582959f3ae 100644 --- a/ext/standard/tests/image/getimagesize.phpt +++ b/ext/standard/tests/image/getimagesize.phpt @@ -2,7 +2,7 @@ GetImageSize() --SKIPIF-- <?php - require_once('skipif_imagetype.inc'); + require_once('skipif_imagetype.inc'); ?> --FILE-- <?php diff --git a/ext/standard/tests/image/getimagesize_246x247.phpt b/ext/standard/tests/image/getimagesize_246x247.phpt index 0e1290fcf2..c716ac3aeb 100644 --- a/ext/standard/tests/image/getimagesize_246x247.phpt +++ b/ext/standard/tests/image/getimagesize_246x247.phpt @@ -2,7 +2,7 @@ GetImageSize() with 246x247 pixels --SKIPIF-- <?php - require_once('skipif_imagetype.inc'); + require_once('skipif_imagetype.inc'); ?> --FILE-- <?php diff --git a/ext/standard/tests/image/getimagesize_384x385.phpt b/ext/standard/tests/image/getimagesize_384x385.phpt index cef9d73b3f..57dc8a7192 100644 --- a/ext/standard/tests/image/getimagesize_384x385.phpt +++ b/ext/standard/tests/image/getimagesize_384x385.phpt @@ -2,7 +2,7 @@ GetImageSize() with 384x385 pixels --SKIPIF-- <?php - require_once('skipif_imagetype.inc'); + require_once('skipif_imagetype.inc'); ?> --FILE-- <?php diff --git a/ext/standard/tests/image/getimagesize_swc.phpt b/ext/standard/tests/image/getimagesize_swc.phpt index bba67d4f09..b5a0838eb6 100644 --- a/ext/standard/tests/image/getimagesize_swc.phpt +++ b/ext/standard/tests/image/getimagesize_swc.phpt @@ -2,9 +2,9 @@ GetImageSize() for compressed swf files --SKIPIF-- <?php - if (!defined("IMAGETYPE_SWC") || !extension_loaded('zlib')) { - die("skip zlib extension is not available"); - } + if (!defined("IMAGETYPE_SWC") || !extension_loaded('zlib')) { + die("skip zlib extension is not available"); + } ?> --FILE-- <?php diff --git a/ext/standard/tests/image/getimagesize_variation4.phpt b/ext/standard/tests/image/getimagesize_variation4.phpt index fac3900417..8ed39fc2ff 100644 --- a/ext/standard/tests/image/getimagesize_variation4.phpt +++ b/ext/standard/tests/image/getimagesize_variation4.phpt @@ -2,9 +2,9 @@ Test getimagesize() function : variation - For shockwave-flash format --SKIPIF-- <?php - if (!defined("IMAGETYPE_SWC") || !extension_loaded('zlib')) { - die("skip zlib extension is not available"); - } + if (!defined("IMAGETYPE_SWC") || !extension_loaded('zlib')) { + die("skip zlib extension is not available"); + } ?> --FILE-- <?php diff --git a/ext/standard/tests/image/getimagesize_variation_005.phpt b/ext/standard/tests/image/getimagesize_variation_005.phpt index 503ed7657c..d0c48f5112 100644 --- a/ext/standard/tests/image/getimagesize_variation_005.phpt +++ b/ext/standard/tests/image/getimagesize_variation_005.phpt @@ -2,9 +2,9 @@ Test getimagesize() function : basic functionality for shockwave-flash --SKIPIF-- <?php - if (!defined("IMAGETYPE_SWC") || !extension_loaded('zlib')) { - die("skip zlib extension is not available or SWC not supported"); - } + if (!defined("IMAGETYPE_SWC") || !extension_loaded('zlib')) { + die("skip zlib extension is not available or SWC not supported"); + } ?> --FILE-- <?php diff --git a/ext/standard/tests/image/image_type_to_mime_type.phpt b/ext/standard/tests/image/image_type_to_mime_type.phpt index aff49ae58f..b4f6d3c403 100644 --- a/ext/standard/tests/image/image_type_to_mime_type.phpt +++ b/ext/standard/tests/image/image_type_to_mime_type.phpt @@ -2,7 +2,7 @@ image_type_to_mime_type() --SKIPIF-- <?php - require_once('skipif_imagetype.inc'); + require_once('skipif_imagetype.inc'); ?> --FILE-- <?php diff --git a/ext/standard/tests/image/image_type_to_mime_type_variation4.phpt b/ext/standard/tests/image/image_type_to_mime_type_variation4.phpt index ca487e00a2..ed70dada18 100644 --- a/ext/standard/tests/image/image_type_to_mime_type_variation4.phpt +++ b/ext/standard/tests/image/image_type_to_mime_type_variation4.phpt @@ -2,9 +2,9 @@ Test image_type_to_mime_type() function : usage variations - Passing IMAGETYPE_ICO and IMAGETYPE_SWC --SKIPIF-- <?php - if (!defined("IMAGETYPE_SWC") || !extension_loaded('zlib')) { - die("skip zlib extension is not available or IMAGETYPE_SWC is not defined "); - } + if (!defined("IMAGETYPE_SWC") || !extension_loaded('zlib')) { + die("skip zlib extension is not available or IMAGETYPE_SWC is not defined "); + } ?> --FILE-- <?php diff --git a/ext/standard/tests/math/bug25665.phpt b/ext/standard/tests/math/bug25665.phpt index 120604aff2..058562fffb 100644 --- a/ext/standard/tests/math/bug25665.phpt +++ b/ext/standard/tests/math/bug25665.phpt @@ -2,8 +2,8 @@ Bug #25665 (var_dump () hangs on Nan and INF) --SKIPIF-- <?php - $OS = strtoupper(PHP_OS); - if ($OS == 'SUNOS' || $OS == 'SOLARIS') die("SKIP Solaris acos() returns wrong value"); + $OS = strtoupper(PHP_OS); + if ($OS == 'SUNOS' || $OS == 'SOLARIS') die("SKIP Solaris acos() returns wrong value"); ?> --FILE-- <?php diff --git a/ext/standard/tests/network/inet_ipv6.phpt b/ext/standard/tests/network/inet_ipv6.phpt index f78d4be7cc..8e9c44431b 100644 --- a/ext/standard/tests/network/inet_ipv6.phpt +++ b/ext/standard/tests/network/inet_ipv6.phpt @@ -7,7 +7,7 @@ if (!function_exists("inet_pton")) die("skip no inet_pton()"); $packed = str_repeat(chr(0), 15) . chr(1); if (@inet_ntop($packed) === false) { - die("skip no IPv6 support"); + die("skip no IPv6 support"); } if (stristr(PHP_OS, "darwin") !== false) die("skip MacOS has broken inet_*() funcs"); ?> diff --git a/ext/standard/tests/network/shutdown.phpt b/ext/standard/tests/network/shutdown.phpt index b8655cc1f4..64373596a2 100644 --- a/ext/standard/tests/network/shutdown.phpt +++ b/ext/standard/tests/network/shutdown.phpt @@ -2,7 +2,7 @@ stream_socket_shutdown() test on IPv4 TCP Loopback --SKIPIF-- <?php - function_exists('stream_socket_shutdown') or die('skip stream_socket_shutdown() is not supported.'); + function_exists('stream_socket_shutdown') or die('skip stream_socket_shutdown() is not supported.'); ?> --FILE-- <?php diff --git a/ext/standard/tests/network/tcp6loop.phpt b/ext/standard/tests/network/tcp6loop.phpt index 8322a0912d..e832c1e9c0 100644 --- a/ext/standard/tests/network/tcp6loop.phpt +++ b/ext/standard/tests/network/tcp6loop.phpt @@ -2,13 +2,13 @@ Streams Based IPv6 TCP Loopback test --SKIPIF-- <?php - /* If IPv6 is supported on the platform this will error out with code 111 - Connection refused (or code 10049 on Windows). - If IPv6 is NOT supported, $errno will be set to something else (indicating parse/getaddrinfo error) - Note: Might be a good idea to export an IPv6 support indicator (such as AF_INET6 exported by ext/sockets) */ - @stream_socket_client('tcp://[::1]:0', $errno); - if ((PHP_OS_FAMILY === 'Windows' && $errno !== 10049) || (PHP_OS_FAMILY !== 'Windows' && $errno !== 111)) { - die('skip IPv6 is not supported.'); - } + /* If IPv6 is supported on the platform this will error out with code 111 - Connection refused (or code 10049 on Windows). + If IPv6 is NOT supported, $errno will be set to something else (indicating parse/getaddrinfo error) + Note: Might be a good idea to export an IPv6 support indicator (such as AF_INET6 exported by ext/sockets) */ + @stream_socket_client('tcp://[::1]:0', $errno); + if ((PHP_OS_FAMILY === 'Windows' && $errno !== 10049) || (PHP_OS_FAMILY !== 'Windows' && $errno !== 111)) { + die('skip IPv6 is not supported.'); + } ?> --FILE-- <?php diff --git a/ext/standard/tests/network/udgloop.phpt b/ext/standard/tests/network/udgloop.phpt index 3a7e1bf267..21f3d2554f 100644 --- a/ext/standard/tests/network/udgloop.phpt +++ b/ext/standard/tests/network/udgloop.phpt @@ -2,8 +2,8 @@ Streams Based Unix Domain Datagram Loopback test --SKIPIF-- <?php - if (array_search("udg",stream_get_transports()) === false) - die('SKIP No support for UNIX domain sockets.'); + if (array_search("udg",stream_get_transports()) === false) + die('SKIP No support for UNIX domain sockets.'); ?> --FILE-- <?php diff --git a/ext/standard/tests/network/udp6loop.phpt b/ext/standard/tests/network/udp6loop.phpt index 533d9afb2a..5426d8b7e5 100644 --- a/ext/standard/tests/network/udp6loop.phpt +++ b/ext/standard/tests/network/udp6loop.phpt @@ -2,19 +2,19 @@ Streams Based IPv6 UDP Loopback test --SKIPIF-- <?php - /* If IPv6 is supported on the platform this will error out with code 111 - - * Connection refused (or code 10049 on Windows). If IPv6 is NOT supported, $errno will be set to - * something else (indicating parse/getaddrinfo error) - * Note: Might be a good idea to export an IPv6 support indicator - * (such as AF_INET6 exported by ext/sockets), however, since we - * cannot tell for sure if IPv6 works until we probe it at run time, - * this isn't really practical. - */ + /* If IPv6 is supported on the platform this will error out with code 111 - + * Connection refused (or code 10049 on Windows). If IPv6 is NOT supported, $errno will be set to + * something else (indicating parse/getaddrinfo error) + * Note: Might be a good idea to export an IPv6 support indicator + * (such as AF_INET6 exported by ext/sockets), however, since we + * cannot tell for sure if IPv6 works until we probe it at run time, + * this isn't really practical. + */ - @stream_socket_client('tcp://[::1]:0', $errno); - if ((PHP_OS_FAMILY === 'Windows' && $errno !== 10049) || (PHP_OS_FAMILY !== 'Windows' && $errno !== 111)) { - die('skip IPv6 is not supported.'); - } + @stream_socket_client('tcp://[::1]:0', $errno); + if ((PHP_OS_FAMILY === 'Windows' && $errno !== 10049) || (PHP_OS_FAMILY !== 'Windows' && $errno !== 111)) { + die('skip IPv6 is not supported.'); + } ?> --FILE-- <?php diff --git a/ext/standard/tests/network/unixloop.phpt b/ext/standard/tests/network/unixloop.phpt index 4b5bde2262..1eaa64a87c 100644 --- a/ext/standard/tests/network/unixloop.phpt +++ b/ext/standard/tests/network/unixloop.phpt @@ -2,8 +2,8 @@ Streams Based Unix Domain Loopback test --SKIPIF-- <?php - if (array_search("unix",stream_get_transports()) === false) - die('SKIP No support for UNIX domain sockets.'); + if (array_search("unix",stream_get_transports()) === false) + die('SKIP No support for UNIX domain sockets.'); ?> --FILE-- <?php diff --git a/ext/standard/tests/serialize/bug26762.phpt b/ext/standard/tests/serialize/bug26762.phpt index d4daf34464..33b2276a6c 100644 --- a/ext/standard/tests/serialize/bug26762.phpt +++ b/ext/standard/tests/serialize/bug26762.phpt @@ -2,7 +2,7 @@ Bug #26762 (unserialize() produces lowercase classnames) --SKIPIF-- <?php - if (class_exists('autoload_root')) die('skip Autoload test classes exist already'); + if (class_exists('autoload_root')) die('skip Autoload test classes exist already'); ?> --FILE-- <?php diff --git a/ext/standard/tests/serialize/bug30234.phpt b/ext/standard/tests/serialize/bug30234.phpt index 66e5aa3547..c931ef1895 100644 --- a/ext/standard/tests/serialize/bug30234.phpt +++ b/ext/standard/tests/serialize/bug30234.phpt @@ -2,7 +2,7 @@ Bug #30234 (__autoload() not invoked for interfaces) --SKIPIF-- <?php - if (class_exists('autoload_root', false)) die('skip Autoload test classes exist already'); + if (class_exists('autoload_root', false)) die('skip Autoload test classes exist already'); ?> --FILE-- <?php diff --git a/ext/standard/tests/serialize/precision.phpt b/ext/standard/tests/serialize/precision.phpt index c4679db4f1..05305319d3 100644 --- a/ext/standard/tests/serialize/precision.phpt +++ b/ext/standard/tests/serialize/precision.phpt @@ -3,7 +3,7 @@ Default precision is sufficient to serialize all the information in floats --SKIPIF-- <?php if (pack('s', 1) != "\x01\x00") - die("skip test for little-endian architectures"); + die("skip test for little-endian architectures"); --FILE-- <?php diff --git a/ext/standard/tests/streams/bug61371-unix.phpt b/ext/standard/tests/streams/bug61371-unix.phpt index 20361095f6..e196c028cc 100644 --- a/ext/standard/tests/streams/bug61371-unix.phpt +++ b/ext/standard/tests/streams/bug61371-unix.phpt @@ -3,7 +3,7 @@ Bug #61371: stream_context_create() causes memory leaks on use streams_socket_cr --SKIPIF-- <?php if(substr(PHP_OS, 0, 3) == 'WIN' ) { - die('skip non windows test'); + die('skip non windows test'); } --FILE-- <?php diff --git a/ext/standard/tests/streams/bug64433.phpt b/ext/standard/tests/streams/bug64433.phpt index ae83302921..56af241837 100644 --- a/ext/standard/tests/streams/bug64433.phpt +++ b/ext/standard/tests/streams/bug64433.phpt @@ -3,10 +3,10 @@ Bug #60180 ($_SERVER["PHP_SELF"] incorrect) --SKIPIF-- <?php if(!file_exists(__DIR__."/../../../../sapi/cli/tests/php_cli_server.inc")) - die("skip could not found cli server script"); + die("skip could not found cli server script"); $res = @include __DIR__."/../../../../sapi/cli/tests/php_cli_server.inc"; if(!$res) { - die("skip could not open cli server script"); + die("skip could not open cli server script"); } ?> --CONFLICTS-- diff --git a/ext/standard/tests/streams/proc_open_bug51800.phpt b/ext/standard/tests/streams/proc_open_bug51800.phpt index 7cf502edd8..3ae96ca3dd 100644 --- a/ext/standard/tests/streams/proc_open_bug51800.phpt +++ b/ext/standard/tests/streams/proc_open_bug51800.phpt @@ -2,10 +2,10 @@ Bug #51800 proc_open on Windows hangs forever --SKIPIF-- <?php - echo 'skip expected to fail or take too long'; - if (getenv("SKIP_SLOW_TESTS")) { - die("skip slow test"); - } + echo 'skip expected to fail or take too long'; + if (getenv("SKIP_SLOW_TESTS")) { + die("skip slow test"); + } ?> --XFAIL-- pipes have to be read/written simultaneously diff --git a/ext/standard/tests/strings/bug65769.phpt b/ext/standard/tests/strings/bug65769.phpt index 31656ee60f..aedc303681 100644 --- a/ext/standard/tests/strings/bug65769.phpt +++ b/ext/standard/tests/strings/bug65769.phpt @@ -6,7 +6,7 @@ if (substr(PHP_OS, 0, 3) != 'WIN') { die('skip Windows only'); } if (PHP_WINDOWS_VERSION_MAJOR < 10) { - die("skip for Windows 10 and above"); + die("skip for Windows 10 and above"); } ?> --FILE-- diff --git a/ext/standard/tests/strings/bug72663_2.phpt b/ext/standard/tests/strings/bug72663_2.phpt index fc89784390..d0d7f81008 100644 --- a/ext/standard/tests/strings/bug72663_2.phpt +++ b/ext/standard/tests/strings/bug72663_2.phpt @@ -3,7 +3,7 @@ Bug #72663: Create an Unexpected Object and Don't Invoke __wakeup() in Deseriali --SKIPIF-- <?php if (!extension_loaded("session")) { - die("skip"); + die("skip"); } ?> --FILE-- diff --git a/ext/standard/tests/strings/htmlentities02.phpt b/ext/standard/tests/strings/htmlentities02.phpt index 9e6a96e060..e8d0b5b9f7 100644 --- a/ext/standard/tests/strings/htmlentities02.phpt +++ b/ext/standard/tests/strings/htmlentities02.phpt @@ -4,7 +4,7 @@ htmlentities() test 2 (setlocale / fr_FR.ISO-8859-15) <?php $result = (bool)setlocale(LC_CTYPE, "fr_FR.ISO-8859-15", "fr_FR.ISO8859-15", 'fr_FR@euro'); if (!$result) { - die("skip setlocale() failed\n"); + die("skip setlocale() failed\n"); } ?> --INI-- diff --git a/ext/standard/tests/strings/htmlentities03.phpt b/ext/standard/tests/strings/htmlentities03.phpt index 4840653414..973bafedbd 100644 --- a/ext/standard/tests/strings/htmlentities03.phpt +++ b/ext/standard/tests/strings/htmlentities03.phpt @@ -4,7 +4,7 @@ htmlentities() test 3 (setlocale / de_DE.ISO-8859-1) <?php $result = (bool)setlocale(LC_CTYPE, "de_DE.ISO-8859-1", "de_DE.ISO8859-1"); if (!$result || preg_match('/ISO/i', setlocale(LC_CTYPE, 0)) == 0) { - die("skip setlocale() failed\n"); + die("skip setlocale() failed\n"); } ?> --INI-- diff --git a/ext/standard/tests/strings/htmlentities05.phpt b/ext/standard/tests/strings/htmlentities05.phpt index 04bf4deb00..04dd756a31 100644 --- a/ext/standard/tests/strings/htmlentities05.phpt +++ b/ext/standard/tests/strings/htmlentities05.phpt @@ -5,7 +5,7 @@ output_handler= internal_encoding=cp1252 --SKIPIF-- <?php - extension_loaded("mbstring") or die("skip mbstring not available\n"); + extension_loaded("mbstring") or die("skip mbstring not available\n"); --FILE-- <?php print mb_internal_encoding()."\n"; diff --git a/ext/standard/tests/strings/htmlentities06.phpt b/ext/standard/tests/strings/htmlentities06.phpt index 487b5d33ff..9ecfa3cf4d 100644 --- a/ext/standard/tests/strings/htmlentities06.phpt +++ b/ext/standard/tests/strings/htmlentities06.phpt @@ -5,7 +5,7 @@ output_handler= internal_encoding=ISO-8859-15 --SKIPIF-- <?php - extension_loaded("mbstring") or die("skip mbstring not available\n"); + extension_loaded("mbstring") or die("skip mbstring not available\n"); --FILE-- <?php mb_internal_encoding('ISO-8859-15'); diff --git a/ext/standard/tests/strings/htmlentities07.phpt b/ext/standard/tests/strings/htmlentities07.phpt index 04e138e0c7..b69aeca861 100644 --- a/ext/standard/tests/strings/htmlentities07.phpt +++ b/ext/standard/tests/strings/htmlentities07.phpt @@ -5,7 +5,7 @@ output_handler= internal_encoding=ISO-8859-1 --SKIPIF-- <?php - extension_loaded("mbstring") or die("skip mbstring not available\n"); + extension_loaded("mbstring") or die("skip mbstring not available\n"); --FILE-- <?php mb_internal_encoding('ISO-8859-1'); diff --git a/ext/standard/tests/strings/htmlentities08.phpt b/ext/standard/tests/strings/htmlentities08.phpt index fdba4ede80..3ec74996d5 100644 --- a/ext/standard/tests/strings/htmlentities08.phpt +++ b/ext/standard/tests/strings/htmlentities08.phpt @@ -5,7 +5,7 @@ output_handler= internal_encoding=EUC-JP --SKIPIF-- <?php - extension_loaded("mbstring") or die("skip mbstring not available\n"); + extension_loaded("mbstring") or die("skip mbstring not available\n"); --FILE-- <?php mb_internal_encoding('EUC-JP'); diff --git a/ext/standard/tests/strings/htmlentities09.phpt b/ext/standard/tests/strings/htmlentities09.phpt index 6ca0a1e39e..9d9576c5ea 100644 --- a/ext/standard/tests/strings/htmlentities09.phpt +++ b/ext/standard/tests/strings/htmlentities09.phpt @@ -5,7 +5,7 @@ output_handler= internal_encoding=Shift_JIS --SKIPIF-- <?php - extension_loaded("mbstring") or die("skip mbstring not available\n"); + extension_loaded("mbstring") or die("skip mbstring not available\n"); --FILE-- <?php mb_internal_encoding('Shift_JIS'); diff --git a/ext/standard/tests/strings/htmlentities16.phpt b/ext/standard/tests/strings/htmlentities16.phpt index 1971f8340d..6f2b270242 100644 --- a/ext/standard/tests/strings/htmlentities16.phpt +++ b/ext/standard/tests/strings/htmlentities16.phpt @@ -5,7 +5,7 @@ output_handler= internal_encoding=cp1251 --SKIPIF-- <?php - extension_loaded("mbstring") or die("skip mbstring not available\n"); + extension_loaded("mbstring") or die("skip mbstring not available\n"); ?> --FILE-- <?php diff --git a/ext/standard/tests/strings/htmlentities25.phpt b/ext/standard/tests/strings/htmlentities25.phpt index 7eef7ff356..b7bfdfa1bf 100644 --- a/ext/standard/tests/strings/htmlentities25.phpt +++ b/ext/standard/tests/strings/htmlentities25.phpt @@ -6,7 +6,7 @@ internal_encoding= mbstring.internal_encoding=ISO-8859-1 --SKIPIF-- <?php - extension_loaded("mbstring") or die("skip mbstring not available\n"); + extension_loaded("mbstring") or die("skip mbstring not available\n"); ?> --FILE-- <?php diff --git a/ext/standard/tests/strings/pack.phpt b/ext/standard/tests/strings/pack.phpt index 97a6a687c5..af44926667 100644 --- a/ext/standard/tests/strings/pack.phpt +++ b/ext/standard/tests/strings/pack.phpt @@ -3,7 +3,7 @@ Generic pack()/unpack() tests --SKIPIF-- <?php if (PHP_INT_MAX > 2147483647) { - die("skip 32bit test only"); + die("skip 32bit test only"); } ?> --FILE-- diff --git a/ext/standard/tests/strings/pack64.phpt b/ext/standard/tests/strings/pack64.phpt index cccdc1ba6e..753821f654 100644 --- a/ext/standard/tests/strings/pack64.phpt +++ b/ext/standard/tests/strings/pack64.phpt @@ -3,7 +3,7 @@ --SKIPIF-- <?php if (PHP_INT_SIZE < 8) { - die("skip 64bit test only"); + die("skip 64bit test only"); } ?> --FILE-- diff --git a/ext/standard/tests/strings/pack64_32.phpt b/ext/standard/tests/strings/pack64_32.phpt index f52de63ca4..978e04449d 100644 --- a/ext/standard/tests/strings/pack64_32.phpt +++ b/ext/standard/tests/strings/pack64_32.phpt @@ -3,7 +3,7 @@ --SKIPIF-- <?php if (PHP_INT_SIZE > 4) { - die("skip 32bit test only"); + die("skip 32bit test only"); } ?> --FILE-- diff --git a/ext/standard/tests/strings/printf_basic7.phpt b/ext/standard/tests/strings/printf_basic7.phpt index 19c1f42104..b7218cd7de 100644 --- a/ext/standard/tests/strings/printf_basic7.phpt +++ b/ext/standard/tests/strings/printf_basic7.phpt @@ -3,7 +3,7 @@ Test printf() function : basic functionality - unsigned format --SKIPIF-- <?php if (PHP_INT_SIZE != 4) { - die("skip this test is for 32bit platform only"); + die("skip this test is for 32bit platform only"); } ?> --FILE-- diff --git a/ext/standard/tests/strings/printf_basic8.phpt b/ext/standard/tests/strings/printf_basic8.phpt index 800d6cc1e7..395972ba96 100644 --- a/ext/standard/tests/strings/printf_basic8.phpt +++ b/ext/standard/tests/strings/printf_basic8.phpt @@ -3,7 +3,7 @@ Test printf() function : basic functionality - octal format --SKIPIF-- <?php if (PHP_INT_SIZE != 4) { - die("skip this test is for 32bit platform only"); + die("skip this test is for 32bit platform only"); } ?> --FILE-- diff --git a/ext/standard/tests/strings/sprintf_basic7.phpt b/ext/standard/tests/strings/sprintf_basic7.phpt index 63cf1975bb..77765aaf52 100644 --- a/ext/standard/tests/strings/sprintf_basic7.phpt +++ b/ext/standard/tests/strings/sprintf_basic7.phpt @@ -3,7 +3,7 @@ Test sprintf() function : basic functionality - unsigned format --SKIPIF-- <?php if (PHP_INT_SIZE != 4) { - die("skip this test is for 32bit platform only"); + die("skip this test is for 32bit platform only"); } ?> --FILE-- diff --git a/ext/standard/tests/strings/sprintf_basic8.phpt b/ext/standard/tests/strings/sprintf_basic8.phpt index 5c8cdb5d5a..e9696db27b 100644 --- a/ext/standard/tests/strings/sprintf_basic8.phpt +++ b/ext/standard/tests/strings/sprintf_basic8.phpt @@ -3,7 +3,7 @@ Test sprintf() function : basic functionality - octal format --SKIPIF-- <?php if (PHP_INT_SIZE != 4) { - die("skip this test is for 32bit platform only"); + die("skip this test is for 32bit platform only"); } ?> --FILE-- diff --git a/ext/standard/tests/strings/sprintf_variation28.phpt b/ext/standard/tests/strings/sprintf_variation28.phpt index 53c6bd015f..4903d3ed15 100644 --- a/ext/standard/tests/strings/sprintf_variation28.phpt +++ b/ext/standard/tests/strings/sprintf_variation28.phpt @@ -3,7 +3,7 @@ Test sprintf() function : usage variations - octal formats with integer values --SKIPIF-- <?php if (PHP_INT_SIZE != 4) { - die("skip this test is for 32bit platform only"); + die("skip this test is for 32bit platform only"); } ?> --FILE-- diff --git a/ext/standard/tests/strings/sprintf_variation34.phpt b/ext/standard/tests/strings/sprintf_variation34.phpt index a02f5cda6e..c7ff681f57 100644 --- a/ext/standard/tests/strings/sprintf_variation34.phpt +++ b/ext/standard/tests/strings/sprintf_variation34.phpt @@ -3,7 +3,7 @@ Test sprintf() function : usage variations - hexa formats with integer values --SKIPIF-- <?php if (PHP_INT_SIZE != 4) { - die("skip this test is for 32bit platform only"); + die("skip this test is for 32bit platform only"); } ?> --FILE-- diff --git a/ext/standard/tests/strings/sprintf_variation40.phpt b/ext/standard/tests/strings/sprintf_variation40.phpt index 9b3890f15d..3bec553dd8 100644 --- a/ext/standard/tests/strings/sprintf_variation40.phpt +++ b/ext/standard/tests/strings/sprintf_variation40.phpt @@ -3,7 +3,7 @@ Test sprintf() function : usage variations - unsigned formats with integer value --SKIPIF-- <?php if (PHP_INT_SIZE != 4) { - die("skip this test is for 32bit platform only"); + die("skip this test is for 32bit platform only"); } ?> --FILE-- diff --git a/ext/standard/tests/strings/sscanf_basic6.phpt b/ext/standard/tests/strings/sscanf_basic6.phpt index dad84c3e63..5aec9c0940 100644 --- a/ext/standard/tests/strings/sscanf_basic6.phpt +++ b/ext/standard/tests/strings/sscanf_basic6.phpt @@ -3,7 +3,7 @@ Test sscanf() function : basic functionality - unsigned format --SKIPIF-- <?php if (PHP_INT_SIZE != 4) { - die("skip this test is for 32bit platform only"); + die("skip this test is for 32bit platform only"); } ?> --FILE-- diff --git a/ext/standard/tests/time/001.phpt b/ext/standard/tests/time/001.phpt index 34b87157f2..afd32375bb 100644 --- a/ext/standard/tests/time/001.phpt +++ b/ext/standard/tests/time/001.phpt @@ -2,7 +2,7 @@ microtime() function --SKIPIF-- <?php - if (!function_exists('microtime')) die('skip microtime() not available'); + if (!function_exists('microtime')) die('skip microtime() not available'); ?> --FILE-- <?php diff --git a/ext/standard/tests/time/strptime_error.phpt b/ext/standard/tests/time/strptime_error.phpt index c71ee0b465..adbb8922f5 100644 --- a/ext/standard/tests/time/strptime_error.phpt +++ b/ext/standard/tests/time/strptime_error.phpt @@ -3,7 +3,7 @@ Test localtime() function : error conditions --SKIPIF-- <?php if (!function_exists('strptime')) { - echo "SKIP strptime function not available in build"; + echo "SKIP strptime function not available in build"; } ?> --FILE-- |
