/php-src/ext/standard/tests/file/ |
H A D | bug75679.phpt | 8 …str_pad ($d . '/' . str_repeat (str_pad ('bug75679_path_259_characters_long_', 100, '_') . '/', 1)… 9 …str_pad ($d . '/' . str_repeat (str_pad ('bug75679_path_260_characters_long_', 100, '_') . '/', 1)… 10 …str_pad ($d . '/' . str_repeat (str_pad ('bug75679_path_261_characters_long_', 100, '_') . '/', 1)… 32 …str_pad ($d . '/' . str_repeat (str_pad ('bug75679_path_259_characters_long_', 100, '_') . '/', 1)… 33 …str_pad ($d . '/' . str_repeat (str_pad ('bug75679_path_260_characters_long_', 100, '_') . '/', 1)… 34 …str_pad ($d . '/' . str_repeat (str_pad ('bug75679_path_261_characters_long_', 100, '_') . '/', 1)…
|
H A D | bug78296.phpt | 5 $dir = str_pad(__DIR__ . '/bug78296', 250, '_'); 14 $dir = str_pad(__DIR__ . '/bug78296', 250, '_');
|
H A D | fnmatch_maxpathlen.phpt | 9 $longstring = str_pad('blah', PHP_MAXPATHLEN);
|
/php-src/ext/standard/tests/strings/ |
H A D | str_pad.phpt | 2 str_pad() function 10 $input_string = "str_pad()"; 15 var_dump( str_pad($input_string, $pad_length, $pad_string, STR_PAD_LEFT) ); 68 str_pad($input_string, 12, ""); 76 str_pad($input_string, $pad_length, "+", 15); 84 string(20) "str_pad() " 85 string(20) "str_pad()-+-+-+-+-+-" 86 string(20) "-+-+-+-+-+-str_pad()" 87 string(20) "str_pad()-+-+-+-+-+-" 88 string(20) "-+-+-str_pad()-+-+-+" [all …]
|
H A D | str_pad_variation1.phpt | 2 Test str_pad() function : usage variations - large values for '$pad_length' argument 11 /* Test str_pad() function: with unexpected inputs for '$pad_length' 15 echo "*** Testing str_pad() function: with large value for for 'pad_length' argument ***\n"; 22 var_dump( str_pad($input, $extra_large_pad_length) ); 28 var_dump( str_pad($input, $php_int_max_pad_length) ); 33 *** Testing str_pad() function: with large value for for 'pad_length' argument *** 34 str_pad(): Argument #2 ($length) must be of type int, float given
|
H A D | str_pad_variation2.phpt | 2 str_pad() function: usage variations - Non printable chars 7 // Split from str_pad for NUL Bytes 27 var_dump( bin2hex( str_pad($string, $pad_length) ) ); 29 var_dump( bin2hex( str_pad($string, $pad_length, $pad_string) ) ); 30 var_dump( bin2hex( str_pad($string, $pad_length, $pad_string, STR_PAD_LEFT) ) ); 31 var_dump( bin2hex( str_pad($string, $pad_length, $pad_string, STR_PAD_RIGHT) ) ); 32 var_dump( bin2hex( str_pad($string, $pad_length, $pad_string, STR_PAD_BOTH) ) );
|
H A D | str_pad_variation5.phpt | 2 Test str_pad() function : usage variations - unexpected large value for '$pad_length' argument 14 /* Test str_pad() function: with unexpected inputs for '$pad_length' 18 echo "*** Testing str_pad() function: with large value for for 'pad_length' argument ***\n"; 23 var_dump( str_pad($input, $pad_length) ); 27 *** Testing str_pad() function: with large value for for 'pad_length' argument ***
|
/php-src/ext/bcmath/tests/ |
H A D | bcdiv_by_one.phpt | 17 $dividend_label = str_pad($dividend, 4, ' ', STR_PAD_LEFT); 18 $divisor_label = str_pad($divisor, 6, ' ', STR_PAD_LEFT); 20 $quot_label = str_pad($quot, $scale + 2 + ($scale ? 1 : 0), ' ', STR_PAD_LEFT);
|
H A D | bcdiv_by_pow_10.phpt | 17 $dividend_label = str_pad($dividend, 9, ' ', STR_PAD_LEFT); 18 $divisor_label = str_pad($divisor, 5, ' ', STR_PAD_LEFT); 20 $quot_label = str_pad($quot, $scale + 7 + ($scale ? 1 : 0), ' ', STR_PAD_LEFT);
|
H A D | bcround_early_return.phpt | 35 …$result = str_pad("[{$num}, {$precision}]", 33, ' ', STR_PAD_LEFT) . ' => ' . bcround($num, $preci… 45 …$result = str_pad("[{$num}, {$precision}]", 33, ' ', STR_PAD_LEFT) . ' => ' . bcround($num, $preci… 50 echo str_pad($mode->name, 24, ' ', STR_PAD_LEFT) . ": result is same to HalfAwayFromZero\n"; 52 …echo str_pad($mode->name, 24, ' ', STR_PAD_LEFT) . ": result is not same to HalfAwayFromZero, fail…
|
H A D | bcceil.phpt | 27 echo str_pad("$num", 50, ' ', STR_PAD_LEFT), ' => ', bcceil($num), "\n";
|
H A D | bcfloor.phpt | 27 echo str_pad("$num", 50, ' ', STR_PAD_LEFT), ' => ', bcfloor($num), "\n";
|
H A D | run_bcmath_tests_function.inc | 18 str_pad($secondTerm, STRING_PADDING),
|
H A D | bcround_test_helper.inc | 6 …echo str_pad("[{$num}, {$precision}]", 17, ' ', STR_PAD_LEFT), " => ", bcround($num, $precision, $…
|
/php-src/Zend/tests/ |
H A D | bug46106.phpt | 17 $x = new ReflectionFunction('str_pad'); 26 str_pad() expects at least 2 arguments, 1 given
|
/php-src/ext/standard/tests/array/ |
H A D | bug76713.phpt | 12 $obj->prop = str_pad("a", 10, 'a'); 29 $obj->name = str_pad("b", 10, 'b');
|
/php-src/ext/standard/tests/file/windows_mb_path/ |
H A D | bug64699.phpt | 38 … echo "filetype()[".str_pad($type, 4)."] == is_dir()[".str_pad($type2, 4)."] -> $comp: {$file}\n";
|
H A D | test_long_path_bug30730.phpt | 26 $dest_dir =str_pad($dir, 200, '0');
|
/php-src/tests/output/ |
H A D | bug60768.phpt | 13 echo str_pad($i, 9, ' ', STR_PAD_LEFT) . "\n"; // full buffer dumped every time
|
/php-src/ext/mbstring/ |
H A D | gen_rare_cp_bitvec.php | 53 $result .= "0x" . str_pad(dechex($bitvec[$i]), 8, '0', STR_PAD_LEFT) . ",";
|
/php-src/ext/fileinfo/ |
H A D | create_data_file.php | 40 $chunks[count($chunks) - 1] = str_pad($chunks[count($chunks) - 1], CHUNK_SIZE, chr(0));
|
/php-src/ext/standard/tests/class_object/ |
H A D | is_a.phpt | 18 …echo str_pad('is_a( OBJECT:'.get_class($this).', '.$sub.') = ', 60) . (is_a($this, $sub) ? 'yes' :… 19 …echo str_pad('is_a( STRING:'.get_class($this).', '.$sub.') = ', 60). (is_a(get_class($this), $sub)… 20 …echo str_pad('is_a( STRING:'.get_class($this).', '.$sub.', true) = ', 60). (is_a(get_class($this),… 21 …echo str_pad('is_subclass_of( OBJECT:'.get_class($this).', '.$sub.') = ', 60). (is_subclass_of($t… 22 …echo str_pad('is_subclass_of( STRING:'.get_class($this).', '.$sub.') = ', 60). (is_subclass_of(get… 23 …echo str_pad('is_subclass_of( STRING:'.get_class($this).', '.$sub.',false) = ', 60). (is_subclass_… 27 …echo str_pad('is_a( STRING:undefB, '.$sub.',true) = ', 60). (is_a('undefB', $sub, true) ? 'yes' :… 28 …echo str_pad('is_a( STRING:undefB, '.$sub.') = ', 60). (is_a('undefB', $sub) ? 'yes' : 'no')."\n"; 29 …echo str_pad('is_subclass_of( STRING:undefB, '.$sub.',false) = ', 60). (is_subclass_of('undefB', … 30 …echo str_pad('is_subclass_of( STRING:undefB, '.$sub.') = ', 60). (is_subclass_of('undefB', $sub) …
|
/php-src/Zend/tests/named_params/ |
H A D | internal.phpt | 11 var_dump(str_pad("foo", 6, pad_type: STR_PAD_LEFT));
|
/php-src/ext/standard/tests/streams/ |
H A D | bug78902.phpt | 14 fputs($fp, str_pad('', min($chunk,$size)));
|
/php-src/ext/standard/tests/math/ |
H A D | fpow.phpt | 29 print str_pad($base, 4, " ", STR_PAD_LEFT) . 31 str_pad($exp, 4) .
|