/PHP-7.2/ext/mysqli/tests/ |
H A D | mysqli_stmt_bind_result_references.phpt | 25 printf("[002] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 42 printf("[004] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 62 printf("[006] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 81 printf("[008] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 95 printf("[010] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 110 printf("[012] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 128 printf("[012] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 145 printf("[012] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 166 printf("[014] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 185 printf("[016] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_insert_id.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_insert_id())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 24 if (0 !== ($tmp = mysqli_insert_id($link))) 25 printf("[003] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp); 30 if (0 !== ($tmp = mysqli_insert_id($link))) 31 printf("[005] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp); 39 printf("[007] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp); 119 printf("[021] Expecting int/1000, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_real_escape_string_eucjpms.phpt | 45 …if ('�����Ȥ߹�碌�Ǥ�\\\\�����Ȥ߹�碌�Ǥ�' !== ($tmp = mysqli_real_escape_string($link, '�����Ȥ߹�碌�Ǥ�\\���… 46 printf("[004] Expecting \\\\, got %s\n", $tmp); 48 …if ('�����Ȥ߹�碌�Ǥ�\"�����Ȥ߹�碌�Ǥ�' !== ($tmp = mysqli_real_escape_string($link, '�����Ȥ߹�碌�Ǥ�"�����Ȥ… 49 printf("[005] Expecting \", got %s\n", $tmp); 51 …if ("�����Ȥ߹�碌�Ǥ�\'�����Ȥ߹�碌�Ǥ�" !== ($tmp = mysqli_real_escape_string($link, "�����Ȥ߹�碌�Ǥ�'�����Ȥ… 52 printf("[006] Expecting ', got %s\n", $tmp); 54 …if ("�����Ȥ߹�碌�Ǥ�\\n�����Ȥ߹�碌�Ǥ�" !== ($tmp = mysqli_real_escape_string($link, "�����Ȥ߹�碌�Ǥ�\n����… 55 printf("[007] Expecting \\n, got %s\n", $tmp); 57 …if ("�����Ȥ߹�碌�Ǥ�\\r�����Ȥ߹�碌�Ǥ�" !== ($tmp = mysqli_real_escape_string($link, "�����Ȥ߹�碌�Ǥ�\r����… 58 printf("[008] Expecting \\r, got %s\n", $tmp); [all …]
|
H A D | mysqli_real_escape_string_euckr.phpt | 44 if ('�Ǵ뼺\\\\�Ǵ뼺' !== ($tmp = mysqli_real_escape_string($link, '�Ǵ뼺\\�Ǵ뼺'))) 45 printf("[004] Expecting \\\\, got %s\n", $tmp); 47 if ('�Ǵ뼺\"�Ǵ뼺' !== ($tmp = mysqli_real_escape_string($link, '�Ǵ뼺"�Ǵ뼺'))) 48 printf("[005] Expecting \", got %s\n", $tmp); 50 if ("�Ǵ뼺\'�Ǵ뼺" !== ($tmp = mysqli_real_escape_string($link, "�Ǵ뼺'�Ǵ뼺"))) 51 printf("[006] Expecting ', got %s\n", $tmp); 53 if ("�Ǵ뼺\\n�Ǵ뼺" !== ($tmp = mysqli_real_escape_string($link, "�Ǵ뼺\n�Ǵ뼺"))) 54 printf("[007] Expecting \\n, got %s\n", $tmp); 56 if ("�Ǵ뼺\\r�Ǵ뼺" !== ($tmp = mysqli_real_escape_string($link, "�Ǵ뼺\r�Ǵ뼺"))) 57 printf("[008] Expecting \\r, got %s\n", $tmp); [all …]
|
H A D | mysqli_real_escape_string_gb2312.phpt | 45 if ('����\\\\����' !== ($tmp = mysqli_real_escape_string($link, '����\\����'))) 46 printf("[004] Expecting \\\\, got %s\n", $tmp); 48 if ('����\"����' !== ($tmp = mysqli_real_escape_string($link, '����"����'))) 49 printf("[005] Expecting \", got %s\n", $tmp); 51 if ("����\'����" !== ($tmp = mysqli_real_escape_string($link, "����'����"))) 52 printf("[006] Expecting ', got %s\n", $tmp); 54 if ("����\\n����" !== ($tmp = mysqli_real_escape_string($link, "����\n����"))) 55 printf("[007] Expecting \\n, got %s\n", $tmp); 57 if ("����\\r����" !== ($tmp = mysqli_real_escape_string($link, "����\r����"))) 58 printf("[008] Expecting \\r, got %s\n", $tmp); [all …]
|
H A D | mysqli_embedded_connect.phpt | 12 $tmp = NULL; 15 if (NULL !== ($tmp = @mysqli_embedded_connect())) 16 printf("[001] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 23 if (!is_bool($tmp = mysqli_embedded_connect($db . '_unknown'))) 24 printf("[003] Expecting boolean/[true|false] value, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_sqlstate.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_sqlstate())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (!is_null($tmp = @mysqli_sqlstate($link))) 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_connect_attr.phpt | 18 $tmp = mysqli_fetch_assoc($res); 20 if($tmp['count'] == "0") { 29 $tmp = mysqli_fetch_assoc($res); 31 if($tmp['Value'] == "OFF") { 42 $tmp = NULL; 53 $tmp = mysqli_fetch_assoc($res); 54 if (!$tmp || !isset($tmp['ATTR_NAME'])) { 56 } elseif ($tmp['ATTR_VALUE'] !== $host) { 66 $tmp = mysqli_fetch_assoc($res); 67 if (!$tmp || !isset($tmp['ATTR_NAME'])) { [all …]
|
H A D | mysqli_get_server_version.phpt | 13 if (!is_null($tmp = @mysqli_get_server_version())) 14 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 16 if (!is_null($tmp = @mysqli_get_server_version(NULL))) 17 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_connect_twice.phpt | 20 if (true !== ($tmp = my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket))) 21 printf("[003] Expecting boolean/true got %s/%s\n", gettype($tmp), $tmp); 24 printf("[004] Expecting int/any got %s/%s\n", gettype($tmp), $tmp); 45 if (true !== ($tmp = $link->real_connect($host, $user, $passwd, $db, $port, $socket))) 46 printf("[009] Expecting boolean/true got %s/%s\n", gettype($tmp), $tmp); 49 printf("[010] Expecting int/any got %s/%s\n", gettype($tmp), $tmp); 63 if (NULL !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket))) 64 printf("[013] Expecting NULL got %s/%s\n", gettype($tmp), $tmp); 70 if (NULL !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket))) 71 printf("[015] Expecting NULL got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_multi_query.phpt | 18 $tmp = NULL; 21 if (!is_null($tmp = @mysqli_multi_query())) 22 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 25 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 30 printf("[003] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); 48 $tmp = ob_get_contents(); 53 … $tmp = trim(preg_replace('@Strict Standards: mysqli_next_result\(\).*on line \d+@ism', '', $tmp)); 55 print trim($tmp) . "\n"; 86 $tmp = ob_get_contents(); 91 … $tmp = trim(preg_replace('@Strict Standards: mysqli_next_result\(\).*on line \d+@ism', '', $tmp)); [all …]
|
H A D | mysqli_fetch_row.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_fetch_row())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (!is_null($tmp = @mysqli_fetch_row($link))) 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_kill.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_kill())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (!is_null($tmp = @mysqli_kill($link))) 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 26 printf("[003] Expecting boolean/any, got %s/%s\n", gettype($tmp), $tmp); 31 $tmp = mysqli_kill($link, $thread_id); 32 if (!is_bool($tmp)) 33 printf("[005] Expecting boolean/any, got %s/%s\n", gettype($tmp), $tmp); 63 (!$tmp = mysqli_fetch_assoc($res))) { [all …]
|
/PHP-7.2/ext/standard/tests/file/ |
H A D | is_file_variation1.phpt | 16 $filename = $file_path."/is_file_variation1.tmp"; 24 $file_handle = fopen( $file_path."/is_file_variation1.tmp", "r"); 27 var_dump( is_file($file_path."/is_file_variation1.tmp") ); // expected true 29 unlink($file_path."/is_file_variation1.tmp"); 33 fclose( fopen($file_path."/is_file_variation1.tmp", "w") ); 34 var_dump( is_file($file_path."/is_file_variation1.tmp") ); //expected true 36 unlink($file_path."/is_file_variation1.tmp"); 39 touch($file_path."/is_file_variation1.tmp"); 40 var_dump( is_file($file_path."/is_file_variation1.tmp") ); // expected true 42 unlink($file_path."/is_file_variation1.tmp");
|
H A D | mkdir-006.phpt | 6 $dirpath = "./tmp/foo//bar/logs"; 14 rmdir("./tmp/foo/bar/logs"); 15 rmdir("./tmp/foo/bar/"); 16 rmdir("./tmp/foo/"); 17 rmdir("./tmp/");
|
H A D | is_dir_variation2.phpt | 39 $filename = $file_path."/is_dir_variation2.tmp"; 45 symlink($file_path."/is_dir_variation2.tmp", $file_path."/is_dir_variation2_symlink.tmp"); 46 var_dump( is_dir($file_path."/is_dir_variation2_symlink.tmp") ); 50 link($file_path."/is_dir_variation2.tmp", $file_path."/is_dir_variation2_link.tmp"); 51 var_dump( is_dir($file_path."/is_dir_variation2_link.tmp") ); 65 if(file_exists($file_path."/is_dir_variation2_symlink.tmp")) { 66 unlink($file_path."/is_dir_variation2_symlink.tmp"); 68 if(file_exists($file_path."/is_dir_variation2_link.tmp")) { 69 unlink($file_path."/is_dir_variation2_link.tmp"); 71 if(file_exists($file_path."/is_dir_variation2.tmp")) { [all …]
|
H A D | fseek_dir_basic.phpt | 54 string(9) "file1.tmp" 56 string(9) "file2.tmp" 58 string(9) "file3.tmp" 72 string(9) "file1.tmp" 74 string(9) "file2.tmp" 76 string(9) "file3.tmp" 90 string(9) "file1.tmp" 92 string(9) "file2.tmp" 94 string(9) "file3.tmp"
|
H A D | is_file_error.phpt | 15 $file_handle = fopen($file_path."/is_file_error.tmp", "w"); 16 var_dump( is_file( $file_path."/is_file_error.tmp", $file_path."/is_file_error1.tmp") ); 19 var_dump( is_file($file_path."/is_file_error1.tmp") ); 31 if(file_exists($file_path."/is_file_error.tmp")) { 32 unlink($file_path."/is_file_error.tmp"); 34 if(file_exists($file_path."/is_file_error1.tmp")) { 35 unlink($file_path."/is_file_error1.tmp");
|
H A D | is_file_variation4.phpt | 17 $file_handle = fopen($dir_name."/is_file_variation4.tmp", "w"); 21 "/is_file_variation4/is_file_variation4.tmp", 24 "/is_file_variation4/is_file_variation4.tmp/", 27 "/is_file_variation4//is_file_variation4.tmp", 28 "//is_file_variation4//is_file_variation4.tmp", 29 "/is_file_variation4/*.tmp", 30 "is_file_variation4/is_file*.tmp", 33 "/is_file_variation4/is_file_variation4.tmp".chr(0), 34 "/is_file_variation4/is_file_variation4.tmp\0" 52 unlink($dir_name."/is_file_variation4.tmp");
|
/PHP-7.2/ext/ctype/ |
H A D | ctype.c | 146 zval *c, tmp; \ 156 tmp = *c; \ 157 zval_copy_ctor(&tmp); \ 158 convert_to_string(&tmp); \ 160 tmp = *c; \ 162 if (Z_TYPE(tmp) == IS_STRING) { \ 163 char *p = Z_STRVAL(tmp), *e = Z_STRVAL(tmp) + Z_STRLEN(tmp); \ 165 if (Z_TYPE_P(c) == IS_LONG) zval_dtor(&tmp); \ 170 if (Z_TYPE_P(c) == IS_LONG) zval_dtor(&tmp); \ 174 if (Z_TYPE_P(c) == IS_LONG) zval_dtor(&tmp); \
|
/PHP-7.2/ext/spl/tests/ |
H A D | bug68557.phpt | 5 mkdir(__DIR__ . DIRECTORY_SEPARATOR . 'tmp'); 6 touch(__DIR__ . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'a'); 7 touch(__DIR__ . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'b'); 9 $d = new DirectoryIterator(__DIR__ . DIRECTORY_SEPARATOR . 'tmp'); 34 unlink(__DIR__ . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'a'); 35 unlink(__DIR__ . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'b'); 36 rmdir(__DIR__ . DIRECTORY_SEPARATOR . 'tmp');
|
/PHP-7.2/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_attr_statement_class.phpt | 19 if (false !== ($tmp = @$db->setAttribute(PDO::ATTR_STATEMENT_CLASS))) 20 printf("[001] Expecting boolean/false got %s\n", var_export($tmp, true)); 22 if (false !== ($tmp = @$db->setAttribute(PDO::ATTR_STATEMENT_CLASS, 'foo'))) 23 printf("[002] Expecting boolean/false got %s\n", var_export($tmp, true)); 26 printf("[003] Expecting boolean/false got %s\n", var_export($tmp, true)); 30 printf("[004] Expecting boolean/false got %s\n", var_export($tmp, true)); 39 printf("[005] Expecting boolean/false got %s\n", var_export($tmp, true)); 49 printf("[006] Expecting boolean/false got %s\n", var_export($tmp, true)); 59 printf("[007] Expecting boolean/true got %s\n", var_export($tmp, true)); 69 printf("[008] Expecting boolean/true got %s\n", var_export($tmp, true)); [all …]
|
H A D | pdo_mysql_commit.phpt | 19 if (true !== ($tmp = $db->beginTransaction())) { 20 printf("[001] Expecting true, got %s/%s\n", gettype($tmp), $tmp); 26 if (true !== ($tmp = $db->commit())) { 33 if (1 !== ($tmp = $db->getAttribute(PDO::ATTR_AUTOCOMMIT))) 35 gettype($tmp), var_export($tmp, true)); 37 if (true !== ($tmp = $db->beginTransaction())) 38 printf("[004] Expecting true, got %s/%s\n", gettype($tmp), $tmp); 42 if (true !== ($tmp = $db->commit())) 59 if (true !== ($tmp = $db->beginTransaction())) 60 printf("[007] Expecting true, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | pdo_mysql_pconnect.phpt | 23 $tmp = $stmt->fetch(PDO::FETCH_ASSOC); 24 if ($tmp['_pers'] !== '1') 28 $tmp = $stmt->fetch(PDO::FETCH_ASSOC); 29 $con1 = $tmp['_con1']; 32 $tmp = $stmt->fetch(PDO::FETCH_ASSOC); 33 $con2 = $tmp['_con2']; 41 $tmp = $stmt->fetch(PDO::FETCH_ASSOC); 42 $con1 = $tmp['_con1']; 58 if (!strstr($tmp, '2006')) 65 $con1 = $tmp['_con1']; [all …]
|
/PHP-7.2/ext/date/lib/ |
H A D | parse_tz.c | 459 timelib_tzinfo *tmp; in timelib_parse_tzfile() local 470 timelib_tzinfo_dtor(tmp); in timelib_parse_tzfile() 475 read_header(&tzf, tmp); in timelib_parse_tzfile() 506 tmp = NULL; in timelib_parse_tzfile() 509 return tmp; in timelib_parse_tzfile() 553 return tmp; in timelib_tzinfo_clone() 639 tmp->is_dst = to->isdst; in timelib_get_time_zone_info() 644 tmp->is_dst = 0; in timelib_get_time_zone_info() 645 tmp->transition_time = 0; in timelib_get_time_zone_info() 652 tmp->offset = offset; in timelib_get_time_zone_info() [all …]
|