/PHP-8.4/ext/standard/tests/strings/ |
H A D | wordwrap_error.phpt | 8 $width = 10; 12 // $width arg as negative value 15 // width as zero and cut as false 16 $width = 0; 21 // width as zero and cut as true 22 $width = 0; 33 $width = -10; 38 // width as -ne and cut as true 39 $width = -10; 47 -- width = 0 & cut = false -- [all …]
|
H A D | wordwrap_basic.phpt | 9 $width = 80; 16 // with $width arg 17 var_dump( wordwrap($str, $width) ); 19 var_dump( wordwrap($str, $width, $break) ); 23 $width = 10; 25 var_dump( wordwrap($str, $width, $break, $cut) ); 28 $width = 10; 30 var_dump( wordwrap($str, $width, $break, $cut) );
|
H A D | wordwrap_variation5.phpt | 13 $width = 1; 18 var_dump( wordwrap($str, $width) ); // default break and cut value 23 var_dump( wordwrap($str, $width, $break) ); 24 var_dump( wordwrap($str, $width, $break1) ); 28 var_dump( wordwrap($str, $width, $break, $cut) ); 29 var_dump( wordwrap($str, $width, $break1, $cut) ); 33 var_dump( wordwrap($str, $width, $break, $cut) ); 34 var_dump( wordwrap($str, $width, $break1, $cut) );
|
H A D | sscanf_basic3.phpt | 13 list($part, $length, $width, $depth) = sscanf($str, $format); 14 var_dump($part, $length, $width, $depth); 18 $res = sscanf($str, $format, $part, $length, $width, $depth); 19 var_dump($res, $part, $length, $width, $depth);
|
/PHP-8.4/ext/mbstring/tests/ |
H A D | mb_strimwidth.phpt | 26 print "start=$start width=$width result=["; 151 for ($width = -5; $width <= 5; $width++) { 152 if ($from < 0 && $width < 0 && $width < $from) { 175 if ($width < 0 || $width > 3) { 237 start=0 width=0 result=[2e00 2e00 2e00] length=3 width=3 238 start=0 width=1 result=[2e00 2e00 2e00] length=3 width=3 252 start=9 width=5 result=[a4cf 2e 2e 2e] length=4 width=5 255 start=39 width=10 result=[] length=0 width=0 263 start=1 width=0 result=[2e 2e 2e] length=3 width=3 265 start=0 width=10 result=[3f 3f 3f] length=3 width=3 [all …]
|
H A D | mb_convert_kana.phpt | 56 echo "Convert various full-width characters to half-width:\n"; 63 echo "Convert full-width kana to half-width:\n"; 85 echo "Convert full-width hiragana to full-width katakana:\n"; 90 echo "Convert full-width katakana to full-width hiragana:\n"; 160 Convert ASCII letter to full-width: A -> ff21 161 Convert ASCII letter to full-width: A -> ff21 163 Convert ASCII space to full-width: 3000 182 Convert various full-width characters to half-width: 189 Convert full-width kana to half-width: 211 Convert full-width hiragana to full-width katakana: [all …]
|
H A D | bug76532.phpt | 8 $width = 2147483647; 9 var_dump(mb_strimwidth($string_to_trim, 0, $width));
|
H A D | mb_strimwidth_deprecated.phpt | 2 mb_strimwidth() is deprecated with negative width 10 Deprecated: mb_strimwidth(): passing a negative integer to argument #3 ($width) is deprecated in %s…
|
/PHP-8.4/ext/gd/libgd/ |
H A D | wbmp.c | 112 createwbmp (int width, int height, int color) in createwbmp() argument 120 if (overflow2(sizeof (int), width)) { in createwbmp() 124 if (overflow2(sizeof (int) * width, height)) { in createwbmp() 135 wbmp->width = width; in createwbmp() 174 wbmp->width = getmbi (getin, in); in readwbmp() 175 if (wbmp->width == -1) in readwbmp() 192 if (overflow2(sizeof (int), wbmp->width) || in readwbmp() 212 for (col = 0; col < wbmp->width;) in readwbmp() 218 if (col++ < wbmp->width) in readwbmp() 273 for (col = 0; col < wbmp->width; col++) in writewbmp() [all …]
|
H A D | gd_crop.c | 81 const int width = gdImageSX(im); in gdImageCropAuto() local 90 crop.width = 0; in gdImageCropAuto() 122 for (x = 0; match && x < width; x++) { in gdImageCropAuto() 137 for (x = 0; match && x < width; x++) { in gdImageCropAuto() 144 for (x = 0; match && x < width; x++) { in gdImageCropAuto() 157 crop.width = x - crop.x + 2; in gdImageCropAuto() 183 const int width = gdImageSX(im); in gdImageCropThreshold() local 192 crop.width = 0; in gdImageCropThreshold() 210 for (x = 0; match && x < width; x++) { in gdImageCropThreshold() 231 for (x = 0; match && x < width; x++) { in gdImageCropThreshold() [all …]
|
/PHP-8.4/ext/standard/tests/image/ |
H A D | getimagesize.phpt | 36 string(20) "width="1" height="1"" 51 string(20) "width="4" height="3"" 66 string(20) "width="1" height="1"" 98 string(20) "width="1" height="1"" 113 string(20) "width="1" height="1"" 130 string(20) "width="1" height="1"" 147 string(20) "width="1" height="1"" 164 string(20) "width="2" height="1"" 181 string(20) "width="1" height="3"" 196 string(20) "width="1" height="3"" [all …]
|
H A D | getimagesize_basic.phpt | 55 string(24) "width="200" height="100"" 75 string(24) "width="200" height="100"" 97 string(24) "width="200" height="100"" 115 string(24) "width="200" height="100"" 131 string(24) "width="200" height="100"" 149 string(24) "width="200" height="100"" 165 string(20) "width="1" height="1"" 185 string(20) "width="1" height="1"" 205 string(20) "width="4" height="1""
|
/PHP-8.4/ext/gd/tests/ |
H A D | imagecopyresampled_basic.phpt | 36 list($width, $height) = getimagesize($dest_lge); 37 echo "Size of original: width=". $width . " height=" . $height . "\n"; 39 $new_width = $width * $percent; 44 imagecopyresampled($image_sml, $image_lge, 0, 0, 0, 0, $new_width, $new_height, $width, $height); 48 list($width, $height) = getimagesize($dest_sml); 49 echo "Size of copy: width=". $width . " height=" . $height . "\n"; 66 Size of original: width=400 height=300 67 Size of copy: width=200 height=150
|
H A D | bug66356.phpt | 10 var_dump(imagecrop($img, array("x" => "a", "y" => 0, "width" => 10, "height" => 10))); 12 $arr = array("x" => "a", "y" => "12b", "width" => 10, "height" => 10); 17 var_dump(imagecrop($img, array("x" => 0, "y" => 0, "width" => -1, "height" => 10))); 20 var_dump(imagecrop($img, array("x" => -20, "y" => -20, "width" => 10, "height" => 10))); 23 var_dump(imagecrop($img, array("x" => 0x7fffff00, "y" => 0, "width" => 10, "height" => 10))); 26 var_dump(imagecrop($img, array("x" => 0, "y" => 0, "width" => 65535, "height" => 65535))); 37 [width] => 10
|
H A D | bug77943.phpt | 15 $width = 400; 17 $im = imagecreatetruecolor($width, $height); 22 imagefilledrectangle($im, 0, 0, $width-1, $height-1, $white); 24 imageline($im, 0, 0, $width, $height, $blue); 26 imageline($im, 10, 0, $width, $height-10, $blue);
|
H A D | bug39273.phpt | 13 $width = 300; 18 $img = imagecreatetruecolor($width, $height); 22 imagecopyresized($img, $small, 0,0, 0,0, $width, $height, $srcw, $srch);
|
H A D | bug77198_threshold.phpt | 27 $width = imagesx($cropped); 28 if ($width !== 1) { 29 printf("Pixel at %d, %d: unexpected width (%d)\n", $x, $y, $width);
|
H A D | bug77198_auto.phpt | 30 $width = imagesx($cropped); 31 if ($width !== 1) { 32 printf("Pixel at %d, %d: unexpected width (%d)\n", $x, $y, $width);
|
/PHP-8.4/ext/exif/tests/ |
H A D | bug77540.phpt | 7 $width = $height = 42; 8 $s = exif_thumbnail(__DIR__."/bug77540.jpg", $width, $height); 9 echo "Width ".$width."\n";
|
/PHP-8.4/ext/standard/ |
H A D | image.c | 61 unsigned int width; member 841 result->width = width; in php_handle_tiff() 888 result->width = width; in php_handle_iff() 939 width = (width << 7) | (i & 0x7f); in php_get_wbmp() 941 if (width > 2048) { in php_get_wbmp() 964 (*result)->width = width; in php_get_wbmp() 1019 if (width) { in php_get_xbm() 1032 if (width && height) { in php_get_xbm() 1035 (*result)->width = width; in php_get_xbm() 1086 result->width = 256; in php_handle_ico() [all …]
|
H A D | scanf.c | 587 size_t width; in php_sscanf_internal() local 713 width = 0; in php_sscanf_internal() 785 if (0 == width) { in php_sscanf_internal() 786 width = 1; in php_sscanf_internal() 832 if (width == 0) { in php_sscanf_internal() 842 if (--width == 0) { in php_sscanf_internal() 862 if (width == 0) { in php_sscanf_internal() 926 if ((width == 0) || (width > sizeof(buf) - 1)) { in php_sscanf_internal() 931 for (end = buf; width > 0; width--) { in php_sscanf_internal() 1066 if ((width == 0) || (width > sizeof(buf) - 1)) { in php_sscanf_internal() [all …]
|
H A D | formatted_print.c | 216 size_t width, char padding, in php_sprintf_appenddouble() argument 468 width = precision = 0; in php_formatted_print() 534 width = Z_LVAL_P(tmp); in php_formatted_print() 544 width = 0; in php_formatted_print() 625 width, precision, padding, in php_formatted_print() 636 width, padding, alignment, in php_formatted_print() 643 width, padding, alignment); in php_formatted_print() 656 width, padding, alignment, in php_formatted_print() 670 width, padding, alignment, 3, in php_formatted_print() 677 width, padding, alignment, 4, in php_formatted_print() [all …]
|
/PHP-8.4/ext/dom/tests/modern/html/parser/ |
H A D | predefined_namespaces.phpt | 15 <svg width="100" height="100" viewBox="0 0 4 2"> 16 <rect id="rectangle" x="10" y="20" width="90" height="60"> 48 Attribute: width (NONE) 55 Attribute: width (NONE) 68 <svg width="100" height="100" viewbox="0 0 4 2"> 69 <rect id="rectangle" x="10" y="20" width="90" height="60"> 88 <svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewbox="0 0 4 2"> 89 <rect id="rectangle" x="10" y="20" width="90" height="60">
|
/PHP-8.4/ext/standard/tests/serialize/ |
H A D | bug78438.phpt | 21 function createTree ($width, $depth) { 33 for ($w = 0; $w < $width; $w++) { 47 $width = 3; 51 $tree = createTree($width, $depth); 53 echo "Testcase tree $width x $depth".PHP_EOL; 62 $expectedSize = ($width**$depth - 1)/($width-1);
|
/PHP-8.4/ext/exif/ |
H A D | exif.stub.php | 23 * @param int $width 28 function exif_thumbnail($file, &$width = null, &$height = null, &$image_type = null): string|false … argument
|