/PHP-7.0/ext/standard/tests/strings/ |
H A D | wordwrap_error.phpt | 19 $width = 10; 26 // $width arg as negative value 29 // width as zero and cut as false 30 $width = 0; 36 $width = 0; 41 // width as -ne and cut as false 42 $width = -10; 48 $width = -10; 68 -- width = 0 & cut = false -- 70 -- width = 0 & cut = true -- [all …]
|
H A D | wordwrap_basic.phpt | 5 /* Prototype : string wordwrap ( string $str [, int $width [, string $break [, bool $cut]]] ) 14 $width = 80; 21 // with $width arg 22 var_dump( wordwrap($str, $width) ); 24 var_dump( wordwrap($str, $width, $break) ); 28 $width = 10; 30 var_dump( wordwrap($str, $width, $break, $cut) ); 33 $width = 10; 35 var_dump( wordwrap($str, $width, $break, $cut) );
|
H A D | wordwrap_variation5.phpt | 5 /* Prototype : string wordwrap ( string $str [, int $width [, string $break [, bool $cut]]] ) 18 $width = 1; 23 var_dump( wordwrap($str, $width) ); // default break and cut value 28 var_dump( wordwrap($str, $width, $break) ); 29 var_dump( wordwrap($str, $width, $break1) ); 33 var_dump( wordwrap($str, $width, $break, $cut) ); 34 var_dump( wordwrap($str, $width, $break1, $cut) ); 38 var_dump( wordwrap($str, $width, $break, $cut) ); 39 var_dump( wordwrap($str, $width, $break1, $cut) );
|
H A D | sscanf_basic3.phpt | 18 list($part, $length, $width, $depth) = sscanf($str, $format); 19 var_dump($part, $length, $width, $depth); 23 $res = sscanf($str, $format, $part, $length, $width, $depth); 24 var_dump($res, $part, $length, $width, $depth);
|
H A D | wordwrap_variation2.phpt | 2 Test wordwrap() function : usage variations - unexpected values for width argument 11 * test wordwrap by passing different values for width argument 27 // array with different values as width 29 // zerovalue for width 32 // -ve value for width 76 // when $width argument is supplied with different values 81 $width = $values [$index]; 83 var_dump( wordwrap($str, $width) ); 84 var_dump( wordwrap($str, $width, $break) ); 88 var_dump( wordwrap($str, $width, $break, $cut) ); [all …]
|
/PHP-7.0/ext/gd/libgd/ |
H A D | wbmp.c | 111 createwbmp (int width, int height, int color) in createwbmp() argument 119 if (overflow2(sizeof (int), width)) { in createwbmp() 123 if (overflow2(sizeof (int) * width, height)) { in createwbmp() 134 wbmp->width = width; in createwbmp() 173 wbmp->width = getmbi (getin, in); in readwbmp() 174 if (wbmp->width == -1) in readwbmp() 191 if (overflow2(sizeof (int), wbmp->width) || in readwbmp() 211 for (col = 0; col < wbmp->width;) in readwbmp() 217 if (col++ < wbmp->width) in readwbmp() 272 for (col = 0; col < wbmp->width; col++) in writewbmp() [all …]
|
H A D | gd_crop.c | 70 if ((src->sx - crop->width) < crop->x) { in gdImageCrop() 71 crop->width = src->sx - crop->x; in gdImageCrop() 116 const int width = gdImageSX(im); in gdImageCropAuto() local 125 crop.width = 0; in gdImageCropAuto() 160 for (x = 0; match && x < width; x++) { in gdImageCropAuto() 188 for (x = 0; match && x < width; x++) { in gdImageCropAuto() 201 crop.width = x - crop.x + 2; in gdImageCropAuto() 229 const int width = gdImageSX(im); in gdImageCropThreshold() local 238 crop.width = 0; in gdImageCropThreshold() 284 for (x = 0; match && x < width; x++) { in gdImageCropThreshold() [all …]
|
H A D | gd_arc_f_buggy.c | 13 static gdPoint gdArcClosest (int width, int height, int angle); 66 width = (width & 1) ? (width + 1) : (width); 69 a = width / 2; 111 pt[0] = gdArcClosest (width, height, s); 119 pt[2] = gdArcClosest (width, height, e); 143 pt[3] = gdArcClosest (width, height, e); 167 pt[4] = gdArcClosest (width, height, e); 190 pt[5] = gdArcClosest (width, height, e); 259 w = (long) width; 534 gdArcClosest (int width, int height, int angle) [all …]
|
H A D | wbmp.h | 30 int width; /* width of the image */ member 46 Wbmp *createwbmp( int width, int height, int color );
|
H A D | gd_png.c | 123 png_uint_32 width, height, rowbytes, w, h; in gdImageCreateFromPngCtx() local 196 im = gdImageCreateTrueColor((int) width, (int) height); in gdImageCreateFromPngCtx() 198 im = gdImageCreate((int) width, (int) height); in gdImageCreateFromPngCtx() 362 for (w = 0; w < width; w++) { in gdImageCreateFromPngCtx() 375 for (w = 0; w < width; w++) { in gdImageCreateFromPngCtx() 394 for (w = 0; w < width; ++w) { in gdImageCreateFromPngCtx() 467 int width = im->sx; in gdImagePngCtxEx() local 693 *prow_pointers = (png_bytep) safe_emalloc(width, channels, 0); in gdImagePngCtxEx() 696 for (i = 0; i < width; ++i) { in gdImagePngCtxEx() 733 row_pointers[j] = (png_bytep) gdMalloc(width); in gdImagePngCtxEx() [all …]
|
H A D | gd_webp.c | 39 int width, height; in gdImageCreateFromWebpCtx() local 68 if (WebPGetInfo(filedata,size, &width, &height) == 0) { in gdImageCreateFromWebpCtx() 74 im = gdImageCreateTrueColor(width, height); in gdImageCreateFromWebpCtx() 79 argb = WebPDecodeARGB(filedata, size, &width, &height); in gdImageCreateFromWebpCtx() 87 for (x = 0; x < width; x++) { in gdImageCreateFromWebpCtx()
|
H A D | xbm.c | 39 unsigned int width = 0, height = 0; in gdImageCreateFromXbm() local 64 width = (unsigned int) value; in gdImageCreateFromXbm() 80 bytes = (width + 7) / 8 * height; in gdImageCreateFromXbm() 99 if(!(im = gdImageCreate(width, height))) { in gdImageCreateFromXbm()
|
/PHP-7.0/ext/standard/tests/image/ |
H A D | getimagesize.phpt | 36 string(20) "width="1" height="1"" 51 string(20) "width="1" height="1"" 66 string(20) "width="1" height="1"" 81 string(20) "width="1" height="1"" 98 string(20) "width="1" height="1"" 115 string(20) "width="1" height="1"" 132 string(20) "width="2" height="1"" 149 string(20) "width="4" height="1"" 166 string(20) "width="4" height="1"" 181 string(20) "width="4" height="1"" [all …]
|
H A D | getimagesize_basic.phpt | 61 string(24) "width="200" height="100"" 81 string(24) "width="200" height="100"" 103 string(24) "width="200" height="100"" 121 string(24) "width="200" height="100"" 137 string(24) "width="200" height="100"" 155 string(24) "width="200" height="100"" 171 string(20) "width="1" height="1"" 191 string(20) "width="1" height="1"" 211 string(20) "width="4" height="1""
|
H A D | getimagesizefromstring1.phpt | 25 string(23) "width="120" height="67"" 41 string(23) "width="120" height="67""
|
/PHP-7.0/ext/gd/tests/ |
H A D | imagecopyresampled_basic.phpt | 39 list($width, $height) = getimagesize($dest_lge); 40 echo "Size of original: width=". $width . " height=" . $height . "\n"; 42 $new_width = $width * $percent; 47 imagecopyresampled($image_sml, $image_lge, 0, 0, 0, 0, $new_width, $new_height, $width, $height); 51 list($width, $height) = getimagesize($dest_sml); 52 echo "Size of copy: width=". $width . " height=" . $height . "\n"; 69 Size of original: width=400 height=300 70 Size of copy: width=200 height=150
|
H A D | bug66356.phpt | 12 var_dump(imagecrop($img, array("x" => "a", "y" => 0, "width" => 10, "height" => 10))); 14 $arr = array("x" => "a", "y" => "12b", "width" => 10, "height" => 10); 19 var_dump(imagecrop($img, array("x" => 0, "y" => 0, "width" => -1, "height" => 10))); 22 var_dump(imagecrop($img, array("x" => -20, "y" => -20, "width" => 10, "height" => 10))); 25 var_dump(imagecrop($img, array("x" => 0x7fffff00, "y" => 0, "width" => 10, "height" => 10))); 28 var_dump(imagecrop($img, array("x" => 0, "y" => 0, "width" => 65535, "height" => 65535))); 37 [width] => 10
|
H A D | bug39273.phpt | 15 $width = 300; 20 $img = imagecreatetruecolor($width, $height); 24 imagecopyresized($img, $small, 0,0, 0,0, $width, $height, $srcw, $srch);
|
H A D | bug74435.phpt | 11 $width = imagesx($im); 13 for ($i = 0; $i < $width; $i += 16) {
|
H A D | bug67447.phpt | 15 $cropped = imagecrop($image, ['x' => 0, 'y' => 0, 'width' => 250, 'height' => 250]); 25 $cropped = imagecrop($image, ['x' => 0, 'y' => 0, 'width' => 250, 'height' => 250]);
|
H A D | bug75124.phpt | 15 for ($i = 0, $width = imagesx($im); $i < $width; $i ++) {
|
H A D | libgd00094.xbm | 1 #define width 255
|
/PHP-7.0/ext/standard/ |
H A D | formatted_print.c | 208 size_t width, char padding, in php_sprintf_appenddouble() argument 519 width = 0; in php_formatted_print() 546 width = precision = 0; in php_formatted_print() 570 width, precision, padding, in php_formatted_print() 581 width, padding, alignment, in php_formatted_print() 588 width, padding, alignment); in php_formatted_print() 599 width, padding, alignment, in php_formatted_print() 613 width, padding, alignment, 3, in php_formatted_print() 620 width, padding, alignment, 4, in php_formatted_print() 627 width, padding, alignment, 4, in php_formatted_print() [all …]
|
H A D | image.c | 65 unsigned int width; member 852 width = entry_value; in php_handle_tiff() 861 if ( width && height) { in php_handle_tiff() 865 result->width = width; in php_handle_tiff() 913 result->width = width; in php_handle_iff() 964 width = (width << 7) | (i & 0x7f); in php_get_wbmp() 984 if (!height || !width) { in php_get_wbmp() 989 (*result)->width = width; in php_get_wbmp() 1046 if (width) { in php_get_xbm() 1059 if (width && height) { in php_get_xbm() [all …]
|
H A D | scanf.c | 591 size_t width; in php_sscanf_internal() local 725 width = 0; in php_sscanf_internal() 798 if (0 == width) { in php_sscanf_internal() 799 width = 1; in php_sscanf_internal() 845 if (width == 0) { in php_sscanf_internal() 855 if (--width == 0) { in php_sscanf_internal() 876 if (width == 0) { in php_sscanf_internal() 941 if ((width == 0) || (width > sizeof(buf) - 1)) { in php_sscanf_internal() 946 for (end = buf; width > 0; width--) { in php_sscanf_internal() 1083 if ((width == 0) || (width > sizeof(buf) - 1)) { in php_sscanf_internal() [all …]
|