/PHP-8.0/ext/gd/tests/ |
H A D | lines.phpt | 18 for ($x=1; $x<5; $x++) { 19 $p3 = $p3 && (imagecolorat($im, $x,5)==0x00ff00); 49 $x=1; 53 $p3 = $p3 && (imagecolorat($im, $x,$y)==0x00ff00); 54 $x++; 66 for ($x=0; $x<6; $x++) { 68 $p3 = $p3 && (imagecolorat($im, $x,$y)!=0x00ff00); 79 for ($x=0; $x<6; $x++) { 81 $p3 = $p3 && (imagecolorat($im, $x,$y)!=0x00ff00); 92 for ($x=0; $x<5; $x++) { [all …]
|
H A D | bug53504.phpt | 21 …['fontSize' => 50, 'angle' => 0, 'x' => 20, 'y' => 70, 'text' => 'AV Teg', 'exp' => [2,15, 208,15,… 29 …['fontSize' => 100, 'angle' => 0, 'x' => 350, 'y' => 220, 'text' => '-', 'exp' => [7,-37, 51,-37, … 30 …['fontSize' => 100, 'angle' => 0, 'x' => 430, 'y' => 220, 'text' => ',', 'exp' => [7,15, 21,15, 21… 31 …['fontSize' => 100, 'angle' => 0, 'x' => 510, 'y' => 220, 'text' => '.', 'exp' => [7,1, 21,1, 21,-… 32 …['fontSize' => 100, 'angle' => 0, 'x' => 590, 'y' => 220, 'text' => '|', 'exp' => [8,0, 17,0, 17,-… 33 …['fontSize' => 100, 'angle' => 0, 'x' => 670, 'y' => 220, 'text' => 'g', 'exp' => [5,29, 60,29, 60… 66 $test['x'], $test['y'], $black, $font, $test['text']); 68 // check if both bboxes match when adding x/y offset: 70 if ($bbox[$i] + $test['x'] !== $bboxDrawn[$i]) echo "imageftbbox and imagefttext differ!\n"; 79 imageline($g, $test['x'], $test['y'], [all …]
|
H A D | bug77198_auto.phpt | 11 function createWhiteImageWithBlackPixelAt($x, $y) 15 imagesetpixel($im, $x, $y, 0x000000); 20 for ($x = 0; $x < 8; $x++) { 21 if (($x == 0 && ($y == 0 || $y == 7)) || ($x == 7 && ($y == 0 || $y == 7))) { 24 $orig = createWhiteImageWithBlackPixelAt($x, $y); 27 printf("Pixel at %d, %d: unexpected NULL crop\n", $x, $y); 31 printf("Pixel at %d, %d: unexpected width (%d)\n", $x, $y, $width); 35 printf("Pixel at %d, %d: unexpected height (%d)\n", $x, $y, $height); 39 printf("Pixel at %d, %d: unexpected color (%d)\n", $x, $y, $color);
|
/PHP-8.0/Zend/tests/type_declarations/ |
H A D | typed_properties_047.phpt | 9 $x = new Foo(); 10 var_dump($x); 11 var_dump($x->foo); 13 $x->foo = 5; 14 var_dump($x->foo); 16 $x->foo = null; 17 var_dump($x->foo); 19 unset($x->foo); 21 var_dump($x->foo); 26 $x->foo = "ops";
|
/PHP-8.0/ext/standard/tests/general_functions/ |
H A D | settype_typed_property.phpt | 7 public int $x; 11 $test->x = 42; 12 settype($test->x, 'string'); 13 // Same as $test->x = (string) $test->x. 15 var_dump($test->x); 18 settype($test->x, 'array'); 22 var_dump($test->x); 27 Cannot assign array to reference held by property Test::$x of type int
|
/PHP-8.0/ext/simplexml/tests/ |
H A D | bug66084_1.phpt | 7 echo json_encode(simplexml_load_string('<a><b/><c><x/></c></a>')->c), "\n"; 8 echo json_encode(simplexml_load_string('<a><b/><c><x/></c></a>')), "\n"; 9 echo json_encode(simplexml_load_string('<a><b/><d/><c><x/></c></a>')), "\n"; 10 echo json_encode(simplexml_load_string('<a><b/><c><d/><x/></c></a>')), "\n"; 11 echo json_encode(simplexml_load_string('<a><b/><c><d><x/></d></c></a>')), "\n"; 14 {"x":{}} 15 {"b":{},"c":{"x":{}}} 16 {"b":{},"d":{},"c":{"x":{}}} 17 {"b":{},"c":{"d":{},"x":{}}} 18 {"b":{},"c":{"d":{"x":{}}}}
|
/PHP-8.0/ext/gd/libgd/ |
H A D | gd_interpolation.c | 305 x=(-x); in KernelBessel_Order1() 475 if (x < 1.0) return ((2.0 * x - 3) * x * x + 1.0 ); in filter_hermite() 493 if (x < 0.5) return (0.75 - x*x); in filter_bell() 516 return(KM_P0+x*x*(KM_P2-x*KM_P3)); in filter_mitchell() 518 return(KM_P0+x*x*(KM_P2+x*KM_P3)); in filter_mitchell() 542 if (x <= 1.5) return (x * x - 2.5* x + 1.5); in filter_quadratic() 559 if (x <= 0) c = 0.0f; else c = x*x*x; in filter_bspline() 573 if (x <= 1.5) return (0.5 * x * x - 1.5 * x + 1.125); in filter_quadratic_bspline() 2359 for (x = 0; x <= end_x; x++) { in gdTransformAffineCopy() 2380 for (x = 0; x <= end_x; x++) { in gdTransformAffineCopy() [all …]
|
H A D | gd.c | 668 for (x = 0; x < to->sx; x++) { in gdImagePaletteCopy() 1273 for (x = x1; x <= x2; x++) { in gdImageAALine() 1764 for (x = mx-a; x <= mx+a; x++) { in gdImageFilledEllipse() 2044 for (x=x1; x>=0 && (!pts[y][x] && gdImageGetPixel(im,x,y)==oc); x--) { in _gdImageFillTiled() 2071 for(x++; x<=x2 && (pts[y][x] || gdImageGetPixel(im,x, y)!=oc); x++); in _gdImageFillTiled() 2200 for (x = x1; (x <= x2); x++) { in _gdImageFilledHRectangle() 2245 for (x = x1; (x <= x2); x++) { in _gdImageFilledVRectangle() 2272 for (x = 0; (x < w); x++) { in gdImageCopy() 2282 for (x = 0; (x < w); x++) { in gdImageCopy() 2904 for (x = 0; x < sx; x++) { in gdImageCompare() [all …]
|
/PHP-8.0/tests/classes/ |
H A D | static_properties_003.phpt | 6 public static $x = 'C::$x'; 13 var_dump(isset($c->x)); 14 unset($c->x); 15 echo $c->x; 16 $c->x = 1; 18 $c->x =& $ref; 19 var_dump($c->x, C::$x); 32 Notice: Accessing static property C::$x as non static in %s on line 11 34 Notice: Accessing static property C::$x as non static in %s on line 12 36 Warning: Undefined property: C::$x in %s on line %d [all …]
|
H A D | factory_and_singleton_001.phpt | 6 protected $x; 11 static function factory($x) { 22 $this->x = $x; 34 return $this->x; 54 echo "Create x and y\n"; 55 $x = test::factory(1); 59 var_dump($x->get()); 62 echo "Destruct x\n"; 63 $x = NULL; 84 Create x and y [all …]
|
H A D | __set__get_005.phpt | 7 protected $x; 11 if (isset($this->x[$name])) { 12 return $this->x[$name]; 22 $this->x[$name] = $val; 28 protected $x; 32 if (!isset($this->x[$name])) { 33 $this->x[$name] = new Test(); 35 return $this->x[$name]; 40 $this->x[$name] = $val; 56 ["x":protected]=>
|
H A D | factory_and_singleton_002.phpt | 6 protected $x; 11 static function factory($x) { 22 $this->x = $x; 34 return $this->x; 54 echo "Create x and y\n"; 55 $x = test::factory(1); 59 var_dump($x->get()); 62 echo "Destruct x\n"; 63 $x = NULL; 84 Create x and y [all …]
|
/PHP-8.0/Zend/tests/ |
H A D | dereference_002.phpt | 10 $x = array(); 11 $x[] = 3; 12 $x[] = array(1, 5); 13 $x[] = new foo; 14 return $x; 22 var_dump($x[0]); 24 var_dump($x->bar()); 25 var_dump($x->bar()[0]); 27 $x = array(); 28 $x[] = new foo; [all …]
|
H A D | bug29883.phpt | 5 $x = "bug"; 6 var_dump(isset($x[-10])); 7 var_dump(isset($x[1])); 8 var_dump(isset($x["1"])); 9 var_dump($x[-10])."\n"; 10 var_dump($x[1])."\n"; 11 var_dump($x["1"])."\n";
|
H A D | pow_array_leak.phpt | 6 $x = [0]; 8 $x **= 1; 12 var_dump($x); 14 $x = [0]; 16 $x **= $x; 20 var_dump($x);
|
H A D | closure_035.phpt | 6 $x = function () use (&$x) { 7 $h = function () use ($x) { 8 var_dump($x); 14 var_dump($x()); 21 ["x"]=>
|
H A D | temporary_cleaning_004.phpt | 16 $x = 2; 18 while ($x-- && new stdClass) { 19 $r = [$x] + ($y ? ((array) $x) + [2] : ops()); 31 $x = 2; 33 while ($x-- && new stdClass) { 34 $r = [$x] + ($y ? ((array) $x) + [2] : ops());
|
/PHP-8.0/tests/lang/ |
H A D | func_get_args.004.phpt | 5 function valRef($x, &$y) { 6 var_dump($x, $y); 8 $x = 'changed.x'; 13 function refVal(&$x, $y) { 14 var_dump($x, $y); 16 $x = 'changed.x'; 44 string(9) "changed.x" 62 string(9) "changed.x" 66 string(9) "changed.x"
|
H A D | passByReference_008.phpt | 5 function valRef($x, &$y) { 6 var_dump($x, $y); 7 $x = 'changed.x'; 11 function refVal(&$x, $y) { 12 var_dump($x, $y); 13 $x = 'changed.x'; 38 string(9) "changed.x"
|
/PHP-8.0/ext/pcre/tests/ |
H A D | split.phpt | 6 var_dump(preg_split('/*/', 'x')); 8 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz')); 9 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz', -1)); 10 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz', 0)); 11 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz', 1)); 12 var_dump(preg_split('/[\s, ]+/', 'x yy,zzz', 2)); 23 string(1) "x" 31 string(1) "x" 39 string(1) "x" 47 string(8) "x yy,zzz" [all …]
|
/PHP-8.0/ext/reflection/tests/ |
H A D | bug39067.phpt | 7 private $x; 11 private $x; 15 private $x; 19 var_dump($rc->getProperty('x')->getDeclaringClass()->getName()); 22 var_dump($rc->getProperty('x')->getDeclaringClass()->getName()); 25 var_dump($rc->getProperty('x')->getDeclaringClass()->getName()); 28 private $x; 32 public $x; 36 var_dump($rc->getProperty('x')->getDeclaringClass()->getName());
|
/PHP-8.0/Zend/tests/varSyntax/ |
H A D | indirectFcall.phpt | 6 function id($x = 'id') { return $x; } 18 $id = function($x) { return $x; }; 22 (function($x) { return $x; })('id')('var_dump')(8); 24 ($f = function($x = null) use (&$f) { 25 return $x ?: $f; 29 public static function id($x = [__CLASS__, 'id']) { return $x; }
|
/PHP-8.0/ext/standard/tests/math/ |
H A D | mt_rand_basic.phpt | 39 for ($x = 0; $x < count($min); $x++) { 41 $res = mt_rand($min[$x], $max[$x]); 43 if (!is_int($res) || $res < intval($min[$x]) || $res > intval($max[$x])) { 44 … echo "FAILED: res = ", $res, " min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n"; 50 echo "PASSED: range min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n"; 67 for ($x = 0; $x < count($min); $x++) { 69 $res = mt_rand($min[$x], 100); 71 if (!is_int($res) || $res < intval($minval[$x]) || $res > 100) { 72 … echo "FAILED: res = ", $res, " min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n"; 78 echo "PASSED range min = ", intval($min[$x]), " max = 100\n";
|
H A D | rand_basic.phpt | 39 for ($x = 0; $x < count($min); $x++) { 41 $res = rand($min[$x], $max[$x]); 43 if (!is_int($res) || $res < intval($min[$x]) || $res > intval($max[$x])) { 44 … echo "FAILED: res = ", $res, " min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n"; 50 echo "PASSED: range min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n"; 67 for ($x = 0; $x < count($min); $x++) { 69 $res = rand($min[$x], 100); 71 if (!is_int($res) || $res < intval($minval[$x]) || $res > 100) { 72 … echo "FAILED: res = ", $res, " min = ", intval($min[$x]), " max = ", intval($max[$x]), "\n"; 78 echo "PASSED range min = ", intval($min[$x]), " max = 100\n";
|
/PHP-8.0/ext/opcache/tests/jit/ |
H A D | undef_to_typed_ref.phpt | 11 public string $x; 16 $test->x = ""; 17 $r =& $test->x; 23 $test->x = ""; 24 $r =& $test->x; 30 $test->x = ""; 31 $a[0] =& $test->x; 37 $test->x = ""; 38 $a[0] =& $test->x; 44 $test->x = ""; [all …]
|