/PHP-8.3/ext/json/tests/ |
H A D | json_encode_pretty_print2.phpt | 17 echo json_encode(new HasNoProperties()), "\n"; 18 echo json_encode(new HasNoProperties(), JSON_PRETTY_PRINT), "\n"; 20 echo json_encode(new MyClass()), "\n"; 21 echo json_encode(new MyClass(), JSON_PRETTY_PRINT), "\n"; 24 echo json_encode($obj), "\n"; 25 echo json_encode($obj, JSON_PRETTY_PRINT), "\n"; 28 echo json_encode($obj), "\n"; 29 echo json_encode($obj, JSON_PRETTY_PRINT), "\n"; 31 echo json_encode($obj), "\n"; 32 echo json_encode($obj, JSON_PRETTY_PRINT), "\n";
|
/PHP-8.3/ext/standard/tests/strings/ |
H A D | strtok_basic.phpt | 9 echo "*** Testing strtok() : basic functionality ***\n"; 15 echo "\nThe Input string is:\n\"$str\"\n"; 16 echo "\nThe token string is:\n\"$token\"\n"; 19 echo "\n--- Token 1 ---\n"; 23 echo "\n--- Token $i ---\n"; 27 echo "Done\n";
|
/PHP-8.3/ext/spl/tests/ |
H A D | iterator_025.phpt | 10 echo __METHOD__ . "()\n"; 15 echo __METHOD__ . "()\n"; 23 foreach($it as $v) echo "$v\n"; 25 echo "===MORE===\n"; 27 foreach($it as $v) echo "$v\n"; 29 echo "===MORE===\n"; 32 foreach($it as $v) echo "$v\n"; 35 echo "===MANUAL===\n"; 40 echo $it->current() . "\n"; 47 echo $it->current() . "\n";
|
/PHP-8.3/ext/date/tests/ |
H A D | DatePeriod_wrong_arguments.phpt | 6 echo get_class($dp) == 'DatePeriod' ? "OK\n" : "FAIL\n"; 9 echo get_class($dp) == 'DatePeriod' ? "OK\n" : "FAIL\n"; 12 echo get_class($dp) == 'DatePeriod' ? "OK\n" : "FAIL\n"; 15 echo get_class($dp) == 'DatePeriod' ? "OK\n" : "FAIL\n"; 19 echo "OK\n"; 21 echo $e::class, ': ', $e->getMessage(), "\n";
|
/PHP-8.3/ext/hash/tests/ |
H A D | md4.phpt | 6 echo hash('md4', '') . "\n"; 7 echo hash('md4', 'a') . "\n"; 8 echo hash('md4', 'abc') . "\n"; 9 echo hash('md4', 'message digest') . "\n"; 10 echo hash('md4', 'abcdefghijklmnopqrstuvwxyz') . "\n"; 11 echo hash('md4', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n"; 12 …('md4', '12345678901234567890123456789012345678901234567890123456789012345678901234567890') . "\n";
|
H A D | hash_pbkdf2_basic.phpt | 6 echo "*** Testing hash_pbkdf2() : basic functionality ***\n"; 8 echo "sha1: " . hash_pbkdf2('sha1', 'password', 'salt', 1, 20)."\n"; 9 echo "sha1(no length): " . hash_pbkdf2('sha1', 'password', 'salt', 1)."\n"; 10 echo "sha1(raw): " . bin2hex(hash_pbkdf2('sha1', 'password', 'salt', 1, 20, TRUE))."\n"; 11 …_pbkdf2('sha1', 'passwordPASSWORDpassword', 'saltSALTsaltSALTsaltSALTsaltSALTsalt', 4096, 25)."\n"; 12 …('sha1', 'passwordPASSWORDpassword', 'saltSALTsaltSALTsaltSALTsaltSALTsalt', 4096, 25, TRUE))."\n"; 13 echo "sha256: " . hash_pbkdf2('sha256', 'password', 'salt', 1, 20)."\n"; 14 echo "sha256(no length): " . hash_pbkdf2('sha256', 'password', 'salt', 1)."\n"; 15 echo "sha256(raw): " . bin2hex(hash_pbkdf2('sha256', 'password', 'salt', 1, 20, TRUE))."\n"; 16 …bkdf2('sha256', 'passwordPASSWORDpassword', 'saltSALTsaltSALTsaltSALTsaltSALTsalt', 4096, 40)."\n"; [all …]
|
H A D | hash_pbkdf2_error.phpt | 9 echo "*** Testing hash_pbkdf2() : error conditions ***\n"; 14 echo "\n-- Testing hash_pbkdf2() function with invalid hash algorithm --\n"; 19 echo $e->getMessage() . "\n"; 23 echo "\n-- Testing hash_pbkdf2() function with non-cryptographic hash algorithm --\n"; 28 echo $e->getMessage() . "\n"; 31 echo "\n-- Testing hash_pbkdf2() function with invalid iterations --\n"; 36 echo $e->getMessage() . "\n"; 43 echo $e->getMessage() . "\n"; 46 echo "\n-- Testing hash_pbkdf2() function with invalid length --\n"; 51 echo $e->getMessage() . "\n";
|
/PHP-8.3/ext/mysqli/tests/ |
H A D | mysqli_real_escape_string_nobackslash.phpt | 17 printf("[002] Expecting \\, got %s\n", $tmp); 20 printf("[003] Expecting \", got %s\n", $tmp); 23 printf("[004] Expecting '', got %s\n", $tmp); 25 if ("\n" !== ($tmp = mysqli_real_escape_string($link, "\n"))) 26 printf("[005] Expecting \\n, got %s\n", $tmp); 29 printf("[006] Expecting \\r, got %s\n", $tmp); 33 printf("[007] Expecting %s, got %s\n", "foo" . chr(0) . "bar", $tmp); 37 printf("[009] Cannot INSERT, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 41 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 50 printf("[012] Expecting \\, got %s\n", $tmp); [all …]
|
H A D | mysqli_stmt_bind_param_call_user_func.phpt | 15 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 30 print "Regular, procedural, using variables\n"; 36 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 59 print "Call user func, procedural, using references for everything\n"; 65 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 93 printf("[015] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 121 printf("[020] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 148 printf("[025] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 177 printf("[025] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 206 printf("[030] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_affected_rows_oo.phpt | 17 echo $exception->getMessage() . "\n"; 23 printf("[002] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp); 26 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error); 29 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error); 32 printf("[005] [%d] %s\n", $mysqli->errno, $mysqli->error); 43 printf("[008] [%d] %s\n", $mysqli->errno, $mysqli->error); 49 printf("[010] [%d] %s\n", $mysqli->errno, $mysqli->error); 55 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error); 62 printf("[014] [%d] %s\n", $mysqli->errno, $mysqli->error); 68 printf("[015] [%d] %s\n", $mysqli->errno, $mysqli->error); [all …]
|
H A D | mysqli_stmt_get_result.phpt | 22 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 28 echo $exception->getMessage() . "\n"; 50 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 56 echo $exception->getMessage() . "\n"; 76 printf("[017] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 82 echo $exception->getMessage() . "\n"; 144 printf("[038] Expecting array, got %s/%s, [%d] %s\n", 149 printf("[039] Expecting boolean/false, got %s/%s, [%d] %s\n", 153 printf("[041] [%d] [%s]\n", mysqli_errno($link), mysqli_error($link)); 160 printf("[042] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_class_mysqli_stmt_interface.phpt | 16 printf("Parent class:\n"); 19 printf("\nMethods:\n"); 66 printf("ok\n"); 68 printf("\nClass variables:\n"); 72 printf("%s\n", $var); 74 printf("\nObject variables:\n"); 77 printf("%s\n", $var); 79 printf("\nMagic, magic properties:\n"); 84 echo $exception->getMessage() . "\n"; 90 echo $exception->getMessage() . "\n"; [all …]
|
H A D | mysqli_stmt_field_count.phpt | 18 echo $exception->getMessage() . "\n"; 22 printf("[004] Prepare should fail for an empty statement\n"); 27 echo $exception->getMessage() . "\n"; 33 printf("[007] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); 38 printf("[009] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 43 printf("[011] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 49 printf("[013] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); 54 printf("[014] expected error - got ok\n"); 65 printf("[017] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp); 79 echo $exception->getMessage() . "\n"; [all …]
|
/PHP-8.3/ext/imap/tests/ |
H A D | imap_append_basic.phpt | 15 echo "Create a new mailbox for test\n"; 19 echo "Add a couple of msgs to the new mailbox\n"; 21 , "From: webmaster@example.com\r\n" 22 . "To: info@example.com\r\n" 23 . "Subject: Test message\r\n" 24 . "\r\n" 29 , "From: webmaster@example.com\r\n" 30 . "To: info@example.com\r\n" 31 . "Subject: Another test\r\n" 32 . "\r\n" [all …]
|
/PHP-8.3/ext/phar/tests/tar/ |
H A D | phar_setdefaultstub.phpt | 13 $phar['a.php'] = '<php echo "this is a\n"; ?>'; 14 $phar['b.php'] = '<php echo "this is b\n"; ?>'; 15 $phar->setStub('<?php echo "Hello World\n"; __HALT_COMPILER(); ?>'); 19 echo "============================================================================\n"; 20 echo "============================================================================\n"; 26 echo $e->getMessage(). "\n"; 37 echo $e->getMessage(). "\n"; 43 echo $e->getMessage(). "\n"; 54 echo $e->getMessage(). "\n"; 60 echo $e->getMessage(). "\n"; [all …]
|
/PHP-8.3/ext/phar/tests/zip/ |
H A D | phar_setdefaultstub.phpt | 13 $phar['a.php'] = '<php echo "this is a\n"; ?>'; 14 $phar['b.php'] = '<php echo "this is b\n"; ?>'; 15 $phar->setStub('<?php echo "Hello World\n"; __HALT_COMPILER(); ?>'); 19 echo "============================================================================\n"; 20 echo "============================================================================\n"; 26 echo $e->getMessage(). "\n"; 37 echo $e->getMessage(). "\n"; 43 echo $e->getMessage(). "\n"; 54 echo $e->getMessage(). "\n"; 60 echo $e->getMessage(). "\n"; [all …]
|
/PHP-8.3/Zend/tests/ |
H A D | bug70012.phpt | 6 echo "Outer try\n"; 8 echo " Middle try\n"; 11 echo " Middle finally\n"; 13 echo " Inner try\n"; 15 echo " Inner finally\n"; 18 echo "Outer shouldn't get here\n"; 20 echo "Outer catch\n"; 22 echo "Outer finally\n";
|
/PHP-8.3/ext/standard/tests/class_object/ |
H A D | get_object_vars_basic_001.phpt | 9 echo __METHOD__ . "\n"; 21 echo __METHOD__ . "\n"; 30 echo __METHOD__ . "\n"; 37 echo __METHOD__ . "\n"; 44 echo "\n---( Global scope: )---\n"; 46 echo "\n---( Declaring class: )---\n"; 48 echo "\n---( Subclass: )---\n"; 50 echo "\n---( Superclass: )---\n"; 52 echo "\n---( Unrelated class: )---\n";
|
/PHP-8.3/ext/standard/tests/file/ |
H A D | basename_bug66395_variation2-win32.phpt | 7 echo basename("y:") . "\n"; 8 echo basename("y:/") . "\n"; 9 echo basename("notdriveletter:file.txt") . "\n"; 10 echo basename("a:\\b:c:d:hello.txt\\hcd:c.txt") . "\n"; 11 echo basename("a:b:c:d:hello.txt\\d:some.txt") . "\n"; 12 echo basename("a:b:c:d:hello\world\a.bmp\c:d:e:f.txt") . "\n"; 15 echo basename("a:\\b:/c:d:hello\\world:somestream") . "\n"; 16 echo basename("a:\\b:\\c:d:hello\\world:some.stream") . "\n"; 18 echo basename("x:y:z:hello\world:my.stream:\$DATA") . "\n"; 19 echo basename("a:\\b:\\c:d:hello\\world:c:\$DATA") . "\n"; [all …]
|
/PHP-8.3/ext/standard/tests/array/ |
H A D | array_rand_variation5.phpt | 11 echo "*** Testing array_rand() : with invalid values for 'req_num' ***\n"; 22 echo"\n-- With default num_req value --\n"; 24 echo"\n-- With num_req = 1 --\n"; 28 echo"\n-- With num_req = 0 --\n"; 32 echo $e->getMessage() . "\n"; 35 echo"\n-- With num_req = -1 --\n"; 39 echo $e->getMessage() . "\n"; 42 echo"\n-- With num_req = -2 --\n"; 46 echo $e->getMessage() . "\n"; 49 echo"\n-- With num_req more than number of members in 'input' array --\n"; [all …]
|
H A D | count_recursive.phpt | 5 echo "*** Testing basic functionality of count() function ***\n"; 7 print "-- Testing arrays --\n"; 12 print "-- Testing hashes --\n"; 17 print "-- Testing various types with no second argument --\n"; 22 print "-- Testing really cool arrays --\n"; 44 echo "\n-- Iteration $i --\n"; 50 print "\n-- Testing count() on an empty sub-array --\n"; 55 echo "\n-- Testing count() on objects with Countable interface --\n"; 67 print "COUNT_NORMAL: should be 3, is ".count($obj)."\n"; 70 echo "\n-- Testing count() on resource type --\n"; [all …]
|
/PHP-8.3/ext/pgsql/tests/ |
H A D | 02connection.phpt | 18 echo "pg_connection_status() error\n"; 22 echo "pg_connection_reset() error\n"; 26 echo "pg_connection_busy() error\n"; 31 echo "pg_transaction_status() error\n"; 36 echo "pg_host() error\n"; 40 echo "pg_dbname() error\n"; 44 echo "pg_port() error\n"; 48 echo "pg_tty() error\n"; 52 echo "pg_options() error\n";
|
/PHP-8.3/ext/enchant/tests/ |
H A D | dict_check.phpt | 9 if (!is_object(enchant_broker_init())) {die("skip, resource dont load\n");} 10 …ker_list_dicts(enchant_broker_init()))) {die("skip, no dictionary installed on this machine! \n");} 19 echo("OK\n"); 23 echo("OK\n"); 27 echo("OK\n"); 30 echo("dict check new word failed\n"); 34 echo("broker request dict failed\n"); 39 echo("broker is not a resource; failed;\n"); 41 echo "OK\n";
|
/PHP-8.3/ext/mbstring/tests/ |
H A D | mb_strpos_basic.phpt | 11 echo "*** Testing mb_strpos() : basic functionality***\n"; 19 echo "\n-- ASCII string 1 --\n"; 22 echo "\n-- ASCII string 2 --\n"; 25 echo "\n-- Multibyte string 1 --\n"; 29 echo "\n-- Multibyte string 2 --\n";
|
H A D | mb_substr_basic.phpt | 13 echo "*** Testing mb_substr() : basic functionality ***\n"; 19 echo "\n-- ASCII string 1 --\n"; 22 echo "\n-- ASCII string 2 --\n"; 25 echo "\n-- Multibyte string 1 --\n"; 29 echo "\n-- Multibyte string 2 --\n";
|