summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/general_functions')
-rw-r--r--ext/standard/tests/general_functions/001.phpt2
-rw-r--r--ext/standard/tests/general_functions/003.phpt8
-rw-r--r--ext/standard/tests/general_functions/004.phpt2
-rw-r--r--ext/standard/tests/general_functions/007.phpt2
-rw-r--r--ext/standard/tests/general_functions/009.phpt2
-rw-r--r--ext/standard/tests/general_functions/bug27678.phpt2
-rw-r--r--ext/standard/tests/general_functions/bug31190.phpt2
-rw-r--r--ext/standard/tests/general_functions/bug36011.phpt6
-rw-r--r--ext/standard/tests/general_functions/bug40752.phpt2
-rw-r--r--ext/standard/tests/general_functions/bug41037.phpt2
-rw-r--r--ext/standard/tests/general_functions/bug41445.phpt2
-rw-r--r--ext/standard/tests/general_functions/bug41445_1.phpt4
-rw-r--r--ext/standard/tests/general_functions/bug43293_1.phpt2
-rw-r--r--ext/standard/tests/general_functions/bug44667.phpt12
-rw-r--r--ext/standard/tests/general_functions/bug66094.phpt2
-rw-r--r--ext/standard/tests/general_functions/call_user_func_array_variation_002.phpt6
-rw-r--r--ext/standard/tests/general_functions/call_user_func_array_variation_003.phpt6
-rw-r--r--ext/standard/tests/general_functions/closures_001.phpt2
-rw-r--r--ext/standard/tests/general_functions/closures_002.phpt2
-rw-r--r--ext/standard/tests/general_functions/debug_zval_dump_b.phptbin4461 -> 4458 bytes
-rw-r--r--ext/standard/tests/general_functions/debug_zval_dump_b_64bit.phptbin4554 -> 4551 bytes
-rw-r--r--ext/standard/tests/general_functions/debug_zval_dump_e.phpt2
-rw-r--r--ext/standard/tests/general_functions/debug_zval_dump_o.phpt4
-rw-r--r--ext/standard/tests/general_functions/debug_zval_dump_v.phpt8
-rw-r--r--ext/standard/tests/general_functions/dl-cve-2007-4887.phpt2
-rw-r--r--ext/standard/tests/general_functions/error_clear_last.phpt2
-rw-r--r--ext/standard/tests/general_functions/error_get_last.phpt2
-rw-r--r--ext/standard/tests/general_functions/escapeshellarg_basic-win32-mb.phpt2
-rw-r--r--ext/standard/tests/general_functions/escapeshellarg_basic-win32.phpt2
-rw-r--r--ext/standard/tests/general_functions/escapeshellarg_basic.phpt2
-rw-r--r--ext/standard/tests/general_functions/escapeshellarg_error.phpt2
-rw-r--r--ext/standard/tests/general_functions/escapeshellarg_variation1-win32.phpt4
-rw-r--r--ext/standard/tests/general_functions/escapeshellarg_variation1.phpt4
-rw-r--r--ext/standard/tests/general_functions/floatval.phpt16
-rw-r--r--ext/standard/tests/general_functions/floatval_basic.phpt6
-rw-r--r--ext/standard/tests/general_functions/floatval_variation1.phpt8
-rw-r--r--ext/standard/tests/general_functions/get_cfg_var_variation9.phpt2
-rw-r--r--ext/standard/tests/general_functions/get_defined_constants_basic.phpt6
-rw-r--r--ext/standard/tests/general_functions/get_defined_constants_error.phpt4
-rw-r--r--ext/standard/tests/general_functions/get_defined_vars_basic.phpt40
-rw-r--r--ext/standard/tests/general_functions/get_extension_funcs_basic.phpt2
-rw-r--r--ext/standard/tests/general_functions/get_extension_funcs_error.phpt4
-rw-r--r--ext/standard/tests/general_functions/get_extension_funcs_variation.phpt6
-rw-r--r--ext/standard/tests/general_functions/get_include_path_basic.phpt2
-rw-r--r--ext/standard/tests/general_functions/get_loaded_extensions_basic.phpt4
-rw-r--r--ext/standard/tests/general_functions/get_loaded_extensions_error.phpt4
-rw-r--r--ext/standard/tests/general_functions/get_magic_quotes_gpc.phpt4
-rw-r--r--ext/standard/tests/general_functions/get_magic_quotes_runtime.phpt4
-rw-r--r--ext/standard/tests/general_functions/get_resource_type_basic.phpt8
-rw-r--r--ext/standard/tests/general_functions/get_resource_type_error.phpt6
-rw-r--r--ext/standard/tests/general_functions/get_resource_type_variation1.phpt6
-rw-r--r--ext/standard/tests/general_functions/getmypid_basic.phpt2
-rw-r--r--ext/standard/tests/general_functions/getrusage.phpt2
-rw-r--r--ext/standard/tests/general_functions/getrusage_basic.phpt8
-rw-r--r--ext/standard/tests/general_functions/getrusage_error.phpt4
-rw-r--r--ext/standard/tests/general_functions/getrusage_variation1.phpt8
-rw-r--r--ext/standard/tests/general_functions/getservbyname_error.phpt2
-rw-r--r--ext/standard/tests/general_functions/getservbyname_variation14.phpt2
-rw-r--r--ext/standard/tests/general_functions/getservbyname_variation2.phpt2
-rw-r--r--ext/standard/tests/general_functions/getservbyname_variation5.phpt2
-rw-r--r--ext/standard/tests/general_functions/getservbyport_error.phpt2
-rw-r--r--ext/standard/tests/general_functions/getservbyport_variation1.phpt2
-rw-r--r--ext/standard/tests/general_functions/gettype_settype_error.phpt10
-rw-r--r--ext/standard/tests/general_functions/gettype_settype_variation1.phpt42
-rw-r--r--ext/standard/tests/general_functions/gettype_settype_variation2.phpt28
-rw-r--r--ext/standard/tests/general_functions/gettype_settype_variation3.phpt24
-rw-r--r--ext/standard/tests/general_functions/gettype_settype_variation4.phpt26
-rw-r--r--ext/standard/tests/general_functions/gettype_settype_variation5.phpt22
-rw-r--r--ext/standard/tests/general_functions/gettype_settype_variation6.phpt22
-rw-r--r--ext/standard/tests/general_functions/gettype_settype_variation7.phpt24
-rw-r--r--ext/standard/tests/general_functions/gettype_settype_variation8.phpt22
-rw-r--r--ext/standard/tests/general_functions/head.phpt2
-rw-r--r--ext/standard/tests/general_functions/intval_variation1.phpt6
-rw-r--r--ext/standard/tests/general_functions/intval_variation2.phpt6
-rw-r--r--ext/standard/tests/general_functions/is_array.phpt30
-rw-r--r--ext/standard/tests/general_functions/is_bool.phpt26
-rw-r--r--ext/standard/tests/general_functions/is_callable_basic2.phpt10
-rw-r--r--ext/standard/tests/general_functions/is_callable_variation2.phpt2
-rw-r--r--ext/standard/tests/general_functions/is_float.phpt24
-rw-r--r--ext/standard/tests/general_functions/is_float_64bit.phpt22
-rw-r--r--ext/standard/tests/general_functions/is_int.phpt34
-rw-r--r--ext/standard/tests/general_functions/is_int_64bit.phpt34
-rw-r--r--ext/standard/tests/general_functions/is_null.phpt16
-rw-r--r--ext/standard/tests/general_functions/is_numeric.phpt36
-rw-r--r--ext/standard/tests/general_functions/is_object.phpt34
-rw-r--r--ext/standard/tests/general_functions/is_resource_basic.phpt14
-rw-r--r--ext/standard/tests/general_functions/is_resource_error.phpt2
-rw-r--r--ext/standard/tests/general_functions/is_scalar.phpt18
-rw-r--r--ext/standard/tests/general_functions/is_string.phpt16
-rw-r--r--ext/standard/tests/general_functions/isset_basic1.phpt4
-rw-r--r--ext/standard/tests/general_functions/isset_basic2.phpt14
-rw-r--r--ext/standard/tests/general_functions/ob_get_flush_basic.phpt6
-rw-r--r--ext/standard/tests/general_functions/ob_get_flush_error.phpt6
-rw-r--r--ext/standard/tests/general_functions/ob_get_length_basic.phpt6
-rw-r--r--ext/standard/tests/general_functions/parse_ini_basic.phpt2
-rw-r--r--ext/standard/tests/general_functions/parse_ini_booleans.phpt2
-rw-r--r--ext/standard/tests/general_functions/parse_ini_file.phpt2
-rw-r--r--ext/standard/tests/general_functions/parse_ini_string_001.phpt2
-rw-r--r--ext/standard/tests/general_functions/parse_ini_string_002.phpt2
-rw-r--r--ext/standard/tests/general_functions/php_uname_error.phpt2
-rw-r--r--ext/standard/tests/general_functions/php_uname_variation1.phpt14
-rw-r--r--ext/standard/tests/general_functions/print_r.phpt16
-rw-r--r--ext/standard/tests/general_functions/print_r_64bit.phpt16
-rw-r--r--ext/standard/tests/general_functions/proc_nice_basic-win.phpt10
-rw-r--r--ext/standard/tests/general_functions/proc_open_pipes1.phpt2
-rw-r--r--ext/standard/tests/general_functions/proc_open_pipes2.phpt2
-rw-r--r--ext/standard/tests/general_functions/proc_open_pipes3.phpt2
-rw-r--r--ext/standard/tests/general_functions/putenv.phpt2
-rw-r--r--ext/standard/tests/general_functions/putenv_bug75574_cp936_win.phpt2
-rw-r--r--ext/standard/tests/general_functions/putenv_bug75574_utf8.phpt2
-rw-r--r--ext/standard/tests/general_functions/rand.phpt2
-rw-r--r--ext/standard/tests/general_functions/sleep_basic.phpt8
-rw-r--r--ext/standard/tests/general_functions/sleep_error.phpt6
-rw-r--r--ext/standard/tests/general_functions/strval.phpt28
-rw-r--r--ext/standard/tests/general_functions/type.phpt2
-rw-r--r--ext/standard/tests/general_functions/uniqid_basic.phpt12
-rw-r--r--ext/standard/tests/general_functions/uniqid_error.phpt6
-rw-r--r--ext/standard/tests/general_functions/usleep_basic.phpt8
-rw-r--r--ext/standard/tests/general_functions/usleep_error.phpt8
-rw-r--r--ext/standard/tests/general_functions/var_dump.phpt24
-rw-r--r--ext/standard/tests/general_functions/var_dump_64bit.phpt24
-rw-r--r--ext/standard/tests/general_functions/var_export-locale.phpt40
-rw-r--r--ext/standard/tests/general_functions/var_export_basic1.phpt8
-rw-r--r--ext/standard/tests/general_functions/var_export_basic2.phpt10
-rw-r--r--ext/standard/tests/general_functions/var_export_basic3.phpt6
-rw-r--r--ext/standard/tests/general_functions/var_export_basic4.phpt6
-rw-r--r--ext/standard/tests/general_functions/var_export_basic5.phpt6
-rw-r--r--ext/standard/tests/general_functions/var_export_basic6.phpt22
-rw-r--r--ext/standard/tests/general_functions/var_export_basic7.phpt6
-rw-r--r--ext/standard/tests/general_functions/var_export_basic8.phpt10
-rw-r--r--ext/standard/tests/general_functions/var_export_error1.phpt6
-rw-r--r--ext/standard/tests/general_functions/var_export_error2.phpt4
-rw-r--r--ext/standard/tests/general_functions/var_export_error3.phpt4
133 files changed, 598 insertions, 598 deletions
diff --git a/ext/standard/tests/general_functions/001.phpt b/ext/standard/tests/general_functions/001.phpt
index bfd82e55b0..307122e1cb 100644
--- a/ext/standard/tests/general_functions/001.phpt
+++ b/ext/standard/tests/general_functions/001.phpt
@@ -1,7 +1,7 @@
--TEST--
sprintf() function
--FILE--
-<?php
+<?php
$agent = sprintf("%.5s", "James Bond, 007");
diff --git a/ext/standard/tests/general_functions/003.phpt b/ext/standard/tests/general_functions/003.phpt
index 7ad90c8b5a..0388cf95b0 100644
--- a/ext/standard/tests/general_functions/003.phpt
+++ b/ext/standard/tests/general_functions/003.phpt
@@ -1,11 +1,11 @@
--TEST--
levenshtein() function test
--FILE--
-<?php
+<?php
function test_me($title,$expect,$text1,$text2,$cost1=0,$cost2=0,$cost3=0) {
- if($cost1==0)
+ if($cost1==0)
$result=levenshtein($text1,$text2);
else
$result=levenshtein($text1,$text2,$cost1,$cost2,$cost3);
@@ -16,8 +16,8 @@ function test_me($title,$expect,$text1,$text2,$cost1=0,$cost2=0,$cost3=0) {
echo "for '$text1'/'$text2' ";
if($cost1) echo "($cost1:$cost2:$cost3)";
echo "\n";
-
- return 1;
+
+ return 1;
}
$n=0;
diff --git a/ext/standard/tests/general_functions/004.phpt b/ext/standard/tests/general_functions/004.phpt
index 40b47cc1ca..5468ca99f0 100644
--- a/ext/standard/tests/general_functions/004.phpt
+++ b/ext/standard/tests/general_functions/004.phpt
@@ -1,7 +1,7 @@
--TEST--
fgetcsv() with tab delimited fields (BUG #8258)
--FILE--
-<?php
+<?php
chdir(dirname(__FILE__));
$fp=fopen("004.data","r");
while($a=fgetcsv($fp,100,"\t")) {
diff --git a/ext/standard/tests/general_functions/007.phpt b/ext/standard/tests/general_functions/007.phpt
index f755ab4f80..02fc6c6480 100644
--- a/ext/standard/tests/general_functions/007.phpt
+++ b/ext/standard/tests/general_functions/007.phpt
@@ -5,7 +5,7 @@ MD5 / Base64
function test($str) {
$res = md5(base64_decode(base64_encode($str)))."\n";
return $res;
-}
+}
echo test("");
echo test("a");
echo test("abc");
diff --git a/ext/standard/tests/general_functions/009.phpt b/ext/standard/tests/general_functions/009.phpt
index e80d36140d..39dc2189b3 100644
--- a/ext/standard/tests/general_functions/009.phpt
+++ b/ext/standard/tests/general_functions/009.phpt
@@ -5,7 +5,7 @@ SHA1
function test($str) {
$res = sha1($str)."\n";
return $res;
-}
+}
echo test("");
echo test("a");
echo test("abc");
diff --git a/ext/standard/tests/general_functions/bug27678.phpt b/ext/standard/tests/general_functions/bug27678.phpt
index 6f95509e14..7f6597d288 100644
--- a/ext/standard/tests/general_functions/bug27678.phpt
+++ b/ext/standard/tests/general_functions/bug27678.phpt
@@ -11,6 +11,6 @@ var_dump(strlen($num) == 3); // $num == 'inf'
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
bool(true)
Done
diff --git a/ext/standard/tests/general_functions/bug31190.phpt b/ext/standard/tests/general_functions/bug31190.phpt
index 7d154708fa..12776448b3 100644
--- a/ext/standard/tests/general_functions/bug31190.phpt
+++ b/ext/standard/tests/general_functions/bug31190.phpt
@@ -4,7 +4,7 @@ Bug #31190 (exception in call_user_func_array())
<?php
class test {
- function throwException() { throw new Exception("Hello World!\n");
+ function throwException() { throw new Exception("Hello World!\n");
} }
$array = array(new test(), 'throwException');
diff --git a/ext/standard/tests/general_functions/bug36011.phpt b/ext/standard/tests/general_functions/bug36011.phpt
index 248608e008..00530bf846 100644
--- a/ext/standard/tests/general_functions/bug36011.phpt
+++ b/ext/standard/tests/general_functions/bug36011.phpt
@@ -9,17 +9,17 @@ class TestClass
{
echo __METHOD__ . "()\n";
}
-
+
function whee()
{
array_map(array('TestClass', 'test'), array('array_value'));
}
-
+
function whee4()
{
call_user_func(array('TestClass', 'test'));
}
-
+
static function whee5()
{
call_user_func(array('TestClass', 'test'));
diff --git a/ext/standard/tests/general_functions/bug40752.phpt b/ext/standard/tests/general_functions/bug40752.phpt
index 9500573e8d..9bf524029c 100644
--- a/ext/standard/tests/general_functions/bug40752.phpt
+++ b/ext/standard/tests/general_functions/bug40752.phpt
@@ -22,7 +22,7 @@ unlink($file);
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
array(1) {
["foo"]=>
array(1) {
diff --git a/ext/standard/tests/general_functions/bug41037.phpt b/ext/standard/tests/general_functions/bug41037.phpt
index 0ffc8d58f6..b9bb5856d8 100644
--- a/ext/standard/tests/general_functions/bug41037.phpt
+++ b/ext/standard/tests/general_functions/bug41037.phpt
@@ -14,7 +14,7 @@ declare (ticks=1) {
echo "Done\n";
}
?>
---EXPECTF--
+--EXPECTF--
hello
Warning: unregister_tick_function(): Unable to delete tick function executed at the moment in %s on line %d
Done
diff --git a/ext/standard/tests/general_functions/bug41445.phpt b/ext/standard/tests/general_functions/bug41445.phpt
index 000e9d347d..f46dc9093c 100644
--- a/ext/standard/tests/general_functions/bug41445.phpt
+++ b/ext/standard/tests/general_functions/bug41445.phpt
@@ -35,7 +35,7 @@ var_dump(parse_ini_file($file));
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
array(2) {
["001099030277"]=>
array(1) {
diff --git a/ext/standard/tests/general_functions/bug41445_1.phpt b/ext/standard/tests/general_functions/bug41445_1.phpt
index 120d9400b6..378001623c 100644
--- a/ext/standard/tests/general_functions/bug41445_1.phpt
+++ b/ext/standard/tests/general_functions/bug41445_1.phpt
@@ -1,5 +1,5 @@
--TEST--
-Bug #41445 (parse_ini_file() function parses octal numbers in section names) - 2
+Bug #41445 (parse_ini_file() function parses octal numbers in section names) - 2
--FILE--
<?php
@@ -25,7 +25,7 @@ var_dump(parse_ini_file($file));
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
array(3) {
["2454.33"]=>
array(1) {
diff --git a/ext/standard/tests/general_functions/bug43293_1.phpt b/ext/standard/tests/general_functions/bug43293_1.phpt
index d2c7f10ca4..34eb2f855c 100644
--- a/ext/standard/tests/general_functions/bug43293_1.phpt
+++ b/ext/standard/tests/general_functions/bug43293_1.phpt
@@ -4,7 +4,7 @@ Bug #43293 (Multiple segfaults in getopt())
register_argc_argv=Off
--FILE--
<?php
-$argv = array(1, 2, 3);
+$argv = array(1, 2, 3);
var_dump(getopt("abcd"));
var_dump($argv);
$argv = null;
diff --git a/ext/standard/tests/general_functions/bug44667.phpt b/ext/standard/tests/general_functions/bug44667.phpt
index 53290a7a30..d4d7b94b4b 100644
--- a/ext/standard/tests/general_functions/bug44667.phpt
+++ b/ext/standard/tests/general_functions/bug44667.phpt
@@ -11,19 +11,19 @@ $descriptor_spec = array(
0 => array('pipe', 'rb'),
1 => array('pipe', 'wb'),
);
-
+
$proc = proc_open('cat', $descriptor_spec, $pipes);
-
+
fwrite($pipes[0], 'Hello', 5);
fflush($pipes[0]);
fclose($pipes[0]);
-
+
$result = fread($pipes[1], 5);
fclose($pipes[1]);
-
+
proc_close($proc);
-
-echo "Result is: ", $result, "\n";
+
+echo "Result is: ", $result, "\n";
echo "Done\n";
diff --git a/ext/standard/tests/general_functions/bug66094.phpt b/ext/standard/tests/general_functions/bug66094.phpt
index ecc13ab07a..d218e70efa 100644
--- a/ext/standard/tests/general_functions/bug66094.phpt
+++ b/ext/standard/tests/general_functions/bug66094.phpt
@@ -7,6 +7,6 @@ register_tick_function($closure = function () { echo "Tick!\n"; });
unregister_tick_function($closure);
echo "done";
?>
---EXPECT--
+--EXPECT--
Tick!
done
diff --git a/ext/standard/tests/general_functions/call_user_func_array_variation_002.phpt b/ext/standard/tests/general_functions/call_user_func_array_variation_002.phpt
index 4a4845aa1d..51a079ad53 100644
--- a/ext/standard/tests/general_functions/call_user_func_array_variation_002.phpt
+++ b/ext/standard/tests/general_functions/call_user_func_array_variation_002.phpt
@@ -1,11 +1,11 @@
--TEST--
-Test call_user_func_array() function : first parameter variation
+Test call_user_func_array() function : first parameter variation
--FILE--
<?php
/* Prototype : mixed call_user_func_array(string function_name, array parameters)
- * Description: Call a user function which is the first parameter with the arguments contained in array
+ * Description: Call a user function which is the first parameter with the arguments contained in array
* Source code: ext/standard/basic_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing call_user_func_array() : usage variation ***\n";
diff --git a/ext/standard/tests/general_functions/call_user_func_array_variation_003.phpt b/ext/standard/tests/general_functions/call_user_func_array_variation_003.phpt
index 51a5d74ae2..c8c8ce6604 100644
--- a/ext/standard/tests/general_functions/call_user_func_array_variation_003.phpt
+++ b/ext/standard/tests/general_functions/call_user_func_array_variation_003.phpt
@@ -1,11 +1,11 @@
--TEST--
-Test call_user_func_array() function : second parameter variation
+Test call_user_func_array() function : second parameter variation
--FILE--
<?php
/* Prototype : mixed call_user_func_array(string function_name, array parameters)
- * Description: Call a user function which is the first parameter with the arguments contained in array
+ * Description: Call a user function which is the first parameter with the arguments contained in array
* Source code: ext/standard/basic_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing call_user_func_array() : usage variation ***\n";
diff --git a/ext/standard/tests/general_functions/closures_001.phpt b/ext/standard/tests/general_functions/closures_001.phpt
index 3a077f2db6..0e81f912cf 100644
--- a/ext/standard/tests/general_functions/closures_001.phpt
+++ b/ext/standard/tests/general_functions/closures_001.phpt
@@ -6,6 +6,6 @@ register_shutdown_function(function () { echo "Hello World!\n"; });
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
Done
Hello World!
diff --git a/ext/standard/tests/general_functions/closures_002.phpt b/ext/standard/tests/general_functions/closures_002.phpt
index 6df389bbb1..e0ef5121c0 100644
--- a/ext/standard/tests/general_functions/closures_002.phpt
+++ b/ext/standard/tests/general_functions/closures_002.phpt
@@ -16,7 +16,7 @@ echo "$i\n";
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Test
%d
%d
diff --git a/ext/standard/tests/general_functions/debug_zval_dump_b.phpt b/ext/standard/tests/general_functions/debug_zval_dump_b.phpt
index 5c6fe36523..803cc8ce0c 100644
--- a/ext/standard/tests/general_functions/debug_zval_dump_b.phpt
+++ b/ext/standard/tests/general_functions/debug_zval_dump_b.phpt
Binary files differ
diff --git a/ext/standard/tests/general_functions/debug_zval_dump_b_64bit.phpt b/ext/standard/tests/general_functions/debug_zval_dump_b_64bit.phpt
index 4fe2f4c95b..cc3540c406 100644
--- a/ext/standard/tests/general_functions/debug_zval_dump_b_64bit.phpt
+++ b/ext/standard/tests/general_functions/debug_zval_dump_b_64bit.phpt
Binary files differ
diff --git a/ext/standard/tests/general_functions/debug_zval_dump_e.phpt b/ext/standard/tests/general_functions/debug_zval_dump_e.phpt
index 4929362613..4f82039e2d 100644
--- a/ext/standard/tests/general_functions/debug_zval_dump_e.phpt
+++ b/ext/standard/tests/general_functions/debug_zval_dump_e.phpt
@@ -3,7 +3,7 @@ Test debug_zval_dump() function : error conditions
--FILE--
<?php
/* Prototype: void debug_zval_dump ( mixed $variable );
- Description: Dumps a string representation of an internal zend value
+ Description: Dumps a string representation of an internal zend value
to output.
*/
diff --git a/ext/standard/tests/general_functions/debug_zval_dump_o.phpt b/ext/standard/tests/general_functions/debug_zval_dump_o.phpt
index e2c84dae9b..64352105db 100644
--- a/ext/standard/tests/general_functions/debug_zval_dump_o.phpt
+++ b/ext/standard/tests/general_functions/debug_zval_dump_o.phpt
@@ -9,7 +9,7 @@ Test debug_zval_dump() function : working on objects
*/
/* Prototype: void zval_dump( $value );
- Description: use debug_zval_dump() to display the objects and its
+ Description: use debug_zval_dump() to display the objects and its
reference count */
function zval_dump( $values ) {
$counter = 1;
@@ -76,7 +76,7 @@ class contains_object_class
}
/* creating new object $obj */
-$obj = new contains_object_class();
+$obj = new contains_object_class();
$obj1 = & $obj; //object $obj1 references object $obj
$obj2 = & $obj;
$obj3 = & $obj2;
diff --git a/ext/standard/tests/general_functions/debug_zval_dump_v.phpt b/ext/standard/tests/general_functions/debug_zval_dump_v.phpt
index 849d8b492c..f637bfc2e9 100644
--- a/ext/standard/tests/general_functions/debug_zval_dump_v.phpt
+++ b/ext/standard/tests/general_functions/debug_zval_dump_v.phpt
@@ -3,7 +3,7 @@ Test debug_zval_dump() function : usage variations
--FILE--
<?php
/* Prototype: void debug_zval_dump ( mixed $variable );
- Description: Dumps a string representation of an internal zend value
+ Description: Dumps a string representation of an internal zend value
to output.
*/
@@ -49,7 +49,7 @@ debug_zval_dump($ref_first_var);
echo "\n-- Value of \$first_var --\n";
debug_zval_dump($first_var);
-unset($ref_first_var);
+unset($ref_first_var);
/* dump value and reference count of $first_var, $ref_first_var
here $ref_first_var is unset */
@@ -71,7 +71,7 @@ debug_zval_dump($var_3);
/* unsetting $var_3 */
unset($var_3);
-echo "\n-- Value of \$var_3: (after unsetting var_3) --\n";
+echo "\n-- Value of \$var_3: (after unsetting var_3) --\n";
debug_zval_dump($var_3);
echo "\n-- Value of \$var_2: --\n";
debug_zval_dump($var_2);
@@ -94,7 +94,7 @@ $misc_values = array (
/* nulls */
NULL,
null,
-
+
/* unset variable */
@$unset_var,
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 c53b5153f8..57115a2b72 100644
--- a/ext/standard/tests/general_functions/dl-cve-2007-4887.phpt
+++ b/ext/standard/tests/general_functions/dl-cve-2007-4887.phpt
@@ -13,7 +13,7 @@ enable_dl=1
<?php
var_dump(dl(str_repeat("a", 8376757)));
?>
---EXPECTF--
+--EXPECTF--
Warning: dl(): File name exceeds the maximum allowed length of %d characters in %s on line %d
bool(false)
diff --git a/ext/standard/tests/general_functions/error_clear_last.phpt b/ext/standard/tests/general_functions/error_clear_last.phpt
index 02936c84cb..675affb625 100644
--- a/ext/standard/tests/general_functions/error_clear_last.phpt
+++ b/ext/standard/tests/general_functions/error_clear_last.phpt
@@ -15,7 +15,7 @@ var_dump(error_get_last());
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
NULL
NULL
array(4) {
diff --git a/ext/standard/tests/general_functions/error_get_last.phpt b/ext/standard/tests/general_functions/error_get_last.phpt
index 95a6cf434c..71f068f104 100644
--- a/ext/standard/tests/general_functions/error_get_last.phpt
+++ b/ext/standard/tests/general_functions/error_get_last.phpt
@@ -13,7 +13,7 @@ var_dump(error_get_last());
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
NULL
Warning: error_get_last() expects exactly 0 parameters, 1 given in %s on line %d
diff --git a/ext/standard/tests/general_functions/escapeshellarg_basic-win32-mb.phpt b/ext/standard/tests/general_functions/escapeshellarg_basic-win32-mb.phpt
index f85f4a4195..d7b27cd8de 100644
--- a/ext/standard/tests/general_functions/escapeshellarg_basic-win32-mb.phpt
+++ b/ext/standard/tests/general_functions/escapeshellarg_basic-win32-mb.phpt
@@ -10,7 +10,7 @@ if( substr(PHP_OS, 0, 3) != "WIN" )
/* Prototype : string escapeshellarg ( string $arg )
* Description: Escape a string to be used as a shell argument.
* Source code: ext/standard/exec.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "Simple testcase for escapeshellarg() function\n";
diff --git a/ext/standard/tests/general_functions/escapeshellarg_basic-win32.phpt b/ext/standard/tests/general_functions/escapeshellarg_basic-win32.phpt
index d97c1a956b..7ee46ea9a2 100644
--- a/ext/standard/tests/general_functions/escapeshellarg_basic-win32.phpt
+++ b/ext/standard/tests/general_functions/escapeshellarg_basic-win32.phpt
@@ -10,7 +10,7 @@ if( substr(PHP_OS, 0, 3) != "WIN" )
/* Prototype : string escapeshellarg ( string $arg )
* Description: Escape a string to be used as a shell argument.
* Source code: ext/standard/exec.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "Simple testcase for escapeshellarg() function\n";
diff --git a/ext/standard/tests/general_functions/escapeshellarg_basic.phpt b/ext/standard/tests/general_functions/escapeshellarg_basic.phpt
index c26915c923..1efa72d992 100644
--- a/ext/standard/tests/general_functions/escapeshellarg_basic.phpt
+++ b/ext/standard/tests/general_functions/escapeshellarg_basic.phpt
@@ -10,7 +10,7 @@ if( substr(PHP_OS, 0, 3) == "WIN" )
/* Prototype : string escapeshellarg ( string $arg )
* Description: Escape a string to be used as a shell argument.
* Source code: ext/standard/exec.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "Simple testcase for escapeshellarg() function\n";
diff --git a/ext/standard/tests/general_functions/escapeshellarg_error.phpt b/ext/standard/tests/general_functions/escapeshellarg_error.phpt
index 139a445202..8746b5884a 100644
--- a/ext/standard/tests/general_functions/escapeshellarg_error.phpt
+++ b/ext/standard/tests/general_functions/escapeshellarg_error.phpt
@@ -38,7 +38,7 @@ var_dump( escapeshellarg($fp));
fclose($fp);
echo "\n-- Testing escapeshellarg() function with a array supplied for argument --\n";
-$arg = array(1,2,3);
+$arg = array(1,2,3);
var_dump( escapeshellarg($arg));
?>
diff --git a/ext/standard/tests/general_functions/escapeshellarg_variation1-win32.phpt b/ext/standard/tests/general_functions/escapeshellarg_variation1-win32.phpt
index 8f8bc19d8f..f4e9439b14 100644
--- a/ext/standard/tests/general_functions/escapeshellarg_variation1-win32.phpt
+++ b/ext/standard/tests/general_functions/escapeshellarg_variation1-win32.phpt
@@ -34,7 +34,7 @@ $inputs = array(
/*1*/ 0,
1,
12,
- -12,
+ -12,
2147483647,
// float data
@@ -53,7 +53,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
diff --git a/ext/standard/tests/general_functions/escapeshellarg_variation1.phpt b/ext/standard/tests/general_functions/escapeshellarg_variation1.phpt
index 32431a581a..6f3b6a9f32 100644
--- a/ext/standard/tests/general_functions/escapeshellarg_variation1.phpt
+++ b/ext/standard/tests/general_functions/escapeshellarg_variation1.phpt
@@ -34,7 +34,7 @@ $inputs = array(
/*1*/ 0,
1,
12,
- -12,
+ -12,
2147483647,
// float data
@@ -53,7 +53,7 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// empty data
/*17*/ "",
'',
diff --git a/ext/standard/tests/general_functions/floatval.phpt b/ext/standard/tests/general_functions/floatval.phpt
index d7bdffd6ae..1bb4d1151c 100644
--- a/ext/standard/tests/general_functions/floatval.phpt
+++ b/ext/standard/tests/general_functions/floatval.phpt
@@ -7,7 +7,7 @@ Testing floatval() and its alias doubleval() Functions
*/
echo "*** Testing floatval() with valid float values ***\n";
-// different valid float values
+// different valid float values
$valid_floats = array(
0.0,
1.0,
@@ -32,7 +32,7 @@ $valid_floats = array(
-.5e+7
);
-/* loop to check that floatval() recognizes different
+/* loop to check that floatval() recognizes different
float values, expected output:float value for valid floating point number */
foreach ($valid_floats as $value ) {
@@ -41,7 +41,7 @@ foreach ($valid_floats as $value ) {
echo "\n*** Testing doubleval() with valid float values ***\n";
-/* loop to check that doubleval() also recognizes different
+/* loop to check that doubleval() also recognizes different
float values, expected output:float value for valid floating point number */
foreach ($valid_floats as $value ) {
@@ -57,7 +57,7 @@ fclose($fp);
$dfp = opendir ( dirname(__FILE__) );
closedir($dfp);
-// other types in an array
+// other types in an array
$not_float_types = array (
-2147483648, // max negative integer value
2147483648, // max positive integer value
@@ -76,7 +76,7 @@ $not_float_types = array (
NULL,
null,
);
-/* loop through the $not_float_types to see working of
+/* loop through the $not_float_types to see working of
floatval() on non float types, expected output: float value valid floating point numbers */
foreach ($not_float_types as $type ) {
var_dump( floatval($type) );
@@ -85,7 +85,7 @@ foreach ($not_float_types as $type ) {
echo "\n*** Testing doubleval() on non floating types ***\n";
-/* loop through the $not_float_types to see working of
+/* loop through the $not_float_types to see working of
doubleval() on non float types, expected output: float value valid floating point numbers */
foreach ($not_float_types as $type ) {
var_dump( doubleval($type) );
@@ -99,10 +99,10 @@ echo "\n*** Testing error conditions ***\n";
var_dump( floatval() );
var_dump( doubleval() );
-//arguments more than expected
+//arguments more than expected
var_dump( floatval(TRUE, FALSE) );
var_dump( doubleval(TRUE, FALSE) );
-
+
echo "\nDone\n";
diff --git a/ext/standard/tests/general_functions/floatval_basic.phpt b/ext/standard/tests/general_functions/floatval_basic.phpt
index 129aa87b3c..71f4e0d139 100644
--- a/ext/standard/tests/general_functions/floatval_basic.phpt
+++ b/ext/standard/tests/general_functions/floatval_basic.phpt
@@ -8,7 +8,7 @@ precision = 14
* Description: Returns the float value of var.
*/
-// different valid float values
+// different valid float values
$valid_floats = array(
"0.0" => 0.0,
"1.0" => 1.0,
@@ -33,7 +33,7 @@ $valid_floats = array(
"-.5e+7" =>-.5e+7
);
-/* loop to check that floatval() recognizes different
+/* loop to check that floatval() recognizes different
float values, expected output:float value for valid floating point number */
echo "*** Testing floatval() with valid float values ***\n";
foreach ($valid_floats as $key => $value ) {
@@ -41,7 +41,7 @@ foreach ($valid_floats as $key => $value ) {
var_dump( floatval($value) );
}
-/* loop to check that doubleval() also recognizes different
+/* loop to check that doubleval() also recognizes different
float values, expected output:float value for valid floating point number */
echo "\n*** Testing doubleval() with valid float values ***\n";
foreach ($valid_floats as $key => $value ) {
diff --git a/ext/standard/tests/general_functions/floatval_variation1.phpt b/ext/standard/tests/general_functions/floatval_variation1.phpt
index aa808cfba1..2aafa0684c 100644
--- a/ext/standard/tests/general_functions/floatval_variation1.phpt
+++ b/ext/standard/tests/general_functions/floatval_variation1.phpt
@@ -14,11 +14,11 @@ fclose($fp);
$dfp = opendir ( dirname(__FILE__) );
closedir($dfp);
-// other types in an array
+// other types in an array
$not_float_types = array (
"-2147483648" => -2147483648, // max negative integer value
"2147483647" => 2147483648, // max positive integer value
- "file resoruce" => $fp,
+ "file resoruce" => $fp,
"directory resource" => $dfp,
"\"0.0\"" => "0.0", // string
"\"1.0\"" => "1.0",
@@ -33,7 +33,7 @@ $not_float_types = array (
"NULL" => NULL,
"null" => null,
);
-/* loop through the $not_float_types to see working of
+/* loop through the $not_float_types to see working of
floatval() on non float types, expected output: float value valid floating point numbers */
echo "\n*** Testing floatval() on non floating types ***\n";
foreach ($not_float_types as $key => $type ) {
@@ -43,7 +43,7 @@ foreach ($not_float_types as $key => $type ) {
echo "\n*** Testing doubleval() on non floating types ***\n";
-/* loop through the $not_float_types to see working of
+/* loop through the $not_float_types to see working of
doubleval() on non float types, expected output: float value valid floating point numbers */
foreach ($not_float_types as $key => $type ) {
echo "\n-- Iteration : $key --\n";
diff --git a/ext/standard/tests/general_functions/get_cfg_var_variation9.phpt b/ext/standard/tests/general_functions/get_cfg_var_variation9.phpt
index 00a24597f8..6e4b304018 100644
--- a/ext/standard/tests/general_functions/get_cfg_var_variation9.phpt
+++ b/ext/standard/tests/general_functions/get_cfg_var_variation9.phpt
@@ -21,7 +21,7 @@ EOT;
$variation_array = array(
'session.use_cookies',
- 'session.serialize_handler',
+ 'session.serialize_handler',
'session.save_handler'
);
diff --git a/ext/standard/tests/general_functions/get_defined_constants_basic.phpt b/ext/standard/tests/general_functions/get_defined_constants_basic.phpt
index 9de39c18d0..ec982bd55b 100644
--- a/ext/standard/tests/general_functions/get_defined_constants_basic.phpt
+++ b/ext/standard/tests/general_functions/get_defined_constants_basic.phpt
@@ -1,11 +1,11 @@
--TEST--
-Test get_defined_constants() function : basic functionality
+Test get_defined_constants() function : basic functionality
--FILE--
<?php
/* Prototype : array get_defined_constants ([ bool $categorize ] )
* Description: Returns an associative array with the names of all the constants and their values
* Source code: Zend/zend_builtin_functions.c
- */
+ */
echo "*** Testing get_defined_constants() : basic functionality ***\n";
@@ -29,7 +29,7 @@ if ($n2 == $n1 + 1 && array_key_exists("USER_CONSTANT", $arr2)) {
?>
===DONE===
---EXPECT--
+--EXPECT--
*** Testing get_defined_constants() : basic functionality ***
string(5) "array"
string(5) "array"
diff --git a/ext/standard/tests/general_functions/get_defined_constants_error.phpt b/ext/standard/tests/general_functions/get_defined_constants_error.phpt
index 1092712ee9..b093ed1e0c 100644
--- a/ext/standard/tests/general_functions/get_defined_constants_error.phpt
+++ b/ext/standard/tests/general_functions/get_defined_constants_error.phpt
@@ -1,11 +1,11 @@
--TEST--
-Test get_defined_constants() function : error conditions
+Test get_defined_constants() function : error conditions
--FILE--
<?php
/* Prototype : array get_defined_constants ([ bool $categorize ] )
* Description: Returns an associative array with the names of all the constants and their values
* Source code: Zend/zend_builtin_functions.c
- */
+ */
echo "*** Testing get_defined_constants() : error conditions ***\n";
diff --git a/ext/standard/tests/general_functions/get_defined_vars_basic.phpt b/ext/standard/tests/general_functions/get_defined_vars_basic.phpt
index 3aa6e72a92..b809dc9d55 100644
--- a/ext/standard/tests/general_functions/get_defined_vars_basic.phpt
+++ b/ext/standard/tests/general_functions/get_defined_vars_basic.phpt
@@ -3,47 +3,47 @@ Test get_defined_vars() function
--FILE--
<?php
/* Prototype: array get_defined_vars ( void )
- Description: This function returns a multidimensional array containing a list of all defined
- variables, be them environment, server or user-defined variables, within the scope that
+ Description: This function returns a multidimensional array containing a list of all defined
+ variables, be them environment, server or user-defined variables, within the scope that
get_defined_vars() is called.
*/
echo "Simple testcase for get_defined_vars() function\n\n";
function f1() {
- echo "\n-- Function f1() called --\n";
+ echo "\n-- Function f1() called --\n";
$vars = get_defined_vars();
-
+
if (count($vars) != 0) {
- echo "TEST FAILED\n";
- }
-
- echo "\n-- ..define some local variables --\n";
+ echo "TEST FAILED\n";
+ }
+
+ echo "\n-- ..define some local variables --\n";
$i = 123;
$f = 123.456;
$b = false;
- $s = "Hello World";
+ $s = "Hello World";
$arr = array(1,2,3,4);
- var_dump( get_defined_vars() );
+ var_dump( get_defined_vars() );
f2();
}
function f2() {
- echo "\n -- Function f2() called --\n";
+ echo "\n -- Function f2() called --\n";
$vars= get_defined_vars();
-
+
if (count($vars) != 0) {
- echo "TEST FAILED\n";
+ echo "TEST FAILED\n";
}
-
- echo "\n-- ...define some variables --\n";
+
+ echo "\n-- ...define some variables --\n";
$i = 456;
$f = 456.678;
$b = true;
- $s = "Goodnight";
- $arr = array("foo", "bar");
+ $s = "Goodnight";
+ $arr = array("foo", "bar");
var_dump( get_defined_vars() );
-
+
echo "\n-- ...define some more variables --\n";
$i1 = 456;
$f1 = 456.678;
@@ -56,8 +56,8 @@ echo "\n-- Get variables at global scope --\n";
$vars = get_defined_vars();
if (count($vars) == 0) {
- echo "TEST FAILED - Global variables missing at global scope\n";
-}
+ echo "TEST FAILED - Global variables missing at global scope\n";
+}
// call a function
f1();
diff --git a/ext/standard/tests/general_functions/get_extension_funcs_basic.phpt b/ext/standard/tests/general_functions/get_extension_funcs_basic.phpt
index 2dbe332ccc..33d4af03d2 100644
--- a/ext/standard/tests/general_functions/get_extension_funcs_basic.phpt
+++ b/ext/standard/tests/general_functions/get_extension_funcs_basic.phpt
@@ -5,7 +5,7 @@ Test get_extension_funcs() function: basic test
/* Prototype : array get_extension_funcs ( string $module_name )
* Description: Returns an array with the names of the functions of a module.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "Simple testcase for get_extension_funcs() function\n";
diff --git a/ext/standard/tests/general_functions/get_extension_funcs_error.phpt b/ext/standard/tests/general_functions/get_extension_funcs_error.phpt
index 33e32a66a5..44bd822d12 100644
--- a/ext/standard/tests/general_functions/get_extension_funcs_error.phpt
+++ b/ext/standard/tests/general_functions/get_extension_funcs_error.phpt
@@ -1,11 +1,11 @@
--TEST--
-Test get_extension_funcs() function : error conditions
+Test get_extension_funcs() function : error conditions
--FILE--
<?php
/* Prototype : array get_extension_funcs ( string $module_name )
* Description: Returns an array with the names of the functions of a module.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing get_extension_funcs() : error conditions ***\n";
diff --git a/ext/standard/tests/general_functions/get_extension_funcs_variation.phpt b/ext/standard/tests/general_functions/get_extension_funcs_variation.phpt
index c575737264..ac4568c621 100644
--- a/ext/standard/tests/general_functions/get_extension_funcs_variation.phpt
+++ b/ext/standard/tests/general_functions/get_extension_funcs_variation.phpt
@@ -1,11 +1,11 @@
--TEST--
-Test get_extension_funcs() function : error conditions
+Test get_extension_funcs() function : error conditions
--FILE--
<?php
/* Prototype : array get_extension_funcs ( string $module_name )
* Description: Returns an array with the names of the functions of a module.
* Source code: Zend/zend_builtin_functions.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing get_extension_funcs() function: with unexpected inputs for 'module_name' argument ***\n";
@@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
- }
+ }
}
//getting the resource
diff --git a/ext/standard/tests/general_functions/get_include_path_basic.phpt b/ext/standard/tests/general_functions/get_include_path_basic.phpt
index 999862bc64..b777a2a44d 100644
--- a/ext/standard/tests/general_functions/get_include_path_basic.phpt
+++ b/ext/standard/tests/general_functions/get_include_path_basic.phpt
@@ -17,7 +17,7 @@ if (ini_get("include_path") == get_include_path()) {
echo "PASSED\n";
} else {
echo "FAILED\n";
-}
+}
echo "\nError cases:\n";
var_dump(get_include_path(TRUE));
diff --git a/ext/standard/tests/general_functions/get_loaded_extensions_basic.phpt b/ext/standard/tests/general_functions/get_loaded_extensions_basic.phpt
index 52b2136f5b..8ce2323a39 100644
--- a/ext/standard/tests/general_functions/get_loaded_extensions_basic.phpt
+++ b/ext/standard/tests/general_functions/get_loaded_extensions_basic.phpt
@@ -1,11 +1,11 @@
--TEST--
-Test get_loaded_extensions() function : basic functionality
+Test get_loaded_extensions() function : basic functionality
--FILE--
<?php
/* Prototype : array get_loaded_extensions ([ bool $zend_extensions= false ] )
* Description: Returns an array with the names of all modules compiled and loaded
* Source code: Zend/zend_builtin_functions.c
- */
+ */
echo "*** Testing get_loaded_extensions() : basic functionality ***\n";
diff --git a/ext/standard/tests/general_functions/get_loaded_extensions_error.phpt b/ext/standard/tests/general_functions/get_loaded_extensions_error.phpt
index d731046dc6..1728dea23f 100644
--- a/ext/standard/tests/general_functions/get_loaded_extensions_error.phpt
+++ b/ext/standard/tests/general_functions/get_loaded_extensions_error.phpt
@@ -1,11 +1,11 @@
--TEST--
-Test get_loaded_extensions() function : error conditions
+Test get_loaded_extensions() function : error conditions
--FILE--
<?php
/* Prototype : array get_loaded_extensions ([ bool $zend_extensions= false ] )
* Description: Returns an array with the names of all modules compiled and loaded
* Source code: Zend/zend_builtin_functions.c
- */
+ */
echo "*** Testing get_loaded_extensions() : error conditions ***\n";
diff --git a/ext/standard/tests/general_functions/get_magic_quotes_gpc.phpt b/ext/standard/tests/general_functions/get_magic_quotes_gpc.phpt
index 75cde18b08..add1ea141c 100644
--- a/ext/standard/tests/general_functions/get_magic_quotes_gpc.phpt
+++ b/ext/standard/tests/general_functions/get_magic_quotes_gpc.phpt
@@ -9,9 +9,9 @@ Test get_magic_quotes_gpc() function
echo "Simple testcase for get_magic_quotes_gpc() function\n";
var_dump(get_magic_quotes_gpc());
-echo "\n-- Error cases --\n";
+echo "\n-- Error cases --\n";
// no checks on number of args
-var_dump(get_magic_quotes_gpc(true));
+var_dump(get_magic_quotes_gpc(true));
?>
===DONE===
diff --git a/ext/standard/tests/general_functions/get_magic_quotes_runtime.phpt b/ext/standard/tests/general_functions/get_magic_quotes_runtime.phpt
index 4106ee9eea..620e97cf83 100644
--- a/ext/standard/tests/general_functions/get_magic_quotes_runtime.phpt
+++ b/ext/standard/tests/general_functions/get_magic_quotes_runtime.phpt
@@ -10,9 +10,9 @@ echo "Simple testcase for get_magic_quotes_runtime() function\n";
var_dump(get_magic_quotes_runtime());
-echo "\n-- Error cases --\n";
+echo "\n-- Error cases --\n";
// no checks on number of args
-var_dump(get_magic_quotes_runtime(true));
+var_dump(get_magic_quotes_runtime(true));
?>
===DONE===
diff --git a/ext/standard/tests/general_functions/get_resource_type_basic.phpt b/ext/standard/tests/general_functions/get_resource_type_basic.phpt
index 7ff4aec2c3..58a49e713f 100644
--- a/ext/standard/tests/general_functions/get_resource_type_basic.phpt
+++ b/ext/standard/tests/general_functions/get_resource_type_basic.phpt
@@ -1,16 +1,16 @@
--TEST--
-Test get_resource_type() function : basic functionality
+Test get_resource_type() function : basic functionality
--FILE--
<?php
/* Prototype : string get_resource_type ( resource $handle )
- * Description: Returns the resource type
+ * Description: Returns the resource type
* Source code: Zend/zend_builtin_functions.c
- */
+ */
echo "*** Testing get_resource_type() : basic functionality ***\n";
$res = fopen(__FILE__, "r");
-var_dump(get_resource_type($res));
+var_dump(get_resource_type($res));
?>
===DONE===
diff --git a/ext/standard/tests/general_functions/get_resource_type_error.phpt b/ext/standard/tests/general_functions/get_resource_type_error.phpt
index 40dcf07799..a010f7eba4 100644
--- a/ext/standard/tests/general_functions/get_resource_type_error.phpt
+++ b/ext/standard/tests/general_functions/get_resource_type_error.phpt
@@ -1,11 +1,11 @@
--TEST--
-Test get_resource_type() function : error conditions
+Test get_resource_type() function : error conditions
--FILE--
<?php
/* Prototype : string get_resource_type ( resource $handle )
- * Description: Returns the resource type
+ * Description: Returns the resource type
* Source code: Zend/zend_builtin_functions.c
- */
+ */
echo "*** Testing get_resource_type() : error conditions ***\n";
diff --git a/ext/standard/tests/general_functions/get_resource_type_variation1.phpt b/ext/standard/tests/general_functions/get_resource_type_variation1.phpt
index cd974fd5e0..499581c05b 100644
--- a/ext/standard/tests/general_functions/get_resource_type_variation1.phpt
+++ b/ext/standard/tests/general_functions/get_resource_type_variation1.phpt
@@ -3,16 +3,16 @@ Test get_resource_type() function : usage variations - different data types as h
--FILE--
<?php
/* Prototype : string get_resource_type ( resource $handle )
- * Description: Returns the resource type
+ * Description: Returns the resource type
* Source code: Zend/zend_builtin_functions.c
- */
+ */
echo "*** Testing get_resource_type() : variation test ***\n";
class Hello {
public function SayHello($arg) {
echo "Hello\n";
- }
+ }
}
$res = fopen(__FILE__, "r");
diff --git a/ext/standard/tests/general_functions/getmypid_basic.phpt b/ext/standard/tests/general_functions/getmypid_basic.phpt
index 869eb59442..3f4d9cd5cf 100644
--- a/ext/standard/tests/general_functions/getmypid_basic.phpt
+++ b/ext/standard/tests/general_functions/getmypid_basic.phpt
@@ -5,7 +5,7 @@ Test getmypid() function: basic test
/* Prototype : int getmypid ( void )
* Description: Gets the current PHP process ID.
* Source code: ext/standard/pageinfo.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "Simple testcase for getmypid() function\n";
diff --git a/ext/standard/tests/general_functions/getrusage.phpt b/ext/standard/tests/general_functions/getrusage.phpt
index e9fc8c6f6e..4caca88e1b 100644
--- a/ext/standard/tests/general_functions/getrusage.phpt
+++ b/ext/standard/tests/general_functions/getrusage.phpt
@@ -13,7 +13,7 @@ var_dump(getrusage(array()));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
string(5) "array"
string(5) "array"
string(5) "array"
diff --git a/ext/standard/tests/general_functions/getrusage_basic.phpt b/ext/standard/tests/general_functions/getrusage_basic.phpt
index b2379a7663..a2b03ee07a 100644
--- a/ext/standard/tests/general_functions/getrusage_basic.phpt
+++ b/ext/standard/tests/general_functions/getrusage_basic.phpt
@@ -7,7 +7,7 @@ Test getrusage() function: basic test
/* Prototype : array getrusage ([ int $who ] )
* Description: Gets the current resource usages
* Source code: ext/standard/microtime.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "Simple testcase for getrusage() function\n";
@@ -16,11 +16,11 @@ $dat = getrusage();
if (!is_array($dat)) {
echo "TEST FAILED : getrusage should return an array\n";
-}
+}
-// echo the fields which are common to all platforms
+// echo the fields which are common to all platforms
echo "User time used (seconds) " . $dat["ru_utime.tv_sec"] . "\n";
-echo "User time used (microseconds) " . $dat["ru_utime.tv_usec"] . "\n";
+echo "User time used (microseconds) " . $dat["ru_utime.tv_usec"] . "\n";
?>
===DONE===
--EXPECTF--
diff --git a/ext/standard/tests/general_functions/getrusage_error.phpt b/ext/standard/tests/general_functions/getrusage_error.phpt
index a40a43449a..66deb91a31 100644
--- a/ext/standard/tests/general_functions/getrusage_error.phpt
+++ b/ext/standard/tests/general_functions/getrusage_error.phpt
@@ -7,7 +7,7 @@ Test getrusage() function : error conditions - incorrect number of args
/* Prototype : array getrusage ([ int $who ] )
* Description: Gets the current resource usages
* Source code: ext/standard/microtime.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
@@ -29,7 +29,7 @@ $array_arg = array(1,2,3);
$dat = getrusage($array_arg);
echo "\n-- Testing getrusage() function with invalid argument - OBJECT --\n";
-class classA
+class classA
{
function __toString() {
return "ClassAObject";
diff --git a/ext/standard/tests/general_functions/getrusage_variation1.phpt b/ext/standard/tests/general_functions/getrusage_variation1.phpt
index 568c9c7383..0c072ed6e0 100644
--- a/ext/standard/tests/general_functions/getrusage_variation1.phpt
+++ b/ext/standard/tests/general_functions/getrusage_variation1.phpt
@@ -3,14 +3,14 @@ Test getrusage() function : usage variation - diff data types as $who arg
--SKIPIF--
<?php
if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only");
-if (!function_exists("getrusage")) die("skip");
+if (!function_exists("getrusage")) die("skip");
?>
--FILE--
<?php
/* Prototype : array getrusage ([ int $who ] )
* Description: Gets the current resource usages
* Source code: ext/standard/microtime.c
- * Alias to functions:
+ * Alias to functions:
*/
@@ -50,13 +50,13 @@ $inputs = array(
false,
TRUE,
FALSE,
-
+
// string data
/*16*/ "0",
'1',
"1232456",
"1.23E4",
-
+
// undefined data
/*20*/ @$undefined_var,
diff --git a/ext/standard/tests/general_functions/getservbyname_error.phpt b/ext/standard/tests/general_functions/getservbyname_error.phpt
index eaeec64888..ec9b7795a5 100644
--- a/ext/standard/tests/general_functions/getservbyname_error.phpt
+++ b/ext/standard/tests/general_functions/getservbyname_error.phpt
@@ -8,7 +8,7 @@ Danilo Sanchi (sanchi@grupporetina.com)
--FILE--
<?php
$service = "www";
-$protocol = "tcp";
+$protocol = "tcp";
$extra_arg = 12;
var_dump(getservbyname($service, $protocol, $extra_arg ) );
var_dump(getservbyname($service));
diff --git a/ext/standard/tests/general_functions/getservbyname_variation14.phpt b/ext/standard/tests/general_functions/getservbyname_variation14.phpt
index 986d7d5973..8e94bb9557 100644
--- a/ext/standard/tests/general_functions/getservbyname_variation14.phpt
+++ b/ext/standard/tests/general_functions/getservbyname_variation14.phpt
@@ -6,7 +6,7 @@ Test function getservbyname() by substituting argument 2 with string values.
echo "*** Test substituting argument 2 with string values ***\n";
-$service = "www";
+$service = "www";
$heredoc = <<<EOT
diff --git a/ext/standard/tests/general_functions/getservbyname_variation2.phpt b/ext/standard/tests/general_functions/getservbyname_variation2.phpt
index 7c00b1e7f7..a659ba4cce 100644
--- a/ext/standard/tests/general_functions/getservbyname_variation2.phpt
+++ b/ext/standard/tests/general_functions/getservbyname_variation2.phpt
@@ -6,7 +6,7 @@ Test function getservbyname() by substituting argument 1 with boolean values.
echo "*** Test substituting argument 1 with boolean values ***\n";
-$protocol = "tcp";
+$protocol = "tcp";
$variation_array = array(
diff --git a/ext/standard/tests/general_functions/getservbyname_variation5.phpt b/ext/standard/tests/general_functions/getservbyname_variation5.phpt
index f06a6ec884..2ee334a0ba 100644
--- a/ext/standard/tests/general_functions/getservbyname_variation5.phpt
+++ b/ext/standard/tests/general_functions/getservbyname_variation5.phpt
@@ -6,7 +6,7 @@ Test function getservbyname() by substituting argument 1 with int values.
echo "*** Test substituting argument 1 with int values ***\n";
-$protocol = "tcp";
+$protocol = "tcp";
$variation_array = array (
diff --git a/ext/standard/tests/general_functions/getservbyport_error.phpt b/ext/standard/tests/general_functions/getservbyport_error.phpt
index e2c245b7ea..7d4107cedf 100644
--- a/ext/standard/tests/general_functions/getservbyport_error.phpt
+++ b/ext/standard/tests/general_functions/getservbyport_error.phpt
@@ -8,7 +8,7 @@ Simone Gentili (sensorario@gmail.com)
--FILE--
<?php
$port = 80;
-$protocol = "tcp";
+$protocol = "tcp";
$extra_arg = 12;
var_dump(getservbyport( $port, $protocol, $extra_arg ) );
var_dump(getservbyport($port));
diff --git a/ext/standard/tests/general_functions/getservbyport_variation1.phpt b/ext/standard/tests/general_functions/getservbyport_variation1.phpt
index 3073f66430..a876ac1fea 100644
--- a/ext/standard/tests/general_functions/getservbyport_variation1.phpt
+++ b/ext/standard/tests/general_functions/getservbyport_variation1.phpt
@@ -18,7 +18,7 @@ Simone Gentili (sensorario@gmail.com)
var_dump(getservbyport( 2, 2));
var_dump(getservbyport( "80", "tcp"));
var_dump(getservbyport( new stdClass(), new stdClass()));
-
+
?>
--EXPECTF--
bool(false)
diff --git a/ext/standard/tests/general_functions/gettype_settype_error.phpt b/ext/standard/tests/general_functions/gettype_settype_error.phpt
index 2c6aac6875..325e91e47f 100644
--- a/ext/standard/tests/general_functions/gettype_settype_error.phpt
+++ b/ext/standard/tests/general_functions/gettype_settype_error.phpt
@@ -1,12 +1,12 @@
--TEST--
-Test gettype() & settype() functions : error conditions
+Test gettype() & settype() functions : error conditions
--FILE--
<?php
/* Prototype: string gettype ( mixed $var );
Description: Returns the type of the PHP variable var
Prototype: bool settype ( mixed &$var, string $type );
- Description: Set the type of variable var to type
+ Description: Set the type of variable var to type
*/
/* Test different error conditions of settype() and gettype() functions */
@@ -16,14 +16,14 @@ echo "**** Testing gettype() and settype() functions ****\n";
echo "\n*** Testing gettype(): error conditions ***\n";
//Zero arguments
var_dump( gettype() );
-// args more than expected
+// args more than expected
var_dump( gettype( "1", "2" ) );
echo "\n*** Testing settype(): error conditions ***\n";
//Zero arguments
var_dump( settype() );
-// args more than expected
+// args more than expected
$var = 10.5;
var_dump( settype( $var, $var, "int" ) );
@@ -32,7 +32,7 @@ var_dump( settype( $var, "unknown" ) );
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
**** Testing gettype() and settype() functions ****
*** Testing gettype(): error conditions ***
diff --git a/ext/standard/tests/general_functions/gettype_settype_variation1.phpt b/ext/standard/tests/general_functions/gettype_settype_variation1.phpt
index 6265d0a373..7fb8789ff3 100644
--- a/ext/standard/tests/general_functions/gettype_settype_variation1.phpt
+++ b/ext/standard/tests/general_functions/gettype_settype_variation1.phpt
@@ -12,19 +12,19 @@ precision=14
Description: Returns the type of the PHP variable var
Prototype: bool settype ( mixed &$var, string $type );
- Description: Set the type of variable var to type
+ Description: Set the type of variable var to type
*/
-/* Test usage variation of gettype() and settype() functions:
- settype() to null type.
+/* Test usage variation of gettype() and settype() functions:
+ settype() to null type.
Set type of the data to "null" and verify using gettype
Following are performed in the listed sequence:
- get the current type of the variable
+ get the current type of the variable
set the type of the variable to "null type"
dump the variable to see its new data
get the new type of the variable
*/
-
+
/* function to handle catchable errors */
function foo($errno, $errstr, $errfile, $errline) {
// var_dump($errstr);
@@ -32,8 +32,8 @@ function foo($errno, $errstr, $errfile, $errline) {
echo "$errno: $errstr\n";
}
//set the error handler, this is required as
-// settype() would fail with catachable fatal error
-set_error_handler("foo");
+// settype() would fail with catachable fatal error
+set_error_handler("foo");
$var1 = "another string";
$var2 = array(2,3,4);
@@ -57,15 +57,15 @@ class point
}
}
-$var_values = array (
+$var_values = array (
/* nulls */
- null,
+ null,
/* boolean */
- FALSE,
+ FALSE,
TRUE,
true,
-
+
/* strings */
"\xFF",
"\x66",
@@ -79,7 +79,7 @@ $var_values = array (
"10",
"10string",
'10string',
- "1",
+ "1",
"-1",
"1e2",
" 1",
@@ -125,11 +125,11 @@ $var_values = array (
0555,
-0555,
02224242434343152, // an octal value > than max int
-
+
/* floats */
1e5,
-1e5,
- 1E5,
+ 1E5,
-1E5,
-1.5,
.5,
@@ -155,7 +155,7 @@ $var_values = array (
$undef_var
);
-/* test conversion to null type */
+/* test conversion to null type */
$type = "null";
echo "\n*** Testing gettype() & settype() functions : usage variations ***\n";
@@ -164,22 +164,22 @@ $loop_count = 1;
foreach ($var_values as $var) {
echo "-- Iteration $loop_count --\n"; $loop_count++;
- // get the current data type
+ // get the current data type
var_dump( gettype($var) );
-
- // convert it to null
+
+ // convert it to null
var_dump( settype($var, $type) );
- // dump the converted data
+ // dump the converted data
var_dump( $var );
-
+
// check the new type after conversion
var_dump( gettype($var) );
}
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
diff --git a/ext/standard/tests/general_functions/gettype_settype_variation2.phpt b/ext/standard/tests/general_functions/gettype_settype_variation2.phpt
index ba3a0dbfec..99ab02a60d 100644
--- a/ext/standard/tests/general_functions/gettype_settype_variation2.phpt
+++ b/ext/standard/tests/general_functions/gettype_settype_variation2.phpt
@@ -15,7 +15,7 @@ precision=14
Description: Returns the type of the PHP variable var
Prototype: bool settype ( mixed &$var, string $type );
- Description: Set the type of variable var to type
+ Description: Set the type of variable var to type
*/
/* Test usage variation of gettype() and settype() functions:
@@ -35,8 +35,8 @@ function foo($errno, $errstr, $errfile, $errline) {
echo "$errno: $errstr\n";
}
//set the error handler, this is required as
-// settype() would fail with catachable fatal error
-set_error_handler("foo");
+// settype() would fail with catachable fatal error
+set_error_handler("foo");
$var1 = "another string";
$var2 = array(2,3,4);
@@ -60,15 +60,15 @@ class point
}
}
-$var_values = array (
+$var_values = array (
/* nulls */
- null,
+ null,
/* boolean */
- FALSE,
+ FALSE,
TRUE,
true,
-
+
/* strings */
"\xFF",
"\x66",
@@ -82,7 +82,7 @@ $var_values = array (
"10",
"10string",
'10string',
- "1",
+ "1",
"-1",
"1e2",
" 1",
@@ -128,11 +128,11 @@ $var_values = array (
0555,
-0555,
02224242434343152, // an octal value > than max int
-
+
/* floats */
1e5,
-1e5,
- 1E5,
+ 1E5,
-1E5,
-1.5,
.5,
@@ -158,7 +158,7 @@ $var_values = array (
$undef_var
);
-// test conversion to these types
+// test conversion to these types
$types = array(
"integer",
"int"
@@ -173,13 +173,13 @@ foreach ($types as $type) {
// get the current data type
var_dump( gettype($var) );
-
+
// convert it to new type
var_dump( settype($var, $type) );
-
+
// dump the converted $var
var_dump( $var );
-
+
// get the new type of the $var
var_dump( gettype($var) );
}
diff --git a/ext/standard/tests/general_functions/gettype_settype_variation3.phpt b/ext/standard/tests/general_functions/gettype_settype_variation3.phpt
index 29c1463fb1..71b03461eb 100644
--- a/ext/standard/tests/general_functions/gettype_settype_variation3.phpt
+++ b/ext/standard/tests/general_functions/gettype_settype_variation3.phpt
@@ -12,7 +12,7 @@ precision=14
Description: Returns the type of the PHP variable var
Prototype: bool settype ( mixed &$var, string $type );
- Description: Set the type of variable var to type
+ Description: Set the type of variable var to type
*/
/* Test usage variation of gettype() and settype() functions:
@@ -32,8 +32,8 @@ function foo($errno, $errstr, $errfile, $errline) {
echo "$errno: $errstr\n";
}
//set the error handler, this is required as
-// settype() would fail with catachable fatal error
-set_error_handler("foo");
+// settype() would fail with catachable fatal error
+set_error_handler("foo");
$var1 = "another string";
$var2 = array(2,3,4);
@@ -57,15 +57,15 @@ class point
}
}
-$var_values = array (
+$var_values = array (
/* nulls */
- null,
+ null,
/* boolean */
- FALSE,
+ FALSE,
TRUE,
true,
-
+
/* strings */
"\xFF",
"\x66",
@@ -79,7 +79,7 @@ $var_values = array (
"10",
"10string",
'10string',
- "1",
+ "1",
"-1",
"1e2",
" 1",
@@ -125,11 +125,11 @@ $var_values = array (
0555,
-0555,
02224242434343152, // an octal value > than max int
-
+
/* floats */
1e5,
-1e5,
- 1E5,
+ 1E5,
-1E5,
-1.5,
.5,
@@ -155,7 +155,7 @@ $var_values = array (
$undef_var
);
-// test conversion to these types
+// test conversion to these types
$types = array(
"float",
"double"
@@ -184,7 +184,7 @@ foreach ($types as $type) {
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
diff --git a/ext/standard/tests/general_functions/gettype_settype_variation4.phpt b/ext/standard/tests/general_functions/gettype_settype_variation4.phpt
index 6f7cc23df4..a14cb73dbb 100644
--- a/ext/standard/tests/general_functions/gettype_settype_variation4.phpt
+++ b/ext/standard/tests/general_functions/gettype_settype_variation4.phpt
@@ -12,7 +12,7 @@ precision=14
Description: Returns the type of the PHP variable var
Prototype: bool settype ( mixed &$var, string $type );
- Description: Set the type of variable var to type
+ Description: Set the type of variable var to type
*/
/* Test usage variation of gettype() and settype() functions:
@@ -32,8 +32,8 @@ function foo($errno, $errstr, $errfile, $errline) {
echo "$errno: $errstr\n";
}
//set the error handler, this is required as
-// settype() would fail with catachable fatal error
-set_error_handler("foo");
+// settype() would fail with catachable fatal error
+set_error_handler("foo");
$var1 = "another string";
$var2 = array(2,3,4);
@@ -61,15 +61,15 @@ class class_with_no_member {
// no member(s)
}
-$var_values = array (
+$var_values = array (
/* nulls */
- null,
+ null,
/* boolean */
- FALSE,
+ FALSE,
TRUE,
true,
-
+
/* strings */
"\xFF",
"\x66",
@@ -86,7 +86,7 @@ $var_values = array (
"10",
"10string",
'10string',
- "1",
+ "1",
"-1",
"1e2",
" 1",
@@ -133,12 +133,12 @@ $var_values = array (
0555,
-0555,
02224242434343152, // an octal value > than max int
-
+
/* floats */
0.0,
1e5,
-1e5,
- 1E5,
+ 1E5,
-1E5,
-1.5,
.5,
@@ -163,7 +163,7 @@ $var_values = array (
/* undefined/unset vars */
$unset_var,
$undef_var,
-
+
/* binary strings */
b"0",
b'0',
@@ -180,7 +180,7 @@ $var_values = array (
b"10string"
);
-// test conversion to these types
+// test conversion to these types
$types = array(
"boolean",
"bool"
@@ -209,7 +209,7 @@ foreach ($types as $type) {
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
diff --git a/ext/standard/tests/general_functions/gettype_settype_variation5.phpt b/ext/standard/tests/general_functions/gettype_settype_variation5.phpt
index 9af1bfbaa8..c5e2640f9c 100644
--- a/ext/standard/tests/general_functions/gettype_settype_variation5.phpt
+++ b/ext/standard/tests/general_functions/gettype_settype_variation5.phpt
@@ -12,7 +12,7 @@ precision=14
Description: Returns the type of the PHP variable var
Prototype: bool settype ( mixed &$var, string $type );
- Description: Set the type of variable var to type
+ Description: Set the type of variable var to type
*/
/* Test usage variation of gettype() and settype() functions:
@@ -32,8 +32,8 @@ function foo($errno, $errstr, $errfile, $errline) {
echo "$errno: $errstr\n";
}
//set the error handler, this is required as
-// settype() would fail with catachable fatal error
-set_error_handler("foo");
+// settype() would fail with catachable fatal error
+set_error_handler("foo");
$var1 = "another string";
$var2 = array(2,3,4);
@@ -57,15 +57,15 @@ class point
}
}
-$var_values = array (
+$var_values = array (
/* nulls */
- null,
+ null,
/* boolean */
- FALSE,
+ FALSE,
TRUE,
true,
-
+
/* strings */
"\xFF",
"\x66",
@@ -79,7 +79,7 @@ $var_values = array (
"10",
"10string",
'10string',
- "1",
+ "1",
"-1",
"1e2",
" 1",
@@ -125,11 +125,11 @@ $var_values = array (
0555,
-0555,
02224242434343152, // an octal value > than max int
-
+
/* floats */
1e5,
-1e5,
- 1E5,
+ 1E5,
-1E5,
-1.5,
.5,
@@ -179,7 +179,7 @@ foreach ($var_values as $var) {
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
diff --git a/ext/standard/tests/general_functions/gettype_settype_variation6.phpt b/ext/standard/tests/general_functions/gettype_settype_variation6.phpt
index 5217121385..27beaa0744 100644
--- a/ext/standard/tests/general_functions/gettype_settype_variation6.phpt
+++ b/ext/standard/tests/general_functions/gettype_settype_variation6.phpt
@@ -12,7 +12,7 @@ precision=14
Description: Returns the type of the PHP variable var
Prototype: bool settype ( mixed &$var, string $type );
- Description: Set the type of variable var to type
+ Description: Set the type of variable var to type
*/
/* Test usage variation of gettype() and settype() functions:
@@ -32,8 +32,8 @@ function foo($errno, $errstr, $errfile, $errline) {
echo "$errno: $errstr\n";
}
//set the error handler, this is required as
-// settype() would fail with catachable fatal error
-set_error_handler("foo");
+// settype() would fail with catachable fatal error
+set_error_handler("foo");
$var1 = "another string";
$var2 = array(2,3,4);
@@ -57,15 +57,15 @@ class point
}
}
-$var_values = array (
+$var_values = array (
/* nulls */
- null,
+ null,
/* boolean */
- FALSE,
+ FALSE,
TRUE,
true,
-
+
/* strings */
"\xFF",
"\x66",
@@ -79,7 +79,7 @@ $var_values = array (
"10",
"10string",
'10string',
- "1",
+ "1",
"-1",
"1e2",
" 1",
@@ -125,11 +125,11 @@ $var_values = array (
0555,
-0555,
02224242434343152, // an octal value > than max int
-
+
/* floats */
1e5,
-1e5,
- 1E5,
+ 1E5,
-1E5,
-1.5,
.5,
@@ -181,7 +181,7 @@ foreach ($var_values as $var) {
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
diff --git a/ext/standard/tests/general_functions/gettype_settype_variation7.phpt b/ext/standard/tests/general_functions/gettype_settype_variation7.phpt
index 8431cb802f..dae20a1856 100644
--- a/ext/standard/tests/general_functions/gettype_settype_variation7.phpt
+++ b/ext/standard/tests/general_functions/gettype_settype_variation7.phpt
@@ -12,7 +12,7 @@ precision=14
Description: Returns the type of the PHP variable var
Prototype: bool settype ( mixed &$var, string $type );
- Description: Set the type of variable var to type
+ Description: Set the type of variable var to type
*/
/* Test usage variation of gettype() and settype() functions:
@@ -32,8 +32,8 @@ function foo($errno, $errstr, $errfile, $errline) {
echo "$errno: $errstr\n";
}
//set the error handler, this is required as
-// settype() would fail with catachable fatal error
-set_error_handler("foo");
+// settype() would fail with catachable fatal error
+set_error_handler("foo");
$var1 = "another string";
$var2 = array(2,3,4);
@@ -57,15 +57,15 @@ class point
}
}
-$var_values = array (
+$var_values = array (
/* nulls */
- null,
+ null,
/* boolean */
- FALSE,
+ FALSE,
TRUE,
true,
-
+
/* strings */
"\xFF",
"\x66",
@@ -79,7 +79,7 @@ $var_values = array (
"10",
"10string",
'10string',
- "1",
+ "1",
"-1",
"1e2",
" 1",
@@ -125,11 +125,11 @@ $var_values = array (
0555,
-0555,
02224242434343152, // an octal value > than max int
-
+
/* floats */
1e5,
-1e5,
- 1E5,
+ 1E5,
-1E5,
-1.5,
.5,
@@ -154,7 +154,7 @@ $var_values = array (
$unset_var,
$undef_var
);
-
+
/* test conversion to object type */
$type = "object";
@@ -179,7 +179,7 @@ foreach ($var_values as $var) {
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
diff --git a/ext/standard/tests/general_functions/gettype_settype_variation8.phpt b/ext/standard/tests/general_functions/gettype_settype_variation8.phpt
index e64dd08b80..97f550e446 100644
--- a/ext/standard/tests/general_functions/gettype_settype_variation8.phpt
+++ b/ext/standard/tests/general_functions/gettype_settype_variation8.phpt
@@ -12,7 +12,7 @@ precision=14
Description: Returns the type of the PHP variable var
Prototype: bool settype ( mixed &$var, string $type );
- Description: Set the type of variable var to type
+ Description: Set the type of variable var to type
*/
/* Test usage variation of gettype() and settype() functions:
@@ -32,8 +32,8 @@ function foo($errno, $errstr, $errfile, $errline) {
echo "$errno: $errstr\n";
}
//set the error handler, this is required as
-// settype() would fail with catachable fatal error
-set_error_handler("foo");
+// settype() would fail with catachable fatal error
+set_error_handler("foo");
$var1 = "another string";
$var2 = array(2,3,4);
@@ -57,15 +57,15 @@ class point
}
}
-$var_values = array (
+$var_values = array (
/* nulls */
- null,
+ null,
/* boolean */
- FALSE,
+ FALSE,
TRUE,
true,
-
+
/* strings */
"\xFF",
"\x66",
@@ -79,7 +79,7 @@ $var_values = array (
"10",
"10string",
'10string',
- "1",
+ "1",
"-1",
"1e2",
" 1",
@@ -125,11 +125,11 @@ $var_values = array (
0555,
-0555,
02224242434343152, // an octal value > than max int
-
+
/* floats */
1e5,
-1e5,
- 1E5,
+ 1E5,
-1E5,
-1.5,
.5,
@@ -179,7 +179,7 @@ foreach ($var_values as $var) {
echo "Done\n";
?>
---EXPECT--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
diff --git a/ext/standard/tests/general_functions/head.phpt b/ext/standard/tests/general_functions/head.phpt
index e83bbf6aca..059c56b258 100644
--- a/ext/standard/tests/general_functions/head.phpt
+++ b/ext/standard/tests/general_functions/head.phpt
@@ -27,7 +27,7 @@ var_dump(headers_list());
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
NULL
bool(false)
array(0) {
diff --git a/ext/standard/tests/general_functions/intval_variation1.phpt b/ext/standard/tests/general_functions/intval_variation1.phpt
index bf88c7c920..e76d7083d4 100644
--- a/ext/standard/tests/general_functions/intval_variation1.phpt
+++ b/ext/standard/tests/general_functions/intval_variation1.phpt
@@ -1,11 +1,11 @@
--TEST--
-Test intval() function : usage variation
+Test intval() function : usage variation
--FILE--
<?php
/* Prototype : int intval(mixed var [, int base])
- * Description: Get the integer value of a variable using the optional base for the conversion
+ * Description: Get the integer value of a variable using the optional base for the conversion
* Source code: ext/standard/type.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing intval() : usage variation ***\n";
diff --git a/ext/standard/tests/general_functions/intval_variation2.phpt b/ext/standard/tests/general_functions/intval_variation2.phpt
index b27ace4063..6a295308af 100644
--- a/ext/standard/tests/general_functions/intval_variation2.phpt
+++ b/ext/standard/tests/general_functions/intval_variation2.phpt
@@ -1,13 +1,13 @@
--TEST--
-Test intval() function : usage variation
+Test intval() function : usage variation
--SKIPIF--
<?php if (PHP_INT_SIZE !== 4) die("skip this test is for 32-bit only");
--FILE--
<?php
/* Prototype : int intval(mixed var [, int base])
- * Description: Get the integer value of a variable using the optional base for the conversion
+ * Description: Get the integer value of a variable using the optional base for the conversion
* Source code: ext/standard/type.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing intval() : usage variation ***\n";
diff --git a/ext/standard/tests/general_functions/is_array.phpt b/ext/standard/tests/general_functions/is_array.phpt
index 469a8ec6cb..223b732904 100644
--- a/ext/standard/tests/general_functions/is_array.phpt
+++ b/ext/standard/tests/general_functions/is_array.phpt
@@ -25,7 +25,7 @@ $arrays = array(
array("string", "test"),
array('string', 'test')
);
-/* loop to check that is_array() recognizes different
+/* loop to check that is_array() recognizes different
type of arrays, expected output bool(true) */
$loop_counter = 1;
foreach ($arrays as $var_array ) {
@@ -39,14 +39,14 @@ echo "\n*** Testing is_array() on non array types ***\n";
$fp = fopen (__FILE__, "r");
$dfp = opendir ( dirname(__FILE__) );
-// unset variables
+// unset variables
$unset_array = array(10);
unset($unset_array);
-// other types in a array
+// other types in a array
$varient_arrays = array (
/* integers */
- 543915,
+ 543915,
-5322,
0x55F,
-0xCCF,
@@ -54,7 +54,7 @@ $varient_arrays = array (
-0654,
/* strings */
- "",
+ "",
'',
"0",
'0',
@@ -68,20 +68,20 @@ $varient_arrays = array (
.5E+8,
-.5e+90,
1e5,
-
+
/* objects */
- new stdclass,
-
+ new stdclass,
+
/* resources */
- $fp,
- $dfp,
+ $fp,
+ $dfp,
/* nulls */
- null,
+ null,
NULL,
/* boolean */
- true,
+ true,
TRUE,
FALSE,
false,
@@ -90,7 +90,7 @@ $varient_arrays = array (
@$unset_array,
@$undefined_array
);
-/* loop through the $varient_array to see working of
+/* loop through the $varient_array to see working of
is_array() on non array types, expected output bool(false) */
$loop_counter = 1;
foreach ($varient_arrays as $type ) {
@@ -102,9 +102,9 @@ echo "\n*** Testing error conditions ***\n";
//Zero argument
var_dump( is_array() );
-//arguments more than expected
+//arguments more than expected
var_dump( is_array ($fp, $fp) );
-
+
echo "Done\n";
/* close resources */
fclose($fp);
diff --git a/ext/standard/tests/general_functions/is_bool.phpt b/ext/standard/tests/general_functions/is_bool.phpt
index a8336524de..a6c6111fa1 100644
--- a/ext/standard/tests/general_functions/is_bool.phpt
+++ b/ext/standard/tests/general_functions/is_bool.phpt
@@ -3,22 +3,22 @@ Test is_bool() function
--FILE--
<?php
/* Prototype: bool is_bool ( mixed $var );
- * Description: Finds whether the given variable is a boolean
+ * Description: Finds whether the given variable is a boolean
*/
echo "*** Testing is_bool() with valid boolean values ***\n";
-// different valid boolean values
+// different valid boolean values
$valid_bools = array(
TRUE,
FALSE,
true,
false,
);
-/* loop to check that is_bool() recognizes different
+/* loop to check that is_bool() recognizes different
bool values, expected output: bool(true) */
$loop_counter = 1;
foreach ($valid_bools as $bool_val ) {
- echo "-- Iteration $loop_counter --\n"; $loop_counter++;
+ echo "-- Iteration $loop_counter --\n"; $loop_counter++;
var_dump( is_bool($bool_val) );
}
@@ -36,7 +36,7 @@ unset ($unset_bool1);
unset ($unset_bool2);
unset ($unset_var);
-// other types in a array
+// other types in a array
$not_bool_types = array (
/* integers */
0,
@@ -98,7 +98,7 @@ $not_bool_types = array (
/* nulls */
null,
NULL,
-
+
/* arrays */
array(),
array(0),
@@ -114,16 +114,16 @@ $not_bool_types = array (
array(1 => "One", "two" => 2),
/* unset bool vars and undefined var */
- @$unset_bool1,
- @$unset_bool2,
- @$unset_var,
+ @$unset_bool1,
+ @$unset_bool2,
+ @$unset_var,
@$undefined_var
);
-/* loop through the $not_bool_types to see working of
+/* loop through the $not_bool_types to see working of
is_bool() on non bull types, expected output: bool(false) */
$loop_counter = 1;
foreach ($not_bool_types as $type ) {
- echo "-- Iteration $loop_counter --\n"; $loop_counter++;
+ echo "-- Iteration $loop_counter --\n"; $loop_counter++;
var_dump( is_bool($type) );
}
@@ -131,9 +131,9 @@ echo "\n*** Testing error conditions ***\n";
//Zero argument
var_dump( is_bool() );
-//arguments more than expected
+//arguments more than expected
var_dump( is_bool(TRUE, FALSE) );
-
+
echo "Done\n";
// close resources
diff --git a/ext/standard/tests/general_functions/is_callable_basic2.phpt b/ext/standard/tests/general_functions/is_callable_basic2.phpt
index 06941832db..7657875311 100644
--- a/ext/standard/tests/general_functions/is_callable_basic2.phpt
+++ b/ext/standard/tests/general_functions/is_callable_basic2.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test is_callable() function : usage variations - on objects
+Test is_callable() function : usage variations - on objects
--FILE--
<?php
/* Prototype: bool is_callable ( mixed $var [, bool $syntax_only [, string &$callable_name]] );
@@ -8,7 +8,7 @@ Test is_callable() function : usage variations - on objects
*/
/* Prototype: void check_iscallable_objects( $methods );
- Description: use is_callable() on given $method to check if the array
+ Description: use is_callable() on given $method to check if the array
contains a valid method name;
returns true if valid function name, false otherwise
*/
@@ -32,11 +32,11 @@ echo "\n*** Testing is_callable() on objects ***\n";
class object_class
{
public $value = 100;
-
+
/* static method */
static public function foo() {
}
-
+
public function foo1() {
}
/* function name with mixed string and integer */
@@ -47,7 +47,7 @@ class object_class
}
/* function name having boolean value */
public function TRUE() {
- }
+ }
protected function foo2() {
}
diff --git a/ext/standard/tests/general_functions/is_callable_variation2.phpt b/ext/standard/tests/general_functions/is_callable_variation2.phpt
index 5bfd4be321..af562d4ef1 100644
--- a/ext/standard/tests/general_functions/is_callable_variation2.phpt
+++ b/ext/standard/tests/general_functions/is_callable_variation2.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test is_callable() function : usage variations - on invalid function names
+Test is_callable() function : usage variations - on invalid function names
--FILE--
<?php
/* Prototype: bool is_callable ( mixed $var [, bool $syntax_only [, string &$callable_name]] );
diff --git a/ext/standard/tests/general_functions/is_float.phpt b/ext/standard/tests/general_functions/is_float.phpt
index 6adf5414f8..b71a5283db 100644
--- a/ext/standard/tests/general_functions/is_float.phpt
+++ b/ext/standard/tests/general_functions/is_float.phpt
@@ -7,11 +7,11 @@ if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
--FILE--
<?php
/* Prototype: bool is_float ( mixed $var );
- * Description: Finds whether the given variable is a float
- */
+ * Description: Finds whether the given variable is a float
+ */
echo "*** Testing is_float(), is_double() and is_real() with float values***\n";
-// different valid float values
+// different valid float values
$floats = array(
-2147483649, // float value
2147483648, // float value
@@ -63,7 +63,7 @@ $dfp = opendir ( dirname(__FILE__) );
$unset_var = 10;
unset ($unset_var);
-// non_scalar values, objects, arrays, resources and boolean
+// non_scalar values, objects, arrays, resources and boolean
class foo
{
var $array = array(10.5);
@@ -72,7 +72,7 @@ $object = new foo();
$not_floats = array (
new foo, //object
- $object,
+ $object,
$fp, // resource
$dfp,
@@ -90,7 +90,7 @@ $not_floats = array (
TRUE,
false,
FALSE,
-
+
"", // strings
'',
"0",
@@ -103,7 +103,7 @@ $not_floats = array (
'1e5',
'1.5e6_string',
"1.5e6_string",
-
+
1, // integers, hex and octal
-1,
0,
@@ -112,11 +112,11 @@ $not_floats = array (
-0x673,
0123,
-0123,
-
+
@$unset_var, // unset variable
@$undefined_var
);
-/* loop through the $not_floats to see working of
+/* loop through the $not_floats to see working of
is_float(), is_double() & is_real() on objects,
arrays, boolean and others */
$loop_counter = 1;
@@ -133,14 +133,14 @@ var_dump( is_float() );
var_dump( is_double() );
var_dump( is_real() );
-//arguments more than expected
+//arguments more than expected
var_dump( is_float( $floats[0], $floats[1]) );
var_dump( is_double( $floats[0], $floats[1]) );
var_dump( is_real( $floats[0], $floats[1]) );
-
+
echo "Done\n";
-// close the resources used
+// close the resources used
fclose($fp);
closedir($dfp);
diff --git a/ext/standard/tests/general_functions/is_float_64bit.phpt b/ext/standard/tests/general_functions/is_float_64bit.phpt
index f5350f848e..9410a21fe2 100644
--- a/ext/standard/tests/general_functions/is_float_64bit.phpt
+++ b/ext/standard/tests/general_functions/is_float_64bit.phpt
@@ -9,11 +9,11 @@ precision=14
--FILE--
<?php
/* Prototype: bool is_float ( mixed $var );
- * Description: Finds whether the given variable is a float
- */
+ * Description: Finds whether the given variable is a float
+ */
echo "*** Testing is_float(), is_double() and is_real() with float values***\n";
-// different valid float values
+// different valid float values
$floats = array(
-2147483649, // float value
2147483648, // float value
@@ -65,7 +65,7 @@ $dfp = opendir ( dirname(__FILE__) );
$unset_var = 10;
unset ($unset_var);
-// non_scalar values, objects, arrays, resources and boolean
+// non_scalar values, objects, arrays, resources and boolean
class foo
{
var $array = array(10.5);
@@ -74,7 +74,7 @@ $object = new foo();
$not_floats = array (
new foo, //object
- $object,
+ $object,
$fp, // resource
$dfp,
@@ -92,7 +92,7 @@ $not_floats = array (
TRUE,
false,
FALSE,
-
+
"", // strings
'',
"0",
@@ -105,7 +105,7 @@ $not_floats = array (
'1e5',
'1.5e6_string',
"1.5e6_string",
-
+
1, // integers, hex and octal
-1,
0,
@@ -114,11 +114,11 @@ $not_floats = array (
-0x673,
0123,
-0123,
-
+
@$unset_var, // unset variable
@$undefined_var
);
-/* loop through the $not_floats to see working of
+/* loop through the $not_floats to see working of
is_float(), is_double() & is_real() on objects,
arrays, boolean and others */
$loop_counter = 1;
@@ -135,11 +135,11 @@ var_dump( is_float() );
var_dump( is_double() );
var_dump( is_real() );
-//arguments more than expected
+//arguments more than expected
var_dump( is_float( $floats[0], $floats[1]) );
var_dump( is_double( $floats[0], $floats[1]) );
var_dump( is_real( $floats[0], $floats[1]) );
-
+
echo "Done\n";
?>
--EXPECTF--
diff --git a/ext/standard/tests/general_functions/is_int.phpt b/ext/standard/tests/general_functions/is_int.phpt
index aa2306e763..d154b30748 100644
--- a/ext/standard/tests/general_functions/is_int.phpt
+++ b/ext/standard/tests/general_functions/is_int.phpt
@@ -7,17 +7,17 @@ if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
--FILE--
<?php
/* Prototype: bool is_int ( mixed $var );
- * Description: Finds whether the given variable is an integer
+ * Description: Finds whether the given variable is an integer
*/
echo "*** Testing is_int(), is_integer() & is_long() with valid integer values ***\n";
-// different valid integer values
+// different valid integer values
$valid_ints = array(
0,
1,
-1,
-2147483648, // max negative integer value
- -2147483647,
+ -2147483647,
2147483647, // max positive integer value
2147483640,
0x123B, // integer as hexadecimal
@@ -32,11 +32,11 @@ $valid_ints = array(
-020000000000, // max negative integer as octal
017777777777, // max positive integer as octal
);
-/* loop to check that is_int() recognizes different
+/* loop to check that is_int() recognizes different
integer values, expected output: bool(true) */
$loop_counter = 1;
foreach ($valid_ints as $int_val ) {
- echo "--Iteration $loop_counter--\n"; $loop_counter++;
+ echo "--Iteration $loop_counter--\n"; $loop_counter++;
var_dump( is_int($int_val) );
var_dump( is_integer($int_val) );
var_dump( is_long($int_val) );
@@ -52,16 +52,16 @@ $dfp = opendir ( dirname(__FILE__) );
$unset_var = 10;
unset ($unset_var);
-// other types in a array
+// other types in a array
$not_int_types = array (
/* float values */
-2147483649, // float value
2147483648, // float value
-0x80000001, // float value, beyond max negative int
0x800000001, // float value, beyond max positive int
- 020000000001, // float value, beyond max positive int
- -020000000001, // float value, beyond max negative int
- 0.0,
+ 020000000001, // float value, beyond max positive int
+ -020000000001, // float value, beyond max negative int
+ 0.0,
-0.1,
1.0,
1e5,
@@ -70,14 +70,14 @@ $not_int_types = array (
-1E9,
10.0000000000000000005,
10.5e+5,
-
+
/* objects */
new stdclass,
/* resources */
$fp,
$dfp,
-
+
/* arrays */
array(),
array(0),
@@ -91,7 +91,7 @@ $not_int_types = array (
array(FALSE),
array(1,2,3,4),
array(1 => "One", "two" => 2),
-
+
/* strings */
"",
'',
@@ -119,14 +119,14 @@ $not_int_types = array (
FALSE,
/* undefined and unset vars */
- @$unset_var,
+ @$unset_var,
@$undefined_var
);
-/* loop through the $not_int_types to see working of
+/* loop through the $not_int_types to see working of
is_int() on non integer types, expected output: bool(false) */
$loop_counter = 1;
foreach ($not_int_types as $type ) {
- echo "--Iteration $loop_counter--\n"; $loop_counter++;
+ echo "--Iteration $loop_counter--\n"; $loop_counter++;
var_dump( is_int($type) );
var_dump( is_integer($type) );
var_dump( is_long($type) );
@@ -138,11 +138,11 @@ var_dump( is_int() );
var_dump( is_integer() );
var_dump( is_long() );
-//arguments more than expected
+//arguments more than expected
var_dump( is_int(TRUE, FALSE) );
var_dump( is_integer(TRUE, FALSE) );
var_dump( is_long(TRUE, FALSE) );
-
+
echo "Done\n";
// close the resources
diff --git a/ext/standard/tests/general_functions/is_int_64bit.phpt b/ext/standard/tests/general_functions/is_int_64bit.phpt
index ac98b09436..68ef75b35b 100644
--- a/ext/standard/tests/general_functions/is_int_64bit.phpt
+++ b/ext/standard/tests/general_functions/is_int_64bit.phpt
@@ -9,17 +9,17 @@ precision=14
--FILE--
<?php
/* Prototype: bool is_int ( mixed $var );
- * Description: Finds whether the given variable is an integer
+ * Description: Finds whether the given variable is an integer
*/
echo "*** Testing is_int(), is_integer() & is_long() with valid integer values ***\n";
-// different valid integer values
+// different valid integer values
$valid_ints = array(
0,
1,
-1,
-2147483648, // max negative integer value
- -2147483647,
+ -2147483647,
2147483647, // max positive integer value
2147483640,
0x123B, // integer as hexadecimal
@@ -34,11 +34,11 @@ $valid_ints = array(
-020000000000, // max negative integer as octal
017777777777, // max positive integer as octal
);
-/* loop to check that is_int() recognizes different
+/* loop to check that is_int() recognizes different
integer values, expected output: bool(true) */
$loop_counter = 1;
foreach ($valid_ints as $int_val ) {
- echo "--Iteration $loop_counter--\n"; $loop_counter++;
+ echo "--Iteration $loop_counter--\n"; $loop_counter++;
var_dump( is_int($int_val) );
var_dump( is_integer($int_val) );
var_dump( is_long($int_val) );
@@ -54,16 +54,16 @@ $dfp = opendir ( dirname(__FILE__) );
$unset_var = 10;
unset ($unset_var);
-// other types in a array
+// other types in a array
$not_int_types = array (
/* float values */
-2147483649, // float value
2147483648, // float value
-0x80000001, // float value, beyond max negative int
0x800000001, // float value, beyond max positive int
- 020000000001, // float value, beyond max positive int
- -020000000001, // float value, beyond max negative int
- 0.0,
+ 020000000001, // float value, beyond max positive int
+ -020000000001, // float value, beyond max negative int
+ 0.0,
-0.1,
1.0,
1e5,
@@ -72,14 +72,14 @@ $not_int_types = array (
-1E9,
10.0000000000000000005,
10.5e+5,
-
+
/* objects */
new stdclass,
/* resources */
$fp,
$dfp,
-
+
/* arrays */
array(),
array(0),
@@ -93,7 +93,7 @@ $not_int_types = array (
array(FALSE),
array(1,2,3,4),
array(1 => "One", "two" => 2),
-
+
/* strings */
"",
'',
@@ -121,14 +121,14 @@ $not_int_types = array (
FALSE,
/* undefined and unset vars */
- @$unset_var,
+ @$unset_var,
@$undefined_var
);
-/* loop through the $not_int_types to see working of
+/* loop through the $not_int_types to see working of
is_int() on non integer types, expected output: bool(false) */
$loop_counter = 1;
foreach ($not_int_types as $type ) {
- echo "--Iteration $loop_counter--\n"; $loop_counter++;
+ echo "--Iteration $loop_counter--\n"; $loop_counter++;
var_dump( is_int($type) );
var_dump( is_integer($type) );
var_dump( is_long($type) );
@@ -140,11 +140,11 @@ var_dump( is_int() );
var_dump( is_integer() );
var_dump( is_long() );
-//arguments more than expected
+//arguments more than expected
var_dump( is_int(TRUE, FALSE) );
var_dump( is_integer(TRUE, FALSE) );
var_dump( is_long(TRUE, FALSE) );
-
+
echo "Done\n";
?>
--EXPECTF--
diff --git a/ext/standard/tests/general_functions/is_null.phpt b/ext/standard/tests/general_functions/is_null.phpt
index e52b3d29f4..fa7c87f791 100644
--- a/ext/standard/tests/general_functions/is_null.phpt
+++ b/ext/standard/tests/general_functions/is_null.phpt
@@ -3,11 +3,11 @@ Test is_null() function
--FILE--
<?php
/* Prototype: bool is_null ( mixed $var );
- * Description: Finds whether the given variable is NULL
+ * Description: Finds whether the given variable is NULL
*/
echo "*** Testing is_null() with valid null values ***\n";
-// different valid null values
+// different valid null values
$unset_array = array();
$unset_int = 10;
$unset_float = 10.5;
@@ -15,7 +15,7 @@ $unset_bool = true;
$unset_object = new stdclass;
$unset_resource = fopen(__FILE__, "r");
// unset them to make it null.
-unset ($unset_array, $unset_int, $unset_float, $unset_bool, $unset_object, $unset_resource);
+unset ($unset_array, $unset_int, $unset_float, $unset_bool, $unset_object, $unset_resource);
$null_var1 = NULL;
$null_var2 = null;
@@ -32,7 +32,7 @@ $valid_nulls = array(
@$unset_resource,
@$undefined_var,
);
-/* loop to check that is_null() recognizes different
+/* loop to check that is_null() recognizes different
null values, expected output: bool(true) */
$loop_counter = 1;
foreach ($valid_nulls as $null_val ) {
@@ -46,7 +46,7 @@ echo "\n*** Testing is_bool() on non null values ***\n";
$fp = fopen (__FILE__, "r");
$dfp = opendir ( dirname(__FILE__) );
-// other types in a array
+// other types in a array
$not_null_types = array (
/* integers */
0,
@@ -119,7 +119,7 @@ $not_null_types = array (
array(1,2,3,4),
array(1 => "One", "two" => 2),
);
-/* loop through the $not_null_types to see working of
+/* loop through the $not_null_types to see working of
is_null() on non null types, expected output: bool(false) */
$loop_counter = 1;
foreach ($not_null_types as $type ) {
@@ -131,9 +131,9 @@ echo "\n*** Testing error conditions ***\n";
//Zero argument
var_dump( is_null() );
-//arguments more than expected
+//arguments more than expected
var_dump( is_null(NULL, null) );
-
+
echo "Done\n";
// close the resources used
diff --git a/ext/standard/tests/general_functions/is_numeric.phpt b/ext/standard/tests/general_functions/is_numeric.phpt
index b529994ec1..0019cf18d2 100644
--- a/ext/standard/tests/general_functions/is_numeric.phpt
+++ b/ext/standard/tests/general_functions/is_numeric.phpt
@@ -3,11 +3,11 @@ Test is_numeric() function
--FILE--
<?php
/* Prototype: bool is_numeric ( mixed $var );
- * Description: Finds whether a variable is a number or a numeric string
+ * Description: Finds whether a variable is a number or a numeric string
*/
echo "*** Testing is_numeric() with valid numeric values ***\n";
-// different valid numeric values
+// different valid numeric values
$numerics = array(
0,
1,
@@ -58,15 +58,15 @@ $numerics = array(
//0x1111111111111111111111,
-0x1111111,
+0x6698319,
- 01000000000000000000000,
+ 01000000000000000000000,
0123,
0345,
- -0200001,
- -0200001.7,
- 0200001.7,
- +0200001,
- +0200001.7,
- +0200001.7,
+ -0200001,
+ -0200001.7,
+ 0200001.7,
+ +0200001,
+ +0200001.7,
+ +0200001.7,
2.00000000000000000000001, // a float value with more precision points
"1", // numeric in the form of string
"-1",
@@ -87,7 +87,7 @@ $numerics = array(
'-0123',
'+0123'
);
-/* loop to check that is_numeric() recognizes different
+/* loop to check that is_numeric() recognizes different
numeric values, expected output: bool(true) */
$loop_counter = 1;
foreach ($numerics as $num ) {
@@ -105,13 +105,13 @@ $dfp = opendir ( dirname(__FILE__) );
$unset_var = 10.5;
unset ($unset_var);
-// other types in a array
+// other types in a array
$not_numerics = array(
"0x80001",
- "-0x80001",
- "+0x80001",
+ "-0x80001",
+ "+0x80001",
"-0x80001.5",
- "0x80001.5",
+ "0x80001.5",
new stdclass, // object
$fp, // resource
$dfp,
@@ -126,7 +126,7 @@ $not_numerics = array(
"20 test",
"3.6test",
"1,000",
- "NULL",
+ "NULL",
"true",
true,
NULL,
@@ -137,7 +137,7 @@ $not_numerics = array(
@$unset_var, // unset variable
@$undefined_var
);
-/* loop through the $not_numerics to see working of
+/* loop through the $not_numerics to see working of
is_numeric() on non numeric values, expected output: bool(false) */
$loop_counter = 1;
foreach ($not_numerics as $type ) {
@@ -149,9 +149,9 @@ echo "\n*** Testing error conditions ***\n";
//Zero argument
var_dump( is_numeric() );
-//arguments more than expected
+//arguments more than expected
var_dump( is_numeric("10", "20") );
-
+
echo "Done\n";
// close the resources used
diff --git a/ext/standard/tests/general_functions/is_object.phpt b/ext/standard/tests/general_functions/is_object.phpt
index 89b5081fae..8abc766376 100644
--- a/ext/standard/tests/general_functions/is_object.phpt
+++ b/ext/standard/tests/general_functions/is_object.phpt
@@ -3,7 +3,7 @@ Test is_object() function
--FILE--
<?php
/* Prototype: bool is_object ( mixed $var );
- * Description: Finds whether the given variable is an object
+ * Description: Finds whether the given variable is an object
*/
echo "*** Testing is_object() with valid objects ***\n";
@@ -11,7 +11,7 @@ echo "*** Testing is_object() with valid objects ***\n";
// class with no members
class foo
{
-// no members
+// no members
}
// abstract class
@@ -31,10 +31,10 @@ class concreteClass extends abstractClass
}
}
-// interface class
+// interface class
interface IValue
{
- public function setVal ($name, $val);
+ public function setVal ($name, $val);
public function dumpVal ();
}
@@ -42,18 +42,18 @@ interface IValue
class Value implements IValue
{
private $vars = array ();
-
+
public function setVal ( $name, $val ) {
$this->vars[$name] = $val;
}
-
+
public function dumpVal () {
var_dump ( $vars );
}
}
-// a gereral class
-class myClass
+// a gereral class
+class myClass
{
var $foo_object;
public $public_var;
@@ -67,7 +67,7 @@ class myClass
$this->public_var1 = new foo();
$this->private_var = new foo();
$this->proected_var = new foo();
- }
+ }
}
// create a object of each class defined above
@@ -88,9 +88,9 @@ $valid_objects = array(
$foo_object,
$Value_object,
$concreteClass_object
-);
-
-/* loop to check that is_object() recognizes different
+);
+
+/* loop to check that is_object() recognizes different
objects, expected output: bool(true) */
$loop_counter = 1;
foreach ($valid_objects as $object ) {
@@ -104,11 +104,11 @@ echo "\n*** Testing is_object() on non object types ***\n";
$fp = fopen (__FILE__, "r");
$dfp = opendir ( dirname(__FILE__) );
-// unset object
+// unset object
$unset_object = new foo();
unset ($unset_object);
-// other types in a array
+// other types in a array
$not_objects = array (
0,
-1,
@@ -130,7 +130,7 @@ $not_objects = array (
@$unset_object, // unset object
@$undefined_var, // undefined variable
);
-/* loop through the $not_objects to see working of
+/* loop through the $not_objects to see working of
is_object() on non object types, expected output: bool(false) */
$loop_counter = 1;
foreach ($not_objects as $type ) {
@@ -142,9 +142,9 @@ echo "\n*** Testing error conditions ***\n";
//Zero argument
var_dump( is_object() );
-//arguments more than expected
+//arguments more than expected
var_dump( is_object($myClass_object, $myClass_object) );
-
+
echo "Done\n";
// close the resources used
diff --git a/ext/standard/tests/general_functions/is_resource_basic.phpt b/ext/standard/tests/general_functions/is_resource_basic.phpt
index 27583d3d87..75f4e4a8d8 100644
--- a/ext/standard/tests/general_functions/is_resource_basic.phpt
+++ b/ext/standard/tests/general_functions/is_resource_basic.phpt
@@ -1,18 +1,18 @@
--TEST--
-Test is_resource() function : basic functionality
+Test is_resource() function : basic functionality
--FILE--
<?php
/* Prototype : bool is_resource ( mixed $var )
* Description: Finds whether a variable is a resource
* Source code: ext/standard/type.c
- */
+ */
echo "*** Testing is_resource() : basic functionality ***\n";
class Hello {
public function SayHello($arg) {
echo "Hello\n";
- }
+ }
}
@@ -25,7 +25,7 @@ $vars = array(
array(1,2,3,4,5),
NULL,
new Hello());
-
+
$types = array(
"bool=false",
"bool=true",
@@ -34,7 +34,7 @@ $types = array(
"string",
"array",
"NULL",
- "object");
+ "object");
echo "\nNon-resource type cases\n";
@@ -44,7 +44,7 @@ for ($i=0; $i < count($vars); $i++) {
} else {
echo $types[$i]. " test returns FALSE\n";
}
-}
+}
$res = fopen(__FILE__, "r");
echo "\nResource type..var_dump after file open returns\n";
@@ -64,7 +64,7 @@ if (is_resource($res)) {
echo " TRUE\n";
} else {
echo " FALSE\n";
-}
+}
?>
diff --git a/ext/standard/tests/general_functions/is_resource_error.phpt b/ext/standard/tests/general_functions/is_resource_error.phpt
index acb3cb660b..f7168737cd 100644
--- a/ext/standard/tests/general_functions/is_resource_error.phpt
+++ b/ext/standard/tests/general_functions/is_resource_error.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test is_resource() function : error conditions
+Test is_resource() function : error conditions
--FILE--
<?php
/* Prototype : bool is_resource ( mixed $var )
diff --git a/ext/standard/tests/general_functions/is_scalar.phpt b/ext/standard/tests/general_functions/is_scalar.phpt
index d3e2fa572b..53620178c4 100644
--- a/ext/standard/tests/general_functions/is_scalar.phpt
+++ b/ext/standard/tests/general_functions/is_scalar.phpt
@@ -13,7 +13,7 @@ $scalar_variables = array(
-45678,
0x5FF, // hexadecimal as integer
0X566,
- -0xAAF,
+ -0xAAF,
-0XCCF,
01234, // octal as integer
-0126,
@@ -33,8 +33,8 @@ $scalar_variables = array(
" ",
' ',
"string",
- 'string',
- "0", // numeric as string
+ 'string',
+ "0", // numeric as string
"40",
"50.696",
"0x534",
@@ -45,7 +45,7 @@ $scalar_variables = array(
true,
false
);
-/* loop through each valid scalar variables in $scalar_variables
+/* loop through each valid scalar variables in $scalar_variables
and see the working of is_scalar(), expected output: bool(true)
*/
$loop_counter = 1;
@@ -65,7 +65,7 @@ $array = array(10);
$resource = opendir('.');
unset($int_var, $float_var, $string_var, $boolean_var, $object, $array, $resource);
-// resources
+// resources
$fp = fopen(__FILE__, "r");
$dfp = opendir(".");
@@ -73,7 +73,7 @@ $variation_array = array(
NULL,
null,
- array(), // arrays
+ array(), // arrays
array(NULL),
array(true),
array(0),
@@ -94,9 +94,9 @@ $variation_array = array(
@$resource,
@$undefined_var // undefined variable
-);
+);
-/* loop through each element of $variation_array to see the
+/* loop through each element of $variation_array to see the
working of is_scalar on non-scalar values, expected output: bool(false)
*/
$loop_counter = 1;
@@ -113,7 +113,7 @@ var_dump( is_scalar() );
var_dump( is_scalar( $scalar_variables[2], $scalar_variables[2]) );
var_dump( is_scalar( new stdclass, new stdclass) );
-echo "Done\n";
+echo "Done\n";
// close the resources used
fclose($fp);
diff --git a/ext/standard/tests/general_functions/is_string.phpt b/ext/standard/tests/general_functions/is_string.phpt
index b8c82b187b..72a885a57a 100644
--- a/ext/standard/tests/general_functions/is_string.phpt
+++ b/ext/standard/tests/general_functions/is_string.phpt
@@ -7,7 +7,7 @@ Test is_string() function
*/
echo "*** Testing is_string() with valid string values ***\n";
-// different valid strings
+// different valid strings
/* string created using Heredoc (<<<) */
$heredoc_string = <<<EOT
@@ -50,7 +50,7 @@ $strings = array(
$heredoc_empty_string,
$heredoc_null_string
);
-/* loop to check that is_string() recognizes different
+/* loop to check that is_string() recognizes different
strings, expected output bool(true) */
$loop_counter = 1;
foreach ($strings as $string ) {
@@ -70,10 +70,10 @@ $unset_string2 = 'string';
$unset_heredoc = <<<EOT
this is heredoc string
EOT;
-// unset the vars
+// unset the vars
unset($unset_string1, $unset_string2, $unset_heredoc);
-// other types in a array
+// other types in a array
$not_strings = array (
/* integers */
0,
@@ -130,9 +130,9 @@ $not_strings = array (
@$unset_string1,
@$unset_string2,
@$unset_heredoc,
- @$undefined_var
+ @$undefined_var
);
-/* loop through the $not_strings to see working of
+/* loop through the $not_strings to see working of
is_string() on non string types, expected output bool(false) */
$loop_counter = 1;
foreach ($not_strings as $type ) {
@@ -144,9 +144,9 @@ echo "\n*** Testing error conditions ***\n";
//Zero argument
var_dump( is_string() );
-//arguments more than expected
+//arguments more than expected
var_dump( is_string("string", "test") );
-
+
echo "Done\n";
// close the resources used
diff --git a/ext/standard/tests/general_functions/isset_basic1.phpt b/ext/standard/tests/general_functions/isset_basic1.phpt
index 4c03210342..fd3f5be6a0 100644
--- a/ext/standard/tests/general_functions/isset_basic1.phpt
+++ b/ext/standard/tests/general_functions/isset_basic1.phpt
@@ -1,10 +1,10 @@
--TEST--
-Test isset() function : basic functionality
+Test isset() function : basic functionality
--FILE--
<?php
/* Prototype : bool isset ( mixed $var [, mixed $var [, $... ]] )
* Description: Determine if a variable is set and is not NULL
- */
+ */
class foo {}
diff --git a/ext/standard/tests/general_functions/isset_basic2.phpt b/ext/standard/tests/general_functions/isset_basic2.phpt
index 9137aeb922..5f0432b594 100644
--- a/ext/standard/tests/general_functions/isset_basic2.phpt
+++ b/ext/standard/tests/general_functions/isset_basic2.phpt
@@ -1,10 +1,10 @@
--TEST--
-Test isset() function : basic functionality
+Test isset() function : basic functionality
--FILE--
<?php
/* Prototype : bool isset ( mixed $var [, mixed $var [, $... ]] )
* Description: Determine if a variable is set and is not NULL
- */
+ */
class foo {}
@@ -28,14 +28,14 @@ var_dump(isset($i, $f, $s, $b));
echo "\n\nArray test:\n";
$arr = array();
-var_dump(isset($var));
+var_dump(isset($var));
var_dump(isset($var[1]));
-var_dump(isset($var, $var[1]));
+var_dump(isset($var, $var[1]));
echo "..now set\n";
$var[1] = 10;
-var_dump(isset($var));
-var_dump(isset($var[1]));
-var_dump(isset($var, $var[1]));
+var_dump(isset($var));
+var_dump(isset($var[1]));
+var_dump(isset($var, $var[1]));
?>
===DONE===
diff --git a/ext/standard/tests/general_functions/ob_get_flush_basic.phpt b/ext/standard/tests/general_functions/ob_get_flush_basic.phpt
index dbda1d9e66..1c62340970 100644
--- a/ext/standard/tests/general_functions/ob_get_flush_basic.phpt
+++ b/ext/standard/tests/general_functions/ob_get_flush_basic.phpt
@@ -1,13 +1,13 @@
--TEST--
-Test ob_get_flush() function : basic functionality
+Test ob_get_flush() function : basic functionality
--INI--
output_buffering=0
--FILE--
<?php
/* Prototype : bool ob_get_flush(void)
- * Description: Get current buffer contents, flush (send) the output buffer, and delete current output buffer
+ * Description: Get current buffer contents, flush (send) the output buffer, and delete current output buffer
* Source code: main/output.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing ob_get_flush() : basic functionality ***\n";
diff --git a/ext/standard/tests/general_functions/ob_get_flush_error.phpt b/ext/standard/tests/general_functions/ob_get_flush_error.phpt
index 1d3538120d..0664043eba 100644
--- a/ext/standard/tests/general_functions/ob_get_flush_error.phpt
+++ b/ext/standard/tests/general_functions/ob_get_flush_error.phpt
@@ -1,13 +1,13 @@
--TEST--
-Test ob_get_flush() function : error conditions
+Test ob_get_flush() function : error conditions
--INI--
output_buffering=0
--FILE--
<?php
/* Prototype : bool ob_get_flush(void)
- * Description: Get current buffer contents, flush (send) the output buffer, and delete current output buffer
+ * Description: Get current buffer contents, flush (send) the output buffer, and delete current output buffer
* Source code: main/output.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing ob_get_flush() : error conditions ***\n";
diff --git a/ext/standard/tests/general_functions/ob_get_length_basic.phpt b/ext/standard/tests/general_functions/ob_get_length_basic.phpt
index 9b3e8fb465..b3470bec55 100644
--- a/ext/standard/tests/general_functions/ob_get_length_basic.phpt
+++ b/ext/standard/tests/general_functions/ob_get_length_basic.phpt
@@ -1,13 +1,13 @@
--TEST--
-Test ob_get_length() function : basic functionality
+Test ob_get_length() function : basic functionality
--INI--
output_buffering=0
--FILE--
<?php
/* Prototype : int ob_get_length(void)
- * Description: Return the length of the output buffer
+ * Description: Return the length of the output buffer
* Source code: main/output.c
- * Alias to functions:
+ * Alias to functions:
*/
function dump_string_length( $string )
diff --git a/ext/standard/tests/general_functions/parse_ini_basic.phpt b/ext/standard/tests/general_functions/parse_ini_basic.phpt
index f5a18c457e..8d7b2f8a22 100644
--- a/ext/standard/tests/general_functions/parse_ini_basic.phpt
+++ b/ext/standard/tests/general_functions/parse_ini_basic.phpt
@@ -14,7 +14,7 @@ var_dump(parse_ini_file($ini_file, 1));
echo "Done.\n";
?>
---EXPECT--
+--EXPECT--
array(26) {
["basic"]=>
array(15) {
diff --git a/ext/standard/tests/general_functions/parse_ini_booleans.phpt b/ext/standard/tests/general_functions/parse_ini_booleans.phpt
index 530e186a99..5b854c3f41 100644
--- a/ext/standard/tests/general_functions/parse_ini_booleans.phpt
+++ b/ext/standard/tests/general_functions/parse_ini_booleans.phpt
@@ -10,7 +10,7 @@ var_dump(parse_ini_file($ini_file, 1));
echo "Done.\n";
?>
---EXPECT--
+--EXPECT--
array(3) {
["error_reporting values"]=>
array(6) {
diff --git a/ext/standard/tests/general_functions/parse_ini_file.phpt b/ext/standard/tests/general_functions/parse_ini_file.phpt
index fb12c3f139..ebc714455d 100644
--- a/ext/standard/tests/general_functions/parse_ini_file.phpt
+++ b/ext/standard/tests/general_functions/parse_ini_file.phpt
@@ -120,7 +120,7 @@ var_dump(parse_ini_file($filename, true));
@unlink($filename);
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: parse_ini_file() expects at least 1 parameter, 0 given in %sparse_ini_file.php on line 6
bool(false)
diff --git a/ext/standard/tests/general_functions/parse_ini_string_001.phpt b/ext/standard/tests/general_functions/parse_ini_string_001.phpt
index e5e402b8fc..e435442b7a 100644
--- a/ext/standard/tests/general_functions/parse_ini_string_001.phpt
+++ b/ext/standard/tests/general_functions/parse_ini_string_001.phpt
@@ -4,7 +4,7 @@ Test parse_ini_string() function
<?php
/* Prototype: array parse_ini_string(string $string [,bool $process_sections]);
Description: parse_ini_string() loads in the ini file specified in filename,
- and returns the settings in it in an associative array.
+ and returns the settings in it in an associative array.
*/
$parse_string = <<<EOD
diff --git a/ext/standard/tests/general_functions/parse_ini_string_002.phpt b/ext/standard/tests/general_functions/parse_ini_string_002.phpt
index 98c9c0b359..106cd0c842 100644
--- a/ext/standard/tests/general_functions/parse_ini_string_002.phpt
+++ b/ext/standard/tests/general_functions/parse_ini_string_002.phpt
@@ -86,7 +86,7 @@ var_dump(parse_ini_string($ini, true));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: parse_ini_string() expects at least 1 parameter, 0 given in %s
bool(false)
diff --git a/ext/standard/tests/general_functions/php_uname_error.phpt b/ext/standard/tests/general_functions/php_uname_error.phpt
index ca4c3d4022..2f671cd016 100644
--- a/ext/standard/tests/general_functions/php_uname_error.phpt
+++ b/ext/standard/tests/general_functions/php_uname_error.phpt
@@ -13,7 +13,7 @@ var_dump( php_uname('a', true) );
echo "\n-- Testing php_uname() function with invalid mode --\n";
// am invalid mode should result in same o/p as mode 'a'
-var_dump( php_uname('z') == php_uname('z') );
+var_dump( php_uname('z') == php_uname('z') );
class barClass {
}
diff --git a/ext/standard/tests/general_functions/php_uname_variation1.phpt b/ext/standard/tests/general_functions/php_uname_variation1.phpt
index d94fd80049..4a47827657 100644
--- a/ext/standard/tests/general_functions/php_uname_variation1.phpt
+++ b/ext/standard/tests/general_functions/php_uname_variation1.phpt
@@ -26,34 +26,34 @@ $values = array(
"1" => 1,
"12345" => 12345,
"-2345" => -2345,
-
+
// float data
"10.5" => 10.5,
"-10.5" => -10.5,
"10.1234567e10" => 10.1234567e10,
"10.7654321E-10" => 10.7654321E-10,
".5" => .5,
-
+
// null data
"NULL" => NULL,
"null" => null,
-
+
// boolean data
"true" => true,
"false" => false,
"TRUE" => TRUE,
"FALSE" => FALSE,
-
+
// empty data
"\"\"" => "",
"''" => '',
-
+
// object data
"new fooClass()" => new fooClass(),
-
+
// undefined data
"undefined var" => $undefined_var,
-
+
// unset data
"unset var" => $unset_var,
);
diff --git a/ext/standard/tests/general_functions/print_r.phpt b/ext/standard/tests/general_functions/print_r.phpt
index 5069dd33f1..fe02a97c18 100644
--- a/ext/standard/tests/general_functions/print_r.phpt
+++ b/ext/standard/tests/general_functions/print_r.phpt
@@ -24,9 +24,9 @@ function check_printr( $variables ) {
$counter++;
}
}
-
+
echo "\n*** Testing print_r() on integer variables ***\n";
-$integers = array (
+$integers = array (
0, // zero as argument
000000123, //octal value of 83
123000000,
@@ -42,7 +42,7 @@ $integers = array (
-0x80000000, // min range of hexadecimal integer
017777777777, // max posotive octal integer
-020000000000 // min range of octal integer
-);
+);
/* calling check_printr() to display contents of integer variables
using print_r() */
check_printr($integers);
@@ -80,7 +80,7 @@ $floats = array (
-0x80000001, // float value, beyond max negative int
0x80000001, // float value, beyond max positive int
020000000001, // float value, beyond max positive int
- -020000000001 // float value, beyond max negative int
+ -020000000001 // float value, beyond max negative int
);
/* calling check_printr() to display contents of float variables
using print_r() */
@@ -112,7 +112,7 @@ $booleans = array (
FALSE,
true,
false
-);
+);
/* calling check_printr() to display boolean variables using print_r() */
check_printr($booleans);
var_dump( reset($booleans) );
@@ -227,7 +227,7 @@ print_r($recursion_obj2);
echo "\n*** Testing print_r() on resources ***\n";
/* file type resource */
-$file_handle = fopen(__FILE__, "r");
+$file_handle = fopen(__FILE__, "r");
/* directory type resource */
$dir_handle = opendir( dirname(__FILE__) );
@@ -255,9 +255,9 @@ $variations = array (
array( new no_member_class, array(), false, 0 ),
array( -0.00, "Where am I?", array(7,8,9), TRUE, 'A', 987654321 ),
array( @$unset_var, 2.E+10, 100-20.9, 000004.599998 ), //unusual data
- array( "array(1,2,3,4)1.0000002TRUE", @$file_handle, 111333.00+45e5, '/00\7')
+ array( "array(1,2,3,4)1.0000002TRUE", @$file_handle, 111333.00+45e5, '/00\7')
);
-/* calling check_printr() to display combinations of scalar and
+/* calling check_printr() to display combinations of scalar and
non-scalar variables using print_r() */
check_printr($variations);
diff --git a/ext/standard/tests/general_functions/print_r_64bit.phpt b/ext/standard/tests/general_functions/print_r_64bit.phpt
index 3054e0a431..25776dd3ba 100644
--- a/ext/standard/tests/general_functions/print_r_64bit.phpt
+++ b/ext/standard/tests/general_functions/print_r_64bit.phpt
@@ -29,9 +29,9 @@ function check_printr( $variables ) {
$counter++;
}
}
-
+
echo "\n*** Testing print_r() on integer variables ***\n";
-$integers = array (
+$integers = array (
0, // zero as argument
000000123, //octal value of 83
123000000,
@@ -47,7 +47,7 @@ $integers = array (
-0x80000000, // min range of hexadecimal integer
017777777777, // max posotive octal integer
-020000000000 // min range of octal integer
-);
+);
/* calling check_printr() to display contents of integer variables
using print_r() */
check_printr($integers);
@@ -85,7 +85,7 @@ $floats = array (
-0x80000001, // float value, beyond max negative int
0x80000001, // float value, beyond max positive int
020000000001, // float value, beyond max positive int
- -020000000001 // float value, beyond max negative int
+ -020000000001 // float value, beyond max negative int
);
/* calling check_printr() to display contents of float variables
using print_r() */
@@ -117,7 +117,7 @@ $booleans = array (
FALSE,
true,
false
-);
+);
/* calling check_printr() to display boolean variables using print_r() */
check_printr($booleans);
var_dump( reset($booleans) );
@@ -232,7 +232,7 @@ print_r($recursion_obj2);
echo "\n*** Testing print_r() on resources ***\n";
/* file type resource */
-$file_handle = fopen(__FILE__, "r");
+$file_handle = fopen(__FILE__, "r");
/* directory type resource */
$dir_handle = opendir( dirname(__FILE__) );
@@ -260,9 +260,9 @@ $variations = array (
array( new no_member_class, array(), false, 0 ),
array( -0.00, "Where am I?", array(7,8,9), TRUE, 'A', 987654321 ),
array( @$unset_var, 2.E+10, 100-20.9, 000004.599998 ), //unusual data
- array( "array(1,2,3,4)1.0000002TRUE", @$file_handle, 111333.00+45e5, '/00\7')
+ array( "array(1,2,3,4)1.0000002TRUE", @$file_handle, 111333.00+45e5, '/00\7')
);
-/* calling check_printr() to display combinations of scalar and
+/* calling check_printr() to display combinations of scalar and
non-scalar variables using print_r() */
check_printr($variations);
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 539eea202e..87a4545501 100644
--- a/ext/standard/tests/general_functions/proc_nice_basic-win.phpt
+++ b/ext/standard/tests/general_functions/proc_nice_basic-win.phpt
@@ -45,7 +45,7 @@ function get_priority_from_wmic() {
$f = false;
$m = [
- strpos($t[0], ' ProcessId' ),
+ strpos($t[0], ' ProcessId' ),
strpos($t[0], ' Priority ')
];
@@ -71,10 +71,10 @@ function get_priority_from_wmic() {
$p = [
/* '<verbose name>' => ['<wmic value>', '<proc_nice value>'] */
- 'Idle' => [4, 10],
- 'Below normal' => [6, 5],
- 'Normal' => [8, 0],
- 'Above normal' => [10, -5],
+ 'Idle' => [4, 10],
+ 'Below normal' => [6, 5],
+ 'Normal' => [8, 0],
+ 'Above normal' => [10, -5],
'High priority' => [13, -10]
];
diff --git a/ext/standard/tests/general_functions/proc_open_pipes1.phpt b/ext/standard/tests/general_functions/proc_open_pipes1.phpt
index dc104283eb..f3335bc8ce 100644
--- a/ext/standard/tests/general_functions/proc_open_pipes1.phpt
+++ b/ext/standard/tests/general_functions/proc_open_pipes1.phpt
@@ -1,5 +1,5 @@
--TEST--
-proc_open() with > 16 pipes
+proc_open() with > 16 pipes
--FILE--
<?php
diff --git a/ext/standard/tests/general_functions/proc_open_pipes2.phpt b/ext/standard/tests/general_functions/proc_open_pipes2.phpt
index bc8f29b6fe..21734773a3 100644
--- a/ext/standard/tests/general_functions/proc_open_pipes2.phpt
+++ b/ext/standard/tests/general_functions/proc_open_pipes2.phpt
@@ -1,5 +1,5 @@
--TEST--
-proc_open() with no pipes
+proc_open() with no pipes
--FILE--
<?php
diff --git a/ext/standard/tests/general_functions/proc_open_pipes3.phpt b/ext/standard/tests/general_functions/proc_open_pipes3.phpt
index 6e90471bdc..d64987018b 100644
--- a/ext/standard/tests/general_functions/proc_open_pipes3.phpt
+++ b/ext/standard/tests/general_functions/proc_open_pipes3.phpt
@@ -1,5 +1,5 @@
--TEST--
-proc_open() with invalid pipes
+proc_open() with invalid pipes
--FILE--
<?php
diff --git a/ext/standard/tests/general_functions/putenv.phpt b/ext/standard/tests/general_functions/putenv.phpt
index 254207320b..ab2c1b41f7 100644
--- a/ext/standard/tests/general_functions/putenv.phpt
+++ b/ext/standard/tests/general_functions/putenv.phpt
@@ -20,7 +20,7 @@ var_dump(putenv(""));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
bool(false)
bool(true)
string(5) "value"
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 08ac2f1d01..69c455d076 100644
--- a/ext/standard/tests/general_functions/putenv_bug75574_cp936_win.phpt
+++ b/ext/standard/tests/general_functions/putenv_bug75574_cp936_win.phpt
@@ -35,7 +35,7 @@ var_dump(putenv('FOO=°¡a°¡°¡°¡°¡'), getenv("FOO"));
?>
===DONE===
---EXPECT--
+--EXPECT--
bool(true)
string(2) "°¡"
bool(true)
diff --git a/ext/standard/tests/general_functions/putenv_bug75574_utf8.phpt b/ext/standard/tests/general_functions/putenv_bug75574_utf8.phpt
index 76c6db5468..ea8a0ab119 100644
--- a/ext/standard/tests/general_functions/putenv_bug75574_utf8.phpt
+++ b/ext/standard/tests/general_functions/putenv_bug75574_utf8.phpt
@@ -24,7 +24,7 @@ var_dump(putenv('FOO=å•Šaå•Šå•Šå•Šå•Š'), getenv("FOO"));
?>
===DONE===
---EXPECT--
+--EXPECT--
bool(true)
string(3) "å•Š"
bool(true)
diff --git a/ext/standard/tests/general_functions/rand.phpt b/ext/standard/tests/general_functions/rand.phpt
index 93faf3ac16..e6639a71c7 100644
--- a/ext/standard/tests/general_functions/rand.phpt
+++ b/ext/standard/tests/general_functions/rand.phpt
@@ -29,7 +29,7 @@ var_dump(mt_getrandmax(1));
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
int(%d)
Warning: mt_rand() expects exactly 2 parameters, 1 given in %s on line %d
diff --git a/ext/standard/tests/general_functions/sleep_basic.phpt b/ext/standard/tests/general_functions/sleep_basic.phpt
index ac0b1d7db2..0ef0e7c213 100644
--- a/ext/standard/tests/general_functions/sleep_basic.phpt
+++ b/ext/standard/tests/general_functions/sleep_basic.phpt
@@ -1,5 +1,5 @@
--TEST--
-Test sleep() function : basic functionality
+Test sleep() function : basic functionality
--SKIPIF--
<?php
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
@@ -7,7 +7,7 @@ if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
--FILE--
<?php
/* Prototype : int sleep ( int $seconds )
- * Description: Delays the program execution for the given number of seconds .
+ * Description: Delays the program execution for the given number of seconds .
* Source code: ext/standard/basic_functions.c
*/
@@ -15,14 +15,14 @@ echo "*** Testing sleep() : basic functionality ***\n";
$sleeptime = 1; // sleep for 1 seconds
-set_time_limit(20);
+set_time_limit(20);
$time_start = microtime(true);
// Sleep for a while
sleep($sleeptime);
-// Test passes if sleeps for at least 98% of specified time
+// Test passes if sleeps for at least 98% of specified time
$sleeplow = $sleeptime - ($sleeptime * 2 /100);
$time_end = microtime(true);
diff --git a/ext/standard/tests/general_functions/sleep_error.phpt b/ext/standard/tests/general_functions/sleep_error.phpt
index 199bd8e9bc..c4f069a3d2 100644
--- a/ext/standard/tests/general_functions/sleep_error.phpt
+++ b/ext/standard/tests/general_functions/sleep_error.phpt
@@ -1,13 +1,13 @@
--TEST--
-Test sleep() function : error conditions
+Test sleep() function : error conditions
--FILE--
<?php
/* Prototype : int sleep ( int $seconds )
- * Description: Delays the program execution for the given number of seconds .
+ * Description: Delays the program execution for the given number of seconds .
* Source code: ext/standard/basic_functions.c
*/
set_time_limit(20);
-
+
echo "*** Testing sleep() : error conditions ***\n";
echo "\n-- Testing sleep() function with zero arguments --\n";
diff --git a/ext/standard/tests/general_functions/strval.phpt b/ext/standard/tests/general_functions/strval.phpt
index ee5313aaae..b814733dd0 100644
--- a/ext/standard/tests/general_functions/strval.phpt
+++ b/ext/standard/tests/general_functions/strval.phpt
@@ -21,27 +21,27 @@ EOD;
/* null heredoc string */
$heredoc_empty_string = <<<EOD
EOD;
-/* heredoc string with NULL */
+/* heredoc string with NULL */
$heredoc_NULL_string = <<<EOD
NULL
EOD;
-// different valid scalar values
+// different valid scalar values
$scalars = array(
/* integers */
0,
1,
-1,
-2147483648, // max negative integer value
- -2147483647,
+ -2147483647,
2147483647, // max positive integer value
2147483640,
0x123B, // integer as hexadecimal
0x12ab,
0Xfff,
0XFA,
-
- /* floats */
+
+ /* floats */
-0x80000000, // max negative integer as hexadecimal
0x7fffffff, // max positive integer as hexadecimal
0x7FFFFFFF, // max positive integer as hexadecimal
@@ -66,12 +66,12 @@ $scalars = array(
.0034E-30,
/* booleans */
- true,
+ true,
TRUE,
FALSE,
- false,
+ false,
- /* strings */
+ /* strings */
"",
'',
" ",
@@ -91,11 +91,11 @@ $scalars = array(
"true",
/*"\0123",
"\0x12FF",*/
- $heredoc_string,
+ $heredoc_string,
$heredoc_numeric_string,
$heredoc_empty_string
);
-/* loop to check that strval() recognizes different
+/* loop to check that strval() recognizes different
scalar values and returns the string conversion of same */
$loop_counter = 1;
foreach ($scalars as $scalar ) {
@@ -112,7 +112,7 @@ $dfp = opendir( dirname(__FILE__) );
$unset_var = 10;
unset ($unset_var);
-// non_scalar values, objects, arrays, resources and boolean
+// non_scalar values, objects, arrays, resources and boolean
class foo
{
function __toString() {
@@ -133,7 +133,7 @@ $not_scalars = array (
@$unset_var, // unset variable
@$undefined_var
);
-/* loop through the $not_scalars to see working of
+/* loop through the $not_scalars to see working of
strval() on objects, arrays, boolean and others */
$loop_counter = 1;
foreach ($not_scalars as $value ) {
@@ -145,9 +145,9 @@ echo "\n*** Testing error conditions ***\n";
//Zero argument
var_dump( strval() );
-//arguments more than expected
+//arguments more than expected
var_dump( strval( $scalars[0], $scalars[1]) );
-
+
echo "Done\n";
// close the resources used
diff --git a/ext/standard/tests/general_functions/type.phpt b/ext/standard/tests/general_functions/type.phpt
index ac29a1bf38..90bfb45f28 100644
--- a/ext/standard/tests/general_functions/type.phpt
+++ b/ext/standard/tests/general_functions/type.phpt
@@ -54,7 +54,7 @@ foreach ($types as $type) {
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
string(5) "array"
string(6) "string"
string(5) "array"
diff --git a/ext/standard/tests/general_functions/uniqid_basic.phpt b/ext/standard/tests/general_functions/uniqid_basic.phpt
index 2da832b8ed..285365ab60 100644
--- a/ext/standard/tests/general_functions/uniqid_basic.phpt
+++ b/ext/standard/tests/general_functions/uniqid_basic.phpt
@@ -3,7 +3,7 @@ Test uniqid() function : basic functionality
--FILE--
<?php
/* Prototype : string uniqid ([ string $prefix= "" [, bool $more_entropy= false ]] )
- * Description: Gets a prefixed unique identifier based on the current time in microseconds.
+ * Description: Gets a prefixed unique identifier based on the current time in microseconds.
* Source code: ext/standard/uniqid.c
*/
echo "*** Testing uniqid() : basic functionality ***\n";
@@ -16,26 +16,26 @@ echo "\n\n";
echo "uniqid() with a prefix\n";
-// Use a fixed prefix so we can ensure length of o/p id is fixed
+// Use a fixed prefix so we can ensure length of o/p id is fixed
$prefix = array (
99999,
"99999",
10.5e2,
null,
true,
- false
+ false
);
-for ($i = 0; $i < count($prefix); $i++) {
+for ($i = 0; $i < count($prefix); $i++) {
var_dump(uniqid($prefix[$i]));
var_dump(uniqid($prefix[$i], true));
var_dump(uniqid($prefix[$i], false));
echo "\n";
-}
+}
?>
===DONE===
---EXPECTF--
+--EXPECTF--
*** Testing uniqid() : basic functionality ***
uniqid() without a prefix
diff --git a/ext/standard/tests/general_functions/uniqid_error.phpt b/ext/standard/tests/general_functions/uniqid_error.phpt
index 8f7f22d7d3..388bc42599 100644
--- a/ext/standard/tests/general_functions/uniqid_error.phpt
+++ b/ext/standard/tests/general_functions/uniqid_error.phpt
@@ -3,7 +3,7 @@ Test uniqid() function : error conditions
--FILE--
<?php
/* Prototype : string uniqid ([ string $prefix= "" [, bool $more_entropy= false ]] )
- * Description: Gets a prefixed unique identifier based on the current time in microseconds.
+ * Description: Gets a prefixed unique identifier based on the current time in microseconds.
* Source code: ext/standard/uniqid.c
*/
echo "*** Testing uniqid() : error conditions ***\n";
@@ -17,7 +17,7 @@ var_dump(uniqid($prefix, $more_entropy, $extra_arg));
echo "\n-- Testing uniqid() function with invalid values for \$prefix --\n";
class class1{}
$obj = new class1();
-$res = fopen(__FILE__, "r");
+$res = fopen(__FILE__, "r");
$array = array(1,2,3);
uniqid($array, false);
@@ -28,7 +28,7 @@ fclose($res);
?>
===DONE===
---EXPECTF--
+--EXPECTF--
*** Testing uniqid() : error conditions ***
-- Testing uniqid() function with more than expected no. of arguments --
diff --git a/ext/standard/tests/general_functions/usleep_basic.phpt b/ext/standard/tests/general_functions/usleep_basic.phpt
index bec1dfa1d7..17822376ad 100644
--- a/ext/standard/tests/general_functions/usleep_basic.phpt
+++ b/ext/standard/tests/general_functions/usleep_basic.phpt
@@ -7,16 +7,16 @@ if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
--FILE--
<?php
/* Prototype : void usleep ( int $micro_seconds )
- * Description: Delays program execution for the given number of micro seconds.
+ * Description: Delays program execution for the given number of micro seconds.
* Source code: ext/standard/basic_functions.c
*/
-
+
set_time_limit(20);
-
+
echo "*** Testing usleep() : basic functionality ***\n";
$sleeptime = 1000000; // == 1 seconds
-// Test passes if sleeps for at least 98% of specified time
+// Test passes if sleeps for at least 98% of specified time
$sleeplow = $sleeptime - ($sleeptime * 2 /100);
$time_start = microtime(true);
diff --git a/ext/standard/tests/general_functions/usleep_error.phpt b/ext/standard/tests/general_functions/usleep_error.phpt
index bdd120cde9..474aab7d5d 100644
--- a/ext/standard/tests/general_functions/usleep_error.phpt
+++ b/ext/standard/tests/general_functions/usleep_error.phpt
@@ -1,13 +1,13 @@
--TEST--
-Test usleep() function : error conditions
+Test usleep() function : error conditions
--FILE--
<?php
/* Prototype : void usleep ( int $micro_seconds )
- * Description: Delays program execution for the given number of micro seconds.
+ * Description: Delays program execution for the given number of micro seconds.
* Source code: ext/standard/basic_functions.c
*/
-
-set_time_limit(20);
+
+set_time_limit(20);
echo "*** Testing usleep() : error conditions ***\n";
diff --git a/ext/standard/tests/general_functions/var_dump.phpt b/ext/standard/tests/general_functions/var_dump.phpt
index 78c862b77d..b12f5f579f 100644
--- a/ext/standard/tests/general_functions/var_dump.phpt
+++ b/ext/standard/tests/general_functions/var_dump.phpt
@@ -22,9 +22,9 @@ function check_vardump( $variables ) {
$counter++;
}
}
-
+
echo "\n*** Testing var_dump() on integer variables ***\n";
-$integers = array (
+$integers = array (
0, // zero as argument
000000123, //octal value of 83
123000000,
@@ -40,8 +40,8 @@ $integers = array (
-0x80000000, // min range of hexadecimal integer
017777777777, // max posotive octal integer
-020000000000 // min range of octal integer
-);
-/* calling check_vardump() to display contents of integer variables
+);
+/* calling check_vardump() to display contents of integer variables
using var_dump() */
check_vardump($integers);
@@ -78,9 +78,9 @@ $floats = array (
-0x80000001, // float value, beyond max negative int
0x80000001, // float value, beyond max positive int
020000000001, // float value, beyond max positive int
- -020000000001 // float value, beyond max negative int
+ -020000000001 // float value, beyond max negative int
);
-/* calling check_vardump() to display contents of float variables
+/* calling check_vardump() to display contents of float variables
using var_dump() */
check_vardump($floats);
@@ -101,7 +101,7 @@ $strings = array (
"abcd\0efgh\0ijkl\x00mnop\x000qrst\00uvwx\0000yz", // strings with octal NULL
"1234\t\n5678\n\t9100\rabcda" // strings with escape characters
);
-/* calling check_vardump() to display contents of strings
+/* calling check_vardump() to display contents of strings
using var_dump() */
check_vardump($strings);
@@ -111,7 +111,7 @@ $booleans = array (
FALSE,
true,
false
-);
+);
/* calling check_vardump() to display boolean variables
using var_dump() */
check_vardump($booleans);
@@ -226,7 +226,7 @@ var_dump($recursion_obj2);
echo "\n*** Testing var_dump() on resources ***\n";
/* file type resource */
-$file_handle = fopen(__FILE__, "r");
+$file_handle = fopen(__FILE__, "r");
/* directory type resource */
$dir_handle = opendir( dirname(__FILE__) );
@@ -254,7 +254,7 @@ $variations = array (
array( new no_member_class, array(), false, 0 ),
array( -0.00, "Where am I?", array(7,8,9), TRUE, 'A', 987654321 ),
array( @$unset_var, 2.E+10, 100-20.9, 000004.599998 ), //unusual data
- array( "array(1,2,3,4)1.0000002TRUE", @$file_handle, 111333.00+45e5, '/00\7')
+ array( "array(1,2,3,4)1.0000002TRUE", @$file_handle, 111333.00+45e5, '/00\7')
);
/* calling check_vardump() to display combinations of scalar and
non-scalar variables using var_dump() */
@@ -271,7 +271,7 @@ $misc_values = array (
check_vardump($misc_values);
echo "\n*** Testing var_dump() on multiple arguments ***\n";
-var_dump( $integers, $floats, $strings, $arrays, $booleans, $resources,
+var_dump( $integers, $floats, $strings, $arrays, $booleans, $resources,
$objects, $misc_values, $variations );
/* checking var_dump() on functions */
@@ -287,7 +287,7 @@ echo "\n*** Testing error conditions ***\n";
var_dump();
/* closing resource handle used */
-closedir($dir_handle);
+closedir($dir_handle);
echo "Done\n";
?>
diff --git a/ext/standard/tests/general_functions/var_dump_64bit.phpt b/ext/standard/tests/general_functions/var_dump_64bit.phpt
index 3b8212204a..a7f61ec063 100644
--- a/ext/standard/tests/general_functions/var_dump_64bit.phpt
+++ b/ext/standard/tests/general_functions/var_dump_64bit.phpt
@@ -22,9 +22,9 @@ function check_vardump( $variables ) {
$counter++;
}
}
-
+
echo "\n*** Testing var_dump() on integer variables ***\n";
-$integers = array (
+$integers = array (
0, // zero as argument
000000123, //octal value of 83
123000000,
@@ -40,8 +40,8 @@ $integers = array (
-0x80000000, // min range of hexadecimal integer
017777777777, // max posotive octal integer
-020000000000 // min range of octal integer
-);
-/* calling check_vardump() to display contents of integer variables
+);
+/* calling check_vardump() to display contents of integer variables
using var_dump() */
check_vardump($integers);
@@ -78,9 +78,9 @@ $floats = array (
-0x80000001, // float value, beyond max negative int
0x80000001, // float value, beyond max positive int
020000000001, // float value, beyond max positive int
- -020000000001 // float value, beyond max negative int
+ -020000000001 // float value, beyond max negative int
);
-/* calling check_vardump() to display contents of float variables
+/* calling check_vardump() to display contents of float variables
using var_dump() */
check_vardump($floats);
@@ -101,7 +101,7 @@ $strings = array (
"abcd\0efgh\0ijkl\x00mnop\x000qrst\00uvwx\0000yz", // strings with octal NULL
"1234\t\n5678\n\t9100\rabcda" // strings with escape characters
);
-/* calling check_vardump() to display contents of strings
+/* calling check_vardump() to display contents of strings
using var_dump() */
check_vardump($strings);
@@ -111,7 +111,7 @@ $booleans = array (
FALSE,
true,
false
-);
+);
/* calling check_vardump() to display boolean variables
using var_dump() */
check_vardump($booleans);
@@ -226,7 +226,7 @@ var_dump($recursion_obj2);
echo "\n*** Testing var_dump() on resources ***\n";
/* file type resource */
-$file_handle = fopen(__FILE__, "r");
+$file_handle = fopen(__FILE__, "r");
/* directory type resource */
$dir_handle = opendir( dirname(__FILE__) );
@@ -254,7 +254,7 @@ $variations = array (
array( new no_member_class, array(), false, 0 ),
array( -0.00, "Where am I?", array(7,8,9), TRUE, 'A', 987654321 ),
array( @$unset_var, 2.E+10, 100-20.9, 000004.599998 ), //unusual data
- array( "array(1,2,3,4)1.0000002TRUE", @$file_handle, 111333.00+45e5, '/00\7')
+ array( "array(1,2,3,4)1.0000002TRUE", @$file_handle, 111333.00+45e5, '/00\7')
);
/* calling check_vardump() to display combinations of scalar and
non-scalar variables using var_dump() */
@@ -271,7 +271,7 @@ $misc_values = array (
check_vardump($misc_values);
echo "\n*** Testing var_dump() on multiple arguments ***\n";
-var_dump( $integers, $floats, $strings, $arrays, $booleans, $resources,
+var_dump( $integers, $floats, $strings, $arrays, $booleans, $resources,
$objects, $misc_values, $variations );
/* checking var_dump() on functions */
@@ -287,7 +287,7 @@ echo "\n*** Testing error conditions ***\n";
var_dump();
/* closing resource handle used */
-closedir($dir_handle);
+closedir($dir_handle);
echo "Done\n";
?>
diff --git a/ext/standard/tests/general_functions/var_export-locale.phpt b/ext/standard/tests/general_functions/var_export-locale.phpt
index e440238970..e8939f1d0a 100644
--- a/ext/standard/tests/general_functions/var_export-locale.phpt
+++ b/ext/standard/tests/general_functions/var_export-locale.phpt
@@ -17,13 +17,13 @@ setlocale(LC_ALL, "german", "de","de_DE","de_DE.ISO8859-1","de_DE.ISO_8859-1","d
*/
echo "*** Testing var_export() with integer values ***\n";
-// different integer values
+// different integer values
$valid_ints = array(
'0',
'1',
'-1',
'-2147483648', // max negative integer value
- '-2147483647',
+ '-2147483647',
2147483647, // max positive integer value
2147483640,
0x123B, // integer as hexadecimal
@@ -53,11 +53,11 @@ $counter++;
}
echo "*** Testing var_export() with valid boolean values ***\n";
-// different valid boolean values
+// different valid boolean values
$valid_bool = array(
1,
TRUE,
- true,
+ true,
0,
FALSE,
false
@@ -77,7 +77,7 @@ $counter++;
}
echo "*** Testing var_export() with valid float values ***\n";
-// different valid float values
+// different valid float values
$valid_floats = array(
(float)-2147483649, // float value
(float)2147483648, // float value
@@ -115,7 +115,7 @@ $counter++;
}
echo "*** Testing var_export() with valid strings ***\n";
-// different valid string
+// different valid string
$valid_strings = array(
"",
" ",
@@ -148,7 +148,7 @@ $counter++;
}
echo "*** Testing var_export() with valid arrays ***\n";
-// different valid arrays
+// different valid arrays
$valid_arrays = array(
array(),
array(NULL),
@@ -185,7 +185,7 @@ echo "*** Testing var_export() with valid objects ***\n";
// class with no members
class foo
{
-// no members
+// no members
}
// abstract class
@@ -204,28 +204,28 @@ class concreteClass extends abstractClass
}
}
-// interface class
+// interface class
interface iValue
{
- public function setVal ($name, $val);
+ public function setVal ($name, $val);
public function dumpVal ();
}
// implement the interface
class Value implements iValue
{
private $vars = array ();
-
+
public function setVal ( $name, $val ) {
$this->vars[$name] = $val;
}
-
+
public function dumpVal () {
var_export ( $vars );
}
}
-// a gereral class
-class myClass
+// a gereral class
+class myClass
{
var $foo_object;
public $public_var;
@@ -239,7 +239,7 @@ class myClass
$this->public_var1 = new foo();
$this->private_var = new foo();
$this->proected_var = new foo();
- }
+ }
}
// create a object of each class defined above
@@ -260,7 +260,7 @@ $valid_objects = array(
$foo_object,
$Value_object,
$concreteClass_object
- );
+ );
$counter = 1;
/* Loop to check for above objects with var_export() */
echo "\n*** Output for objects ***\n";
@@ -274,9 +274,9 @@ var_dump( var_export( $obj, TRUE) );
echo "\n";
$counter++;
}
-
+
echo "*** Testing var_export() with valid null values ***\n";
-// different valid null values
+// different valid null values
$unset_var = array();
unset ($unset_var); // now a null
$null_var = NULL;
@@ -304,9 +304,9 @@ echo "\n*** Testing error conditions ***\n";
//Zero argument
var_export( var_export() );
-//arguments more than expected
+//arguments more than expected
var_export( var_export(TRUE, FALSE, TRUE) );
-
+
echo "\n\nDone";
diff --git a/ext/standard/tests/general_functions/var_export_basic1.phpt b/ext/standard/tests/general_functions/var_export_basic1.phpt
index 5f5f09bb2d..bee1843989 100644
--- a/ext/standard/tests/general_functions/var_export_basic1.phpt
+++ b/ext/standard/tests/general_functions/var_export_basic1.phpt
@@ -3,19 +3,19 @@ Test var_export() function with integer values
--FILE--
<?php
/* Prototype : mixed var_export(mixed var [, bool return])
- * Description: Outputs or returns a string representation of a variable
+ * Description: Outputs or returns a string representation of a variable
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing var_export() with integer values ***\n";
-// different integer values
+// different integer values
$valid_ints = array(
'0' => '0',
'1' => '1',
'-1' => '-1',
'-2147483648' => '-2147483648', // max negative integer value
- '-2147483647' => '-2147483647',
+ '-2147483647' => '-2147483647',
'2147483647' => 2147483647, // max positive integer value
'2147483640' => 2147483640,
'0x123B' => 0x123B, // integer as hexadecimal
diff --git a/ext/standard/tests/general_functions/var_export_basic2.phpt b/ext/standard/tests/general_functions/var_export_basic2.phpt
index d1c731fd3f..6dfb08f082 100644
--- a/ext/standard/tests/general_functions/var_export_basic2.phpt
+++ b/ext/standard/tests/general_functions/var_export_basic2.phpt
@@ -4,22 +4,22 @@ Test var_export() function with valid boolean values
<?php
/* Prototype : mixed var_export(mixed var [, bool return])
- * Description: Outputs or returns a string representation of a variable
+ * Description: Outputs or returns a string representation of a variable
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing var_export() with valid boolean values ***\n";
-// different valid boolean values
+// different valid boolean values
$valid_bool = array(
"1" => 1,
"TRUE" => TRUE,
- "true" => true,
+ "true" => true,
"0" => 0,
"FALSE" => FALSE,
"false" => false
);
-
+
/* Loop to check for above boolean values with var_export() */
echo "\n*** Output for boolean values ***\n";
foreach($valid_bool as $key => $bool_value) {
diff --git a/ext/standard/tests/general_functions/var_export_basic3.phpt b/ext/standard/tests/general_functions/var_export_basic3.phpt
index d02065a7f6..b66d2c4584 100644
--- a/ext/standard/tests/general_functions/var_export_basic3.phpt
+++ b/ext/standard/tests/general_functions/var_export_basic3.phpt
@@ -5,13 +5,13 @@ serialize_precision=17
--FILE--
<?php
/* Prototype : mixed var_export(mixed var [, bool return])
- * Description: Outputs or returns a string representation of a variable
+ * Description: Outputs or returns a string representation of a variable
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing var_export() with valid float values ***\n";
-// different valid float values
+// different valid float values
$valid_floats = array(
"-2147483649" => (float)-2147483649, // float value
"2147483648" => (float)2147483648, // float value
diff --git a/ext/standard/tests/general_functions/var_export_basic4.phpt b/ext/standard/tests/general_functions/var_export_basic4.phpt
index 4668ace1c5..cfdac8b268 100644
--- a/ext/standard/tests/general_functions/var_export_basic4.phpt
+++ b/ext/standard/tests/general_functions/var_export_basic4.phpt
@@ -3,14 +3,14 @@ Test var_export() function with valid strings
--FILE--
<?php
/* Prototype : mixed var_export(mixed var [, bool return])
- * Description: Outputs or returns a string representation of a variable
+ * Description: Outputs or returns a string representation of a variable
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing var_export() with valid strings ***\n";
-// different valid string
+// different valid string
$valid_strings = array(
"\"\"" => "",
"\" \"" => " ",
diff --git a/ext/standard/tests/general_functions/var_export_basic5.phpt b/ext/standard/tests/general_functions/var_export_basic5.phpt
index dacb355323..ab81fa802e 100644
--- a/ext/standard/tests/general_functions/var_export_basic5.phpt
+++ b/ext/standard/tests/general_functions/var_export_basic5.phpt
@@ -5,14 +5,14 @@ serialize_precision=17
--FILE--
<?php
/* Prototype : mixed var_export(mixed var [, bool return])
- * Description: Outputs or returns a string representation of a variable
+ * Description: Outputs or returns a string representation of a variable
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing var_export() with valid arrays ***\n";
-// different valid arrays
+// different valid arrays
$valid_arrays = array(
"array()" => array(),
"array(NULL)" => array(NULL),
diff --git a/ext/standard/tests/general_functions/var_export_basic6.phpt b/ext/standard/tests/general_functions/var_export_basic6.phpt
index bdcdf48c02..6eff478d70 100644
--- a/ext/standard/tests/general_functions/var_export_basic6.phpt
+++ b/ext/standard/tests/general_functions/var_export_basic6.phpt
@@ -3,9 +3,9 @@ Test var_export() function with valid objects
--FILE--
<?php
/* Prototype : mixed var_export(mixed var [, bool return])
- * Description: Outputs or returns a string representation of a variable
+ * Description: Outputs or returns a string representation of a variable
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing var_export() with valid objects ***\n";
@@ -13,7 +13,7 @@ echo "*** Testing var_export() with valid objects ***\n";
// class with no members
class foo
{
-// no members
+// no members
}
// abstract class
@@ -32,28 +32,28 @@ class concreteClass extends abstractClass
}
}
-// interface class
+// interface class
interface iValue
{
- public function setVal ($name, $val);
+ public function setVal ($name, $val);
public function dumpVal ();
}
// implement the interface
class Value implements iValue
{
private $vars = array ();
-
+
public function setVal ( $name, $val ) {
$this->vars[$name] = $val;
}
-
+
public function dumpVal () {
var_export ( $vars );
}
}
-// a gereral class
-class myClass
+// a gereral class
+class myClass
{
var $foo_object;
public $public_var;
@@ -67,7 +67,7 @@ class myClass
$this->public_var1 = new foo();
$this->private_var = new foo();
$this->proected_var = new foo();
- }
+ }
}
// create a object of each class defined above
@@ -88,7 +88,7 @@ $valid_objects = array(
"foo_object" => $foo_object,
"Value_object" => $Value_object,
"concreteClass_object" => $concreteClass_object
- );
+ );
/* Loop to check for above objects with var_export() */
echo "\n*** Output for objects ***\n";
foreach($valid_objects as $key => $obj) {
diff --git a/ext/standard/tests/general_functions/var_export_basic7.phpt b/ext/standard/tests/general_functions/var_export_basic7.phpt
index 525c55470d..817ffc91f0 100644
--- a/ext/standard/tests/general_functions/var_export_basic7.phpt
+++ b/ext/standard/tests/general_functions/var_export_basic7.phpt
@@ -3,14 +3,14 @@ Test var_export() function with valid null values
--FILE--
<?php
/* Prototype : mixed var_export(mixed var [, bool return])
- * Description: Outputs or returns a string representation of a variable
+ * Description: Outputs or returns a string representation of a variable
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing var_export() with valid null values ***\n";
-// different valid null values
+// different valid null values
$unset_var = array();
unset ($unset_var); // now a null
$null_var = NULL;
diff --git a/ext/standard/tests/general_functions/var_export_basic8.phpt b/ext/standard/tests/general_functions/var_export_basic8.phpt
index faae2bca17..a52bf430d2 100644
--- a/ext/standard/tests/general_functions/var_export_basic8.phpt
+++ b/ext/standard/tests/general_functions/var_export_basic8.phpt
@@ -3,18 +3,18 @@ var_export(): simple test with arrays and objects
--FILE--
<?php
/* Prototype : mixed var_export(mixed var [, bool return])
- * Description: Outputs or returns a string representation of a variable
+ * Description: Outputs or returns a string representation of a variable
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
-
+
echo "\n\n-- Var export on a simple object --\n";
$o1 = new stdclass;
$o1->p = '22';
$o2 = new stdclass;
$o2->a = 1;
-$o2->b = array('k'=>2);
-$o2->x = $o1;
+$o2->b = array('k'=>2);
+$o2->x = $o1;
var_export($o2);
echo "\n\n-- Var export on an simple array --\n";
diff --git a/ext/standard/tests/general_functions/var_export_error1.phpt b/ext/standard/tests/general_functions/var_export_error1.phpt
index d9c5eee9dc..ffa542c053 100644
--- a/ext/standard/tests/general_functions/var_export_error1.phpt
+++ b/ext/standard/tests/general_functions/var_export_error1.phpt
@@ -1,11 +1,11 @@
--TEST--
-Test var_export() function : error conditions
+Test var_export() function : error conditions
--FILE--
<?php
/* Prototype : mixed var_export(mixed var [, bool return])
- * Description: Outputs or returns a string representation of a variable
+ * Description: Outputs or returns a string representation of a variable
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
echo "*** Testing var_export() : error conditions ***\n";
diff --git a/ext/standard/tests/general_functions/var_export_error2.phpt b/ext/standard/tests/general_functions/var_export_error2.phpt
index a6403e610d..57764e54d1 100644
--- a/ext/standard/tests/general_functions/var_export_error2.phpt
+++ b/ext/standard/tests/general_functions/var_export_error2.phpt
@@ -3,9 +3,9 @@ Test var_export() function : error conditions - recursive object
--FILE--
<?php
/* Prototype : mixed var_export(mixed var [, bool return])
- * Description: Outputs or returns a string representation of a variable
+ * Description: Outputs or returns a string representation of a variable
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
@$obj->p =& $obj;
diff --git a/ext/standard/tests/general_functions/var_export_error3.phpt b/ext/standard/tests/general_functions/var_export_error3.phpt
index c862691e91..a5acb37027 100644
--- a/ext/standard/tests/general_functions/var_export_error3.phpt
+++ b/ext/standard/tests/general_functions/var_export_error3.phpt
@@ -3,9 +3,9 @@ Test var_export() function : error conditions - recursive array
--FILE--
<?php
/* Prototype : mixed var_export(mixed var [, bool return])
- * Description: Outputs or returns a string representation of a variable
+ * Description: Outputs or returns a string representation of a variable
* Source code: ext/standard/var.c
- * Alias to functions:
+ * Alias to functions:
*/
$a[] =& $a;