/PHP-7.1/tests/classes/ |
H A D | tostring_004.phpt | 6 echo "Error: $err_no - $err_msg\n"; 12 echo "Object with no __toString():\n"; 14 echo "Try 1:\n"; 16 printf("\n"); 18 echo "\nTry 2:\n"; 19 printf($obj . "\n"); 22 echo "\n\nObject with bad __toString():\n"; 29 echo "Try 1:\n"; 31 printf("\n"); 33 echo "\nTry 2:\n"; [all …]
|
/PHP-7.1/ext/mysqli/tests/ |
H A D | mysqli_fetch_assoc_no_alias.phpt | 14 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 16 print "[002]\n"; 21 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 23 print "[004]\n"; 28 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 30 print "[006]\n"; 37 print "[008]\n"; 48 print "[011]\n"; 58 print "[014]\n"; 68 print "[017]\n"; [all …]
|
/PHP-7.1/ext/date/tests/ |
H A D | bug43452.phpt | 9 echo date( DateTime::ISO8601, $day ), "\n"; 11 echo date( DateTime::ISO8601, $day ), "\n"; 13 echo date( DateTime::ISO8601, $day ), "\n"; 15 echo date( DateTime::ISO8601, $day ), "\n\n"; 19 echo date( DateTime::ISO8601, $day ), "\n"; 21 echo date( DateTime::ISO8601, $day ), "\n"; 23 echo date( DateTime::ISO8601, $day ), "\n"; 25 echo date( DateTime::ISO8601, $day ), "\n\n"; 31 echo date( DateTime::ISO8601, $day ), "\n"; 37 echo date( DateTime::ISO8601, $day ), "\n\n"; [all …]
|
/PHP-7.1/tests/func/ |
H A D | 003.phpt | 8 echo "hey\n"; 13 echo "$i\n"; 21 echo "$k\n"; 38 if ($n==0 || $n==1) { 41 return factorial($n-1)*$n; 48 if ($n<=$start) { 51 return factorial2($start,$n-1)*$n; 59 echo "factorial($i) = $n\n"; 72 echo "factorial($i) = $n\n"; 83 echo "------\n"; [all …]
|
/PHP-7.1/ext/pcre/pcrelib/testdata/ |
H A D | testinput14 | 35 abc\n 98 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\x… 111 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\x… 113 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\x… 125 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\x… 127 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\x… 137 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\x… 140 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\x… 164 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\x… 175 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\x… [all …]
|
H A D | testinput17 | 16 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\x… 29 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\x… 31 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\x… 43 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\x… 45 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\x… 55 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\x… 58 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\x… 82 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\x… 93 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\x… 96 (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\xff] | \( (?: [^\\\x80-\xff\n\015()] | \\ [^\x80-\x… [all …]
|
/PHP-7.1/Zend/tests/try/ |
H A D | try_finally_020.phpt | 6 public $n = 0; 7 function __construct($n) { 8 $this->n = $n; 11 echo "destruct" . $this->n . "\n"; 26 echo "finally1\n"; 30 echo "catch\n"; 32 echo "finally2\n";
|
/PHP-7.1/ext/intl/tests/ |
H A D | dateformat_is_set_lenient.phpt | 25 $res_str .= "TRUE\n"; 27 $res_str .= "FALSE\n"; 31 $res_str .= "--------------------\n"; 35 $res_str .= "TRUE\n"; 37 $res_str .= "FALSE\n"; 43 $res_str .= "TRUE\n"; 45 $res_str .= "FALSE\n"; 54 $res_str .= "TRUE\n"; 56 $res_str .= "FALSE\n"; 62 $res_str .= "TRUE\n"; [all …]
|
/PHP-7.1/ext/json/tests/ |
H A D | bug41067.phpt | 9 print bin2hex($single_barline) . "\n"; 10 // print $single_barline . "\n\n"; 12 print $json . "\n\n"; 14 // print $json_decoded[0] . "\n"; 15 print bin2hex($json_decoded[0]) . "\n"; 16 print "END\n";
|
/PHP-7.1/ext/standard/tests/array/ |
H A D | reset_basic.phpt | 14 echo "*** Testing reset() : basic functionality ***\n"; 18 echo "\n-- Initial Position: --\n"; 19 echo key($array) . " => " . current($array) . "\n"; 21 echo "\n-- Call to next() --\n"; 24 echo "\n-- Current Position: --\n"; 25 echo key($array) . " => " . current($array) . "\n"; 27 echo "\n-- Call to reset() --\n";
|
H A D | array_shift_variation6.phpt | 16 echo "*** Testing array_shift() : usage variations ***\n"; 18 echo "\n-- Variable is referenced array --\n"; 24 echo "\n\$original_array:\n"; 26 echo "\n\$copied_array:\n"; 29 echo "\n-- Element is referenced array --\n"; 33 echo "\n\$new_array:\n"; 35 echo "\n\$copied_array\n";
|
/PHP-7.1/ext/dba/tests/ |
H A D | dba_db4_018.phpt | 14 echo "database handler: $handler\n"; 16 echo "Test 1\n"; 19 echo dba_fetch("key1", $db_file1), "\n"; 22 echo "Test 2\n"; 25 echo "resources are the same\n"; 27 echo "resources are different\n"; 33 echo dba_fetch("key1", $db_file2), "\n"; 34 echo dba_fetch("key2", $db_file2), "\n"; 38 echo dba_fetch("key1", $db_file1), "\n"; 39 echo dba_fetch("key2", $db_file1), "\n"; [all …]
|
/PHP-7.1/ext/standard/tests/strings/ |
H A D | printf_basic2.phpt | 10 echo "*** Testing printf() : basic functionality - using integer format ***\n"; 22 echo "\n-- Calling printf() with no arguments --\n"; 24 echo "\n"; 27 echo "\n-- Calling printf() with one arguments--\n"; 29 echo "\n"; 32 echo "\n-- Calling printf() with two arguments--\n"; 34 echo "\n"; 37 echo "\n-- Calling printf() with three arguments--\n"; 39 echo "\n";
|
H A D | printf_basic4.phpt | 10 echo "*** Testing printf() : basic functionality - using bool format ***\n"; 22 echo "\n-- Calling printf() with no arguments --\n"; 24 echo "\n"; 27 echo "\n-- Calling printf() with one arguments--\n"; 29 echo "\n"; 32 echo "\n-- Calling printf() with two arguments--\n"; 34 echo "\n"; 37 echo "\n-- Calling printf() with three arguments--\n"; 39 echo "\n";
|
H A D | printf_basic5.phpt | 10 echo "*** Testing printf() : basic functionality - using char format ***\n"; 22 echo "\n-- Calling printf() with no arguments --\n"; 24 echo "\n"; 27 echo "\n-- Calling printf() with one arguments --\n"; 29 echo "\n"; 32 echo "\n-- Calling printf() with two arguments --\n"; 34 echo "\n"; 37 echo "\n-- Calling printf() with three arguments --\n"; 39 echo "\n";
|
H A D | printf_basic6.phpt | 10 echo "*** Testing printf() : basic functionality - using exponential format ***\n"; 21 echo "\n-- Calling printf() with no arguments --\n"; 23 echo "\n"; 26 echo "\n-- Calling printf() with one argument --\n"; 28 echo "\n"; 31 echo "\n-- Calling printf() with two arguments --\n"; 33 echo "\n"; 36 echo "\n-- Calling printf() with three arguments --\n"; 38 echo "\n";
|
H A D | str_getcsv_001.phpt | 8 print "-----\n"; 10 print "-----\n"; 12 print "-----\n"; 14 print "-----\n"; 16 print "-----\n"; 18 print "-----\n"; 20 print "-----\n"; 22 print "-----\n"; 24 print "-----\n"; 26 print "-----\n"; [all …]
|
H A D | sprintf_variation52.phpt | 10 echo "*** Testing sprintf() : with typical format strings ***\n"; 16 echo"\n-- Testing for '%%%.2f' as the format parameter --\n"; 19 echo"\n-- Testing for '%%' as the format parameter --\n"; 22 echo"\n-- Testing for precision value more than maximum --\n"; 25 echo"\n-- Testing for invalid width(-15) specifier --\n"; 28 echo"\n-- Testing for '%X' as the format parameter --\n"; 31 echo"\n-- Testing for multiple format parameters --\n"; 32 var_dump(sprintf("%d %s %d\n", $tempnum, $tempstring, $tempnum)); 34 echo"\n-- Testing for excess of mixed type arguments --\n";
|
H A D | htmlspecialchars_decode_variation7.phpt | 21 echo "$t\tDECODED\n"; 25 echo "\n*** XHTML 1.0/ENT_QUOTES ***\n"; 32 echo "$t\tDECODED\n"; 36 echo "\n*** HTML5/ENT_QUOTES ***\n"; 43 echo "$t\tDECODED\n"; 47 echo "\n*** XML 1.0/ENT_QUOTES ***\n"; 54 echo "$t\tDECODED\n"; 58 echo "\n*** HTML5/ENT_NOQUOTES ***\n"; 65 echo "$t\tDECODED\n"; 69 echo "\n*** HTML5/ENT_COMPAT ***\n"; [all …]
|
/PHP-7.1/ext/spl/tests/ |
H A D | iterator_028.phpt | 10 echo "===?===\n"; 12 foreach($it as $v) echo $it->getDepth() . ": $v\n"; 14 echo "===2===\n"; 17 foreach($it as $v) echo $it->getDepth() . ": $v\n"; 19 echo "===X===\n"; 22 foreach($it as $v) echo $it->getDepth() . ": $v\n"; 24 echo "===3===\n"; 27 foreach($it as $v) echo $it->getDepth() . ": $v\n"; 29 echo "===5===\n"; 34 echo "===0===\n"; [all …]
|
/PHP-7.1/tests/lang/ |
H A D | static_basic_001.phpt | 6 echo "\nSame variable used as static and non static.\n"; 8 echo "---------\n"; 10 echo "$a\n"; 12 echo "$a\n"; 24 echo "Unitialised : $a\n"; 25 echo "Initialised to 10: $b\n"; 26 echo "Initialised to 20: $c\n"; 27 echo "Unitialised : $d\n"; 28 echo "Initialised to 30: $e\n"; 40 echo "\nUsing static keyword at global scope\n"; [all …]
|
/PHP-7.1/ext/mbstring/tests/ |
H A D | mb_convert_encoding_stateful.phpt | 10 echo "ISO-2022-JP empty segment\n"; 11 echo bin2hex(mb_convert_encoding(pack("H*", "1b24401b24402121"), "UTF-8", "ISO-2022-JP")), "\n"; 12 echo bin2hex(mb_convert_encoding(pack("H*", "1b24421b24422121"), "UTF-8", "ISO-2022-JP")), "\n"; 13 echo bin2hex(mb_convert_encoding(pack("H*", "1b28421b284261626364"), "UTF-8", "ISO-2022-JP")), "\n"; 14 echo bin2hex(mb_convert_encoding(pack("H*", "1b284a1b284a61626364"), "UTF-8", "ISO-2022-JP")), "\n"; 15 echo bin2hex(mb_convert_encoding(pack("H*", "1b24401b284261626364"), "UTF-8", "ISO-2022-JP")), "\n"; 16 echo bin2hex(mb_convert_encoding(pack("H*", "1b24401b284a61626364"), "UTF-8", "ISO-2022-JP")), "\n"; 17 echo bin2hex(mb_convert_encoding(pack("H*", "1b24421b284261626364"), "UTF-8", "ISO-2022-JP")), "\n"; 19 echo "ISO-2022-KR empty segment\n"; 21 echo "HZ empty segment\n"; [all …]
|
/PHP-7.1/Zend/tests/closures/ |
H A D | closure_from_callable_error.phpt | 8 echo 'Cannot access privateInstance method statically'."\n"; 11 echo "Test failed to fail and return was : ".var_export($fn, true)."\n"; 33 echo 'Cannot access privateInstance method'."\n"; 45 echo 'SubClass cannot access private instance method'."\n"; 48 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n"; 57 echo 'Cannot access private static function of instance'."\n"; 69 echo 'Cannot access private static method statically'."\n"; 93 echo 'Non-existent method should fail'."\n"; 105 echo 'Non-existent class should fail'."\n"; 117 echo 'Non-existent function should fail'."\n"; [all …]
|
/PHP-7.1/Zend/tests/ |
H A D | foreach_017.phpt | 9 echo "$v\n"; 15 echo "\n"; 21 echo "$v\n"; 27 echo "\n"; 33 echo "$v\n"; 39 echo "\n"; 47 echo "$v\n"; 53 echo "\n"; 59 echo "$v\n"; 65 echo "\n"; [all …]
|
/PHP-7.1/ext/oci8/tests/ |
H A D | lob_031.phpt | 38 echo " 1. ".$row[0]->tell(). "\n"; 41 echo " 2. ".$row[0]->tell(). "\n"; 44 echo " 3. ".$row[0]->tell(). "\n"; 47 echo " 4. ".$row[0]->tell(). "\n"; 50 echo " 5. ".$row[0]->tell(). "\n"; 54 echo " 6. ".$row[0]->tell(). "\n"; 57 echo " 8. ".$row[0]->tell(). "\n"; 61 echo " 9. ".$row[0]->tell(). "\n"; 64 echo "10. ".$row[0]->tell(). "\n"; 67 echo "11. ".$row[0]->tell(). "\n"; [all …]
|