/PHP-7.4/ext/sysvsem/tests/ |
H A D | sysv.phpt | 15 echo "Start.\n"; 22 echo "Got semaphore $sem_id.\n"; 26 echo "Fail to acquire semaphore $sem_id.\n"; 30 echo "Success acquire semaphore $sem_id.\n"; 34 echo "Fail to attach shared memory.\n"; 47 echo "Write var1 to shared memory.\n"; 56 echo "Write var2 to shared memory.\n"; 63 echo "Read var1=$var1.\n"; 71 echo "Read var2=$var2.\n"; 77 echo "Semaphore $sem_id released.\n"; [all …]
|
/PHP-7.4/tests/classes/ |
H A D | inheritance.phpt | 12 echo "This is class foo\n"; 13 echo "a = ".$this->a."\n"; 14 echo "b = ".$this->b."\n"; 24 echo "This is class bar\n"; 25 echo "a = ".$this->a."\n"; 26 echo "b = ".$this->b."\n"; 27 echo "c = ".$this->c."\n"; 36 echo $foo1->mul()."\n"; 38 echo "-----\n"; 45 echo $bar1->mul()."\n";
|
H A D | iterators_004.phpt | 6 echo "1st try\n"; 13 echo "object:$w\n"; 16 echo "2nd try\n"; 24 echo __METHOD__ . "\n"; 28 echo __METHOD__ . "\n"; 32 echo __METHOD__ . "\n"; 36 echo __METHOD__ . "\n"; 49 echo "object:$v=>$w\n"; 52 print "Done\n";
|
/PHP-7.4/ext/date/tests/ |
H A D | date_period-immutable.phpt | 13 echo get_class( $dt ), "\n"; 14 echo $dt->format( "l Y-m-d\n" ); 15 echo $dt->modify( "3 tuesday" )->format( "l Y-m-d\n" ); 16 echo $dt->format( "l Y-m-d\n\n" ); 21 echo get_class( $dt ), "\n"; 22 echo $dt->format( "l Y-m-d\n" ); 23 echo $dt->modify( "3 tuesday" )->format( "l Y-m-d\n" ); 24 echo $dt->format( "l Y-m-d\n\n" );
|
/PHP-7.4/ext/enchant/tests/ |
H A D | broker_free_dict.phpt | 8 if(!is_resource(enchant_broker_init())) {die("skip, resource dont load\n");} 9 …list_dicts(enchant_broker_init()))) {die("skip, dont has dictionary install in this machine! \n");} 17 echo("OK\n"); 21 echo("OK\n"); 28 echo("OK\n"); 31 echo("dict broker free has failed\n"); 35 echo("dict add to personal failed\n"); 39 echo("broker request dict failed\n"); 43 echo("broker is not a resource; failed;\n"); 45 echo "OK\n";
|
H A D | broker_describe.phpt | 8 echo "skip: Enchant extension not enabled\n"; 15 echo "skip: Unable to init broker\n"; 22 echo "skip: No broker providers found\n"; 33 echo("OK\n"); 37 echo("OK\n"); 40 echo("OK\n"); 43 echo("failed, broker describe\n"); 47 echo "failed, brocker describe array \n"; 53 echo("failed, broker_init failure\n");
|
H A D | dict_check.phpt | 8 if (!is_resource(enchant_broker_init())) {die("skip, resource dont load\n");} 9 …list_dicts(enchant_broker_init()))) {die("skip, dont has dictionary install in this machine! \n");} 18 echo("OK\n"); 22 echo("OK\n"); 26 echo("OK\n"); 29 echo("dict check new word failed\n"); 33 echo("broker request dict failed\n"); 38 echo("broker is not a resource; failed;\n"); 40 echo "OK\n";
|
/PHP-7.4/ext/pgsql/tests/ |
H A D | 05large_object.phpt | 12 echo "create/write/close LO\n"; 15 if (!$oid) echo ("pg_lo_create() error\n"); 17 if (!$handle) echo ("pg_lo_open() error\n"); 18 pg_lo_write ($handle, "large object data\n"); 22 echo "open/read/tell/seek/close LO\n"; 31 echo "open/read_all/close LO\n"; 39 echo "unlink LO\n"; 45 echo "Test without connection\n"; 51 echo "Test with string oid value\n"; 57 echo "import/export LO\n"; [all …]
|
H A D | 27large_object_oid.phpt | 7 if (version_compare("8.3", $v["client"]) > 0) die("skip - requires pg client >= 8.3\n"); 8 if (version_compare("8.3", $v["server"]) > 0) die("skip - requires pg server >= 8.3\n"); 17 echo "create LO from int\n"; 20 if (!$oid) echo ("pg_lo_create() error\n"); 21 if ($oid != 21000) echo ("pg_lo_create() wrong id\n"); 25 echo "create LO from string\n"; 28 if (!$oid) echo ("pg_lo_create() error\n"); 29 if ($oid != 21001) echo ("pg_lo_create() wrong id\n"); 33 echo "create LO using default connection\n"; 36 if (!$oid) echo ("pg_lo_create() error\n"); [all …]
|
/PHP-7.4/ext/standard/tests/strings/ |
H A D | sha1_file.phpt | 35 echo "\n*** Testing for error conditions ***\n"; 37 echo "\n-- No filename --\n"; 40 echo "\n-- invalid filename --\n"; 43 echo "\n-- Scalar value as filename --\n"; 46 echo "\n-- NULL as filename --\n"; 49 echo "\n-- Zero arguments --\n"; 52 echo "\n-- More than valid number of arguments ( valid is 2) --\n"; 55 echo "\n-- Hexadecimal Output for Empty file as Argument --\n"; 58 echo "\n-- Raw Binary Output for Empty file as Argument --\n"; 61 echo "\n-- Hexadecimal Output for a valid file with some contents --\n"; [all …]
|
H A D | bug20261.phpt | 9 echo "1: ".$first."\n"; 10 echo "2: ".$second."\n"; 11 echo "3: ".$rot."\n"; 15 echo "1: ".$first."\n"; 16 echo "2: ".$second."\n"; 17 echo "3: ".$rot."\n";
|
H A D | bug47842.phpt | 5 if (PHP_INT_MAX < pow(2,31)) die("skip PHP_INT_MAX < 32b\n"); 9 echo "-Test\n"; 12 echo "sscanf 32-bit signed int '2147483647' (2^31)-1 = ",$int,"\n"; 14 echo "sscanf 32-bit unsign int '4294967295' (2^32)-1 = ",$int,"\n"; 17 echo "sscanf 64-bit signed int '9223372036854775807' (2^63)-1 = ",$int,"\n"; 19 echo "sscanf 64-bit unsign int '18446744073709551615' (2^64)-1 = ",$int,"\n"; 21 printf("printf 64-bit signed int '9223372036854775807' (2^63)-1 = %d\n", 9223372036854775807); 22 printf("printf 64-bit signed int '18446744073709551615' (2^64)-1 = %u\n", 18446744073709551615); 24 echo "Done\n";
|
/PHP-7.4/sapi/cli/tests/ |
H A D | 021.phpt | 21 $script = "#!$php -n\n". 22 "ola\n". 23 "<?php echo 1+1,'\n';\n". 24 "?>\n". 25 "adeus\n"; 32 echo "\nDone\n";
|
/PHP-7.4/ext/mysqli/tests/ |
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 | 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); 74 printf("[017] [%d] %s\n", $mysqli->errno, $mysqli->error); [all …]
|
/PHP-7.4/ext/phar/tests/ |
H A D | phar_oo_008.phpt | 18 echo "===1===\n"; 21 echo "$k=>$v\n"; 26 echo "===2===\n"; 29 echo "$k=>$v\n"; 43 echo "===3===\n"; 49 echo "===4===\n"; 57 echo "===5===\n"; 60 echo "$k=>" . join('|',$d) . "\n"; 67 echo __METHOD__ . "\n"; 75 echo "===6===\n"; [all …]
|
/PHP-7.4/ext/imap/tests/ |
H A D | imap_append_basic.phpt | 18 echo "Create a new mailbox for test\n"; 21 exit("TEST FAILED: Unable to create test mailbox\n"); 27 , "From: webmaster@something.com\r\n" 28 . "To: info@something.com\r\n" 29 . "Subject: Test message\r\n" 30 . "\r\n" 36 . "To: info@something.com\r\n" 37 . "Subject: Another test\r\n" 38 . "\r\n" 43 echo "Msg Count after append : ". $check->Nmsgs . "\n"; [all …]
|
/PHP-7.4/ext/standard/tests/array/ |
H A D | array_product_variation3.phpt | 11 echo "*** Testing array_product() : variations - negative numbers***\n"; 13 echo "\n-- Testing array_product() function with one negative number --\n"; 16 echo "\n-- Testing array_product() function with two negative numbers --\n"; 19 echo "\n-- Testing array_product() function with three negative numbers --\n"; 22 echo "\n-- Testing array_product() function with negative floats --\n"; 25 echo "\n-- Testing array_product() function with negative floats --\n";
|
/PHP-7.4/ext/mbstring/tests/ |
H A D | mb_convert_encoding.phpt | 21 echo "== BASIC TEST ==\n"; 24 print("EUC-JP: $s\n"); // EUC-JP 28 print("EUC-JP: $s\n"); // EUC-JP 45 print("EUC-JP: $s\n"); // EUC-JP 62 print("EUC-JP: $s\n"); // EUC-JP 74 echo "== DETECT ORDER ==\n"; 78 print("EUC-JP: $s\n"); // EUC-JP 90 echo "== INVALID PARAMETER ==\n"; 93 print("INT: $s\n"); // EUC-JP 96 print("EUC-JP: $s\n"); // SJIS [all …]
|
/PHP-7.4/sapi/phpdbg/tests/ |
H A D | exceptions_003.phpt | 18 00007: print "ok\n"; 22 00007: print "ok\n"; 23 prompt> [L7 %s ECHO<1> "ok\n" … 24 >00007: print "ok\n"; 32 00007: print "ok\n"; 33 prompt> [L10 %s ECHO<1> "caught\n" … 34 >00010: print "caught\n"; 48 print "ok\n"; 51 print "caught\n";
|
/PHP-7.4/Zend/tests/ |
H A D | closure_invoke_case_insensitive.phpt | 6 $inc = function(&$n) { 7 $n++; 10 $n = 1; 11 $inc->__INVOKE($n); 12 var_dump($n);
|
/PHP-7.4/tests/lang/ |
H A D | passByReference_010.phpt | 11 echo "\n\n---> Pass constant assignment by reference:\n"; 15 echo "\n\n---> Pass variable assignment by reference:\n"; 21 echo "\n\n---> Pass reference assignment by reference:\n"; 27 echo "\n\n---> Pass concat assignment by reference:\n";
|
/PHP-7.4/ext/readline/tests/ |
H A D | bug77812-readline.phpt | 16 fwrite($pipes[0], "echo <<<FOO\n bar\n FOO;\n"); 17 fwrite($pipes[0], "print(<<<FOO\nxx\nFOO);\n"); 18 fwrite($pipes[0], "echo <<<FOO\n xxx\n FOO;\nFOO\n;\n"); 19 fwrite($pipes[0], "echo <<<FOO\nFOOL\nFOO\n,1;\n"); 20 fwrite($pipes[0], "echo <<<FOO\nFOO4\nFOO\n,2;\n");
|
/PHP-7.4/ext/standard/tests/math/ |
H A D | cos_basic.phpt | 29 echo "Pass\n"; 32 echo "Fail\n"; 38 echo "Pass\n"; 41 echo "Fail\n"; 47 echo "Pass\n"; 50 echo "Fail\n"; 56 echo "Pass\n"; 59 echo "Fail\n"; 65 echo "Pass\n"; 68 echo "Fail\n"; [all …]
|
H A D | sin_basic.phpt | 29 echo "Pass\n"; 32 echo "Fail\n"; 38 echo "Pass\n"; 41 echo "Fail\n"; 47 echo "Pass\n"; 50 echo "Fail\n"; 56 echo "Pass\n"; 59 echo "Fail\n"; 65 echo "Pass\n"; 68 echo "Fail\n"; [all …]
|