Home
last modified time | relevance | path

Searched refs:bin (Results 1 – 25 of 108) sorted by relevance

12345

/php-src/ext/sodium/tests/
H A Dcrypto_hex.phpt7 $bin = random_bytes(random_int(1, 1000));
8 $hex = sodium_bin2hex($bin);
9 $phphex = bin2hex($bin);
13 var_dump($bin2 === $bin);
16 var_dump($bin2 === $bin);
/php-src/tests/security/
H A Dopen_basedir_001.phpt8 if (!is_dir("/usr/local/bin")) {
9 die('skip.. no /usr/local/bin on this machine');
16 var_dump(ini_set("open_basedir", "/usr/local/bin"));
23 string(14) "/usr/local/bin"
25 string(14) "/usr/local/bin"
/php-src/ext/mysqli/tests/
H A Dmysqli_fetch_assoc_bit.phpt21 $bin = '';
24 $bin .= '1';
27 $bin .= '0';
30 return $bin;
68 $bin = ($bits < 32) ? decbin($value) : dec32bin($value, $bits);
69 $sql = sprintf("INSERT INTO test(id, bit_value) VALUES (%s, b'%s')", $value, $bin);
70 for ($i = 0; ($i < strlen($bin)) && ($bin[$i] == '0'); $i++)
72 $bin2 = substr($bin, $i, strlen($bin));
84 if (($value != $row['id']) || (($bin != $row['_bin']) && ($bin2 != $row['_bin']))) {
87 $bits, $value, $bits, $row['id'], $row['_bin'], $bin, $bin2);
[all …]
H A Dmysqli_stmt_get_result_bit.phpt24 $bin = '';
27 $bin .= '1';
30 $bin .= '0';
33 return $bin;
74 $bin = ($bits < 32) ? decbin($value) : dec32bin($value, $bits);
75 $sql = sprintf("INSERT INTO test(id, bit_value) VALUES (%s, b'%s')", $value, $bin);
76 for ($i = 0; ($i < strlen($bin)) && ($bin[$i] == '0'); $i++)
78 $bin2 = substr($bin, $i, strlen($bin));
96 if (($value != $row['id']) || (($bin != $row['_bin']) && ($bin2 != $row['_bin']))) {
99 $bits, $value, $bits, $row['id'], $row['_bin'], $bin, $bin2);
[all …]
H A Dmysqli_stmt_bind_result_bit.phpt16 $bin = '';
19 $bin .= '1';
22 $bin .= '0';
25 return $bin;
89 $bin = ($bits < 32) ? decbin($value) : dec32bin($value, $bits);
90 for ($i = 0; ($i < strlen($bin)) && ($bin[$i] == '0'); $i++)
92 $bin2 = substr($bin, $i, strlen($bin));
126 if (($value != $row['id']) || (($bin != $row['_bin']) && ($bin2 != $row['_bin']))) {
128 … printf("[012 - %d] Insert of %s in BIT(%d) column might have failed. id = %s, bin = %s (%s/%s)\n",
129 $bits, $value, $bits, $row['id'], $row['_bin'], $bin, $bin2);
/php-src/ext/opcache/tests/
H A Dbug78185.phpt14 $pattern = __DIR__ . '/*/' . __DIR__ . '/*78185.php.bin';
16 $pattern = __DIR__ . '/*/*/' . str_replace(':', '', __DIR__) . '/*78185.php.bin';
25 $pattern = __DIR__ . '/*/' . __DIR__ . '/*78185.php.bin';
27 $pattern = __DIR__ . '/*/*/' . str_replace(':', '', __DIR__) . '/*78185.php.bin';
39 string(%d) "%s78185.php.bin"
/php-src/ext/phar/tests/
H A Dbug69720.phar2bin���������������������������������������������������������������������������������0000000�������…
H A Dbug79503.phar2 …�����������������������������������������������������������.phar/.metadata.bin��������������������…
3 …�����������������������������������������������������������.phar/.metadata.bin��������������������…
/php-src/ext/standard/tests/file/
H A Dbug81145.phpt9 $src = __DIR__ . "/bug81145_src.bin";
13 @unlink(__DIR__ . "/bug81145_src.bin");
20 $src = __DIR__ . "/bug81145_src.bin";
21 $dst = __DIR__ . "/bug81145_dst.bin";
49 @unlink(__DIR__ . "/bug81145_src.bin");
50 @unlink(__DIR__ . "/bug81145_dst.bin");
/php-src/ext/gd/tests/
H A Dimageloadfont_end_of_file_while_reading_header.phpt13 $bin = "\x41\x41\x41\x41\x00\x00\x00\x00\x00\x00";
15 fwrite($fp, $bin);
20 $bin = "\xe0\x00\x00\x00\x20\x00\x00\x00\x06\x00\x00\x00\x0a\x00\x00";
22 fwrite($fp, $bin);
/php-src/ext/standard/tests/general_functions/
H A Dproc_open02.phpt5 if (!is_executable('/bin/sleep')) echo 'skip no sleep';
13 ['/bin/sleep', '2'],
37 string(10) "/bin/sleep"
58 string(10) "/bin/sleep"
H A Dbug34794.phpt5 if (!is_executable('/bin/cat')) echo 'skip cat not found';
10 $process1 = proc_open('/bin/cat', array(0 => array('pipe', 'r'), 1 =>array('pipe', 'r')), $pipes1);
13 $process2 = proc_open('/bin/cat', array(0 => array('pipe', 'r'), 1 =>array('pipe', 'r')), $pipes2);
H A Dbug39322.phpt6 if (!is_executable('/bin/sleep')) echo 'skip sleep not found';
17 $process = proc_open('/bin/sleep 120', $descriptors, $pipes);
29 string(14) "/bin/sleep 120"
H A Dproc_nice_basic-win.phpt18 static $bin, $pid;
20 if (!$bin) {
23 $bin = end($t);
28 $p = popen('wmic process where name="' . $bin . '"', 'r');
H A Dproc_open.phpt5 if (!is_executable("/bin/cat")) echo "skip";
17 "/bin/cat",
/php-src/.github/actions/setup-x64/
H A Daction.yml14 …docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "<YourStrong@Passw0rd>" -Q "cre…
15 …docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "<YourStrong@Passw0rd>" -Q "cre…
16 …docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "<YourStrong@Passw0rd>" -Q "ALT…
17 …docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "<YourStrong@Passw0rd>" -Q "CRE…
18 …docker exec sql1 /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U SA -P "<YourStrong@Passw0rd>" -Q "CRE…
/php-src/ext/pgsql/tests/
H A D14pg_update_9.phpt18 pg_query($db, "CREATE TABLE {$table_name} (num int, str text, bin bytea)");
24 $fields = array('num'=>'1234', 'str'=>'ABC', 'bin'=>'XYZ');
42 UPDATE "table_14pg_update_9" SET "num"=1234,"str"=E'ABC',"bin"=E'\\x58595a' WHERE "num"=1234;
43 UPDATE "table_14pg_update_9" SET "num"='1234',"str"='ABC',"bin"='XYZ' WHERE "num"='1234';
H A D17result.phpt15 pg_query($db, "CREATE TABLE {$table_name} (num int, str text, bin bytea)");
47 ["bin"]=>
61 ["bin"]=>
77 ["bin"]=>
H A D14pg_update.phpt17 $fields = array('num'=>'1234', 'str'=>'ABC', 'bin'=>'XYZ');
27 UPDATE "php_pgsql_test" SET "num"=1234,"str"=E'ABC',"bin"=E'XYZ' WHERE "num"=1234;
28 UPDATE "php_pgsql_test" SET "num='1234',"str='ABC',"bin='XYZ' WHERE "num='1234';
H A D18pg_escape_bytea_hex.phpt18 pg_query($db, "CREATE TABLE {$table_name} (num int, str text, bin bytea)");
25 pg_query($db, 'INSERT INTO '.$table_name.' (num, bin) VALUES (9876, \''.$esc_image.'\');');
28 $unesc_image = pg_unescape_bytea($rows[0]['bin']);
H A D18pg_escape_bytea_esc.phpt15 pg_query($db, "CREATE TABLE {$table_name} (num int, str text, bin bytea)");
22 pg_query($db, 'INSERT INTO '.$table_name.' (num, bin) VALUES (9876, \''.$esc_image.'\');');
25 $unesc_image = pg_unescape_bytea($rows[0]['bin']);
H A D18pg_escape_bytea_before.phpt18 pg_query($db, "CREATE TABLE {$table_name} (num int, str text, bin bytea)");
22 pg_query($db, 'INSERT INTO '.$table_name.' (num, bin) VALUES (9876, E\''.$esc_image.'\');');
25 $unesc_image = pg_unescape_bytea($rows[0]['bin']);
H A D10pg_convert.phpt18 $fields = array('num'=>'1234', 'str'=>'AAA', 'bin'=>'BBB');
29 [""bin""]=>
/php-src/sapi/phpdbg/tests/
H A Dbug73704.phpt11 prompt> 00001: #!/usr/bin/env php
24 #!/usr/bin/env php
/php-src/.github/actions/setup-caddy/
H A Daction.yml10 …yserver/caddy download --pattern 'caddy_*_linux_amd64.tar.gz' -O - | sudo tar -xz -C /usr/bin caddy
11 sudo chmod +x /usr/bin/caddy

Completed in 43 milliseconds

12345