Home
last modified time | relevance | path

Searched refs:sprintf (Results 26 – 50 of 393) sorted by relevance

12345678910>>...16

/php-src/ext/intl/tests/
H A Dresourcebundle_individual.phpt14 $str_res .= sprintf( "length: %d\n", ut_resourcebundle_count($r) );
15 $str_res .= sprintf( "teststring: %s\n", ut_resourcebundle_get($r, 'teststring' ) );
16 $str_res .= sprintf( "testint: %d\n", ut_resourcebundle_get($r, 'testint' ) );
20 $str_res .= sprintf( "testbin: %s\n", bin2hex(ut_resourcebundle_get( $r,'testbin' )) );
23 $str_res .= sprintf( "testtable: %d\n", ut_resourcebundle_get($r2, 'major' ) );
26 $str_res .= sprintf( "testarray: %s\n", ut_resourcebundle_get($r2, 2 ) );
/php-src/ext/mysqli/tests/
H A Dmysqli_pam_sha256_public_key_option_invalid.phpt22 die(sprintf("skip [%d] %s\n", $link->errno, $link->error));
36 die(sprintf("skip [%d] %s\n", $link->errno, $link->error));
40 die(sprintf("skip Failed to check RSA pub key, [%d] %s\n", $link->errno, $link->error));
48 $file = sprintf("%s%s%s_%s", sys_get_temp_dir(), DIRECTORY_SEPARATOR, "test_sha256_" , @date("Ymd")…
50 die(sprintf("skip Cannot create RSA pub key file '%s'", $file));
53 die(sprintf("skip Failed to create pub key file"));
65 die(sprintf("skip CREATE USER failed [%d] %s", $link->errno, $link->error));
70 die(sprintf("skip SET PASSWORD failed [%d] %s", $link->errno, $link->error));
76 die(sprintf("SKIP [%d] %s\n", $link->errno, $link->error));
79 if (!$link->query(sprintf("GRANT SELECT ON TABLE %s.test TO shatest@'%%'", $db)) ||
[all …]
H A Dmysqli_pam_sha256_public_key_ini.phpt22 die(sprintf("skip [%d] %s\n", $link->errno, $link->error));
36 die(sprintf("skip [%d] %s\n", $link->errno, $link->error));
40 die(sprintf("skip Failed to check RSA pub key, [%d] %s\n", $link->errno, $link->error));
51 die(sprintf("skip Cannot create RSA pub key file '%s'", $file));
56 die(sprintf("skip Failed to create pub key file"));
68 die(sprintf("skip CREATE USER failed [%d] %s", $link->errno, $link->error));
73 die(sprintf("skip SET PASSWORD failed [%d] %s", $link->errno, $link->error));
79 die(sprintf("SKIP [%d] %s\n", $link->errno, $link->error));
82 if (!$link->query(sprintf("GRANT SELECT ON TABLE %s.test TO shatest@'%%'", $db)) ||
83 !$link->query(sprintf("GRANT SELECT ON TABLE %s.test TO shatest@'localhost'", $db))) {
[all …]
H A Dmysqli_pam_sha256.phpt16 …die(sprintf("skip Can't connect to MySQL Server - [%d] %s", mysqli_connect_errno(), mysqli_connect…
22 die(sprintf("skip [%d] %s\n", $link->errno, $link->error));
36 die(sprintf("skip [%d] %s\n", $link->errno, $link->error));
40 die(sprintf("skip Failed to check RSA pub key, [%d] %s\n", $link->errno, $link->error));
44 …die(sprintf("skip Server misconfiguration? RSA pub key is suspicious, [%d] %s\n", $link->errno, $l…
56 die(sprintf("skip CREATE USER failed [%d] %s", $link->errno, $link->error));
61 die(sprintf("skip SET PASSWORD failed [%d] %s", $link->errno, $link->error));
67 die(sprintf("SKIP [%d] %s\n", $link->errno, $link->error));
70 if (!$link->query(sprintf("GRANT SELECT ON TABLE %s.test TO shatest@'%%'", $db)) ||
71 !$link->query(sprintf("GRANT SELECT ON TABLE %s.test TO shatest@'localhost'", $db))) {
[all …]
H A Dlocal_infile_tools.inc16 … return sprintf("Server variable 'local_infile' seems not set to 'ON', found '%s'", $row['Value']);
27 if (!mysqli_query($link, sprintf('DROP TABLE IF EXISTS %s', $table_name))) {
31 …if (!mysqli_query($link, $sql = sprintf('CREATE TABLE %s(id INT, label CHAR(1), PRIMARY KEY(id)) E…
37 mysqli_query($link, sprintf('DROP TABLE IF EXISTS %s', $table_name));
41 if (!@mysqli_query($link, sprintf("LOAD DATA LOCAL INFILE '%s'
48 mysqli_query($link, sprintf('DROP TABLE IF EXISTS %s', $table_name));
54 mysqli_query($link, sprintf('DROP TABLE IF EXISTS %s', $table_name));
99 if (!mysqli_query($link, sprintf("DELETE FROM test"))) {
104 if (!@mysqli_query($link, sprintf("LOAD DATA LOCAL INFILE '%s'
H A Dbug55283.phpt16 die(sprintf("skip Connect failed, [%d] %s", mysqli_connect_errno(), mysqli_connect_error()));
19 die(sprintf("skip SSL only supported on TCP/IP"));
30 … die(sprintf("skip Failed to test for MySQL SSL support, [%d] %s", $link->errno, $link->error));
36 die(sprintf("skip Failed to test for MySQL SSL support, [%d] %s", $link->errno, $link->error));
39 die(sprintf("skip MySQL has no SSL support, [%d] %s", $link->errno, $link->error));
/php-src/ext/standard/tests/strings/
H A Dbug69751.phpt2 Bug #69751: Change Error message of sprintf/printf for missing/typo position specifier.
7 sprintf('%$s, %2$s %1$s', "a", "b");
13 sprintf('%3$s, %2$s %1$s', "a", "b");
19 sprintf('%2147483648$s, %2$s %1$s', "a", "b");
H A Dbug23894_32bit.phpt2 Bug #23894 (sprintf() decimal specifiers problem) 32bit version
10 $test = sprintf("%04d", $a);
12 $test = sprintf("% 13u", $a);
H A Dbug23894_64bit.phpt2 Bug #23894 (sprintf() decimal specifiers problem) 64bit version
10 $test = sprintf("%04d", $a);
12 $test = sprintf("% 13u", $a);
H A Dsprintf_variation4.phpt2 sprintf %u With signed integer 32bit
17 var_dump(sprintf("%%u = '%u'", $n)); // unsigned integer representation of a positive integer
18 var_dump(sprintf("%%u = '%u'", $u)); // unsigned integer representation of a negative integer
H A Dsprintf_variation4_64bit.phpt2 sprintf %u With signed integer 32bit
17 var_dump(sprintf("%%u = '%u'", $n)); // unsigned integer representation of a positive integer
18 var_dump(sprintf("%%u = '%u'", $u)); // unsigned integer representation of a negative integer
H A Dsprintf_variation53.phpt2 Test sprintf() function : usage variations - with whitespaces in format strings
5 echo "*** Testing sprintf() : with white spaces in format strings ***\n";
25 var_dump( sprintf($format, 1234) );
31 *** Testing sprintf() : with white spaces in format strings ***
H A Dsprintf_variation27.phpt2 Test sprintf() function : usage variations - char formats with char values
5 echo "*** Testing sprintf() : char formats with char values ***\n";
21 var_dump( sprintf($format, $char_value) );
29 *** Testing sprintf() : char formats with char values ***
/php-src/ext/date/tests/
H A Dbug33957.phpt23 echo sprintf(" %02d-", date("W", strtotime("$year-12-$i")));
24 echo sprintf("%04d ", date("o", strtotime("$year-12-$i")));
31 echo sprintf(" %02d-", date("W", strtotime("$year-1-$i")));
32 echo sprintf("%04d ", date("o", strtotime("$year-1-$i")));
/php-src/ext/standard/tests/file/windows_links/
H A Dreadlink_compat.phpt22 exec(sprintf('mountvol "%s" %s', $tmpDir, $volume));
24 exec(sprintf('mountvol "%s" /D', $tmpDir));
31 exec(sprintf('mklink /J "%s" %s', $link, $volume));
38 exec(sprintf('mklink /J "%s" "%s"', $link, $target));
45 exec(sprintf('mklink /D "%s" "%s"', $link, $target));
48 exec(sprintf('mklink /D "%s" directory', $link));
59 exec(sprintf('mklink "%s" "%s"', $link, $filename));
62 exec(sprintf('mklink "%s" directory\\a.php', $link));
/php-src/ext/sockets/tests/
H A Dsocket_sentto_recvfrom_ipv4_udp.phpt13 die(sprintf(
24 die(sprintf(
28 die(sprintf(
47 die(sprintf(
58 die(sprintf(
H A Dsocket_sentto_recvfrom_ipv6_udp.phpt21 die(sprintf(
32 die(sprintf(
36 die(sprintf(
55 die(sprintf(
66 die(sprintf(
/php-src/sapi/phpdbg/
H A Dtest.php3 include (sprintf("%s/web-bootstrap.php", dirname(__FILE__)));
9 private $sprintf = "%s: %s\n"; variable in phpdbg
12 printf($this->sprintf, __METHOD__, $greeting);
H A Dweb-bootstrap.php16 define("PHPDBG_BOOTSTRAPPED", sprintf("/%s", PHPDBG_BOOTSTRAP));
44 'SCRIPT_FILENAME' => sprintf(
/php-src/ext/mbstring/tests/
H A Dsimpletest.phpt21 echo sprintf("sprintf: %s%s\n",$s1, $s2);
32 sprintf: �ޥ���Х��ȴؿ����Ȥ��ޤ�������ʸ����Ϣ�뤵��Ƥ���Ϥ���
/php-src/ext/pdo_mysql/tests/
H A Dpdo_mysql_attr_multi_statements.phpt26 $create = sprintf('CREATE TABLE %s(id INT)', $table);
28 $db->exec(sprintf('INSERT INTO %s(id) VALUES (1)', $table));
29 $stmt = $db->query(sprintf('SELECT * FROM %s; INSERT INTO %s(id) VALUES (2)', $table, $table));
33 $stmt = $db->query(sprintf('SELECT id FROM %s', $table));
43 $stmt = $db->query(sprintf('SELECT * FROM %s; INSERT INTO %s(id) VALUES (3)', $table, $table));
48 $stmt = $db->query(sprintf('SELECT id FROM %s', $table));
H A Dpdo_mysql_attr_init_command.phpt23 $create = sprintf('CREATE TABLE %s(id INT)', $table);
31 $db->exec(sprintf('INSERT INTO %s(id) VALUES (1)', $table));
32 $stmt = $db->query(sprintf('SELECT id FROM %s', $table));
/php-src/benchmark/
H A Dgenerate_diff.php47 return sprintf('%.0fM', $instructions / 1e6);
49 return sprintf('%.0fK', $instructions / 1e3);
60 return sprintf('%.2f%%', $instructionDiff / $baseInstructions * 100);
/php-src/ext/standard/tests/array/
H A Dbug35014.phpt13 array(8.993, 7443241,988, sprintf("%u", -1)+0.44),
14 array(2,sprintf("%u", -1)),
/php-src/ext/ldap/tests/
H A Dldap_get_option_controls.phpt23 $str = sprintf("%'.02x", $int);
24 $hex .= '02'.sprintf("%'.02x%s", strlen($str)/2, $str);
26 $hex .= '04'.sprintf("%'.02x", strlen($cookie)).bin2hex($cookie);
27 return hex2bin('30'.sprintf("%'.02x", strlen($hex)/2).$hex);

Completed in 29 milliseconds

12345678910>>...16