Home
last modified time | relevance | path

Searched refs:x (Results 51 – 75 of 1818) sorted by relevance

12345678910>>...73

/php-src/ext/gd/tests/
H A Dlines.phpt16 for ($x=1; $x<5; $x++) {
17 $p3 = $p3 && (imagecolorat($im, $x,5)==0x00ff00);
47 $x=1;
51 $p3 = $p3 && (imagecolorat($im, $x,$y)==0x00ff00);
52 $x++;
64 for ($x=0; $x<6; $x++) {
66 $p3 = $p3 && (imagecolorat($im, $x,$y)!=0x00ff00);
77 for ($x=0; $x<6; $x++) {
79 $p3 = $p3 && (imagecolorat($im, $x,$y)!=0x00ff00);
90 for ($x=0; $x<5; $x++) {
[all …]
H A Dbug53504.phpt25 …['fontSize' => 50, 'angle' => 0, 'x' => 20, 'y' => 70, 'text' => 'AV Teg', 'exp' => [2,15, 208,15,…
33 …['fontSize' => 100, 'angle' => 0, 'x' => 350, 'y' => 220, 'text' => '-', 'exp' => [7,-37, 51,-37, …
34 …['fontSize' => 100, 'angle' => 0, 'x' => 430, 'y' => 220, 'text' => ',', 'exp' => [7,15, 21,15, 21…
35 …['fontSize' => 100, 'angle' => 0, 'x' => 510, 'y' => 220, 'text' => '.', 'exp' => [7,1, 21,1, 21,-…
36 …['fontSize' => 100, 'angle' => 0, 'x' => 590, 'y' => 220, 'text' => '|', 'exp' => [8,0, 17,0, 17,-…
37 …['fontSize' => 100, 'angle' => 0, 'x' => 670, 'y' => 220, 'text' => 'g', 'exp' => [5,29, 60,29, 60…
70 $test['x'], $test['y'], $black, $font, $test['text']);
72 // check if both bboxes match when adding x/y offset:
74 if ($bbox[$i] + $test['x'] !== $bboxDrawn[$i]) echo "imageftbbox and imagefttext differ!\n";
83 imageline($g, $test['x'], $test['y'],
[all …]
/php-src/Zend/tests/in-de-crement/
H A Doss-fuzz-60709_globals_unset_after_undef_warning.phpt11 var_dump($x--);
12 unset($x);
14 var_dump($x++);
15 unset($x);
17 var_dump(--$x);
18 unset($x);
20 var_dump(++$x);
24 Undefined variable $x
28 Undefined variable $x
31 Undefined variable $x
[all …]
/php-src/Zend/tests/
H A Dexception_from_toString.phpt16 try { $x = $str . $badStr; }
18 try { $x = $badStr . $str; }
20 try { $x = $str .= $badStr; }
23 try { $x = $num . $badStr; }
38 try { $x = "x$badStr"; }
40 try { $x = "{$badStr}x"; }
47 try { $x = "x$badStr$str"; }
49 try { $x = "x$str$badStr"; }
51 try { $x = "{$str}x$badStr"; }
53 try { $x = "{$badStr}x$str"; }
[all …]
H A Dmethod_argument_binding.phpt7 private function method($x) {}
12 $x = 1;
13 $this->method($x);
14 var_dump($x);
19 public function method(&$x) {
20 ++$x;
27 private function method(&$x) {
28 ++$x;
36 $this->method($x);
46 Warning: Undefined variable $x in %s on line %d
H A Dclosure_009.phpt6 $x = function ($x) use ($a) {
10 echo $x.':'.$a."\n";
12 $y = function ($x) use (&$a) {
16 echo $x.':'.$a."\n";
18 $x(1);
19 $x(2);
20 $x(3);
H A Dtemporary_cleaning_002.phpt6 function __get($x) {
11 $x = new Obj;
15 $r = "$y|$x->x|";
20 $r = "$x->x|$y|";
25 $r = "$y|$y|$x->x";
H A Ddereference_002.phpt10 $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 …]
/php-src/ext/opcache/tests/jit/
H A Dinit_fcall_002.phpt12 function foo($x) {
13 return $x;
16 function foo($x) {
17 return $x;
19 function test2($x) {
20 return foo(foo($x));
23 $x = new C;
24 foo(foo($x->foo(foo(test2($x)))));
/php-src/ext/standard/tests/strings/
H A Dvprintf_variation14.phpt18 '%x %+x %-x
19 %lx x %4x %-4x
20 %10.4x %-10.4x %.4x
21 %\'#2x %\'2x %\'$2x %\'_2x
22 %3$x %4$x %1$x %2$x';
83 1e240 x fffffb2e 4d2
91 1e240 x ff439a5b bc65a5
99 7b x ffffff85 7b
107 1 x 1 1
115 1 x 0 1
/php-src/ext/spl/tests/
H A Dfixedarray_023.phpt6 $x = new SplFixedArray(4);
7 …$x[0] = NAN; // Test NAN just in case this check is incorrectly refactored to use zend_is_identical
8 $x[1] = 0.0;
9 $x[2] = $x;
10 $x[3] = $x;
11 var_export($x);
13 $x[1] = -0.0;
14 debug_zval_dump($x);
/php-src/ext/standard/tests/array/
H A Dbug28739.phpt6 public $x;
7 function __construct($x){$this->x=$x;}
9 function a($a, $b){var_dump(__FUNCTION__);return $a->x - $b->x;}
10 function b($a, $b){var_dump(__FUNCTION__);return $a->x - $b->x;}
27 [x] => 0
32 [x] => 1
37 [x] => 2
55 [x] => 1
/php-src/ext/hash/sha3/generic32lc/
H A Dalign.h25 #define ALIGN(x) __attribute__ ((aligned(x))) argument
27 #define ALIGN(x) __declspec(align(x)) argument
29 #define ALIGN(x) __align(x) argument
31 #define ALIGN(x) argument
/php-src/ext/hash/sha3/generic64lc/
H A Dalign.h25 #define ALIGN(x) __attribute__ ((aligned(x))) argument
27 #define ALIGN(x) __declspec(align(x)) argument
29 #define ALIGN(x) __align(x) argument
31 #define ALIGN(x) argument
/php-src/ext/gd/libgd/
H A Dgd_interpolation.c294 x=(-x); in KernelBessel_Order1()
464 if (x < 1.0) return ((2.0 * x - 3) * x * x + 1.0 ); in filter_hermite()
482 if (x < 0.5) return (0.75 - x*x); in filter_bell()
505 return(KM_P0+x*x*(KM_P2-x*KM_P3)); in filter_mitchell()
507 return(KM_P0+x*x*(KM_P2+x*KM_P3)); in filter_mitchell()
531 if (x <= 1.5) return (x * x - 2.5* x + 1.5); in filter_quadratic()
548 if (x <= 0) c = 0.0f; else c = x*x*x; in filter_bspline()
562 if (x <= 1.5) return (0.5 * x * x - 1.5 * x + 1.125); in filter_quadratic_bspline()
2348 for (x = 0; x <= end_x; x++) { in gdTransformAffineCopy()
2369 for (x = 0; x <= end_x; x++) { in gdTransformAffineCopy()
[all …]
H A Dgd.c638 for (x = 0; x < to->sx; x++) { in gdImagePaletteCopy()
1243 for (x = x1; x <= x2; x++) { in gdImageAALine()
1734 for (x = mx-a; x <= mx+a; x++) { in gdImageFilledEllipse()
2014 for (x=x1; x>=0 && (!pts[y][x] && gdImageGetPixel(im,x,y)==oc); x--) { in _gdImageFillTiled()
2041 for(x++; x<=x2 && (pts[y][x] || gdImageGetPixel(im,x, y)!=oc); x++); in _gdImageFillTiled()
2170 for (x = x1; (x <= x2); x++) { in _gdImageFilledHRectangle()
2215 for (x = x1; (x <= x2); x++) { in _gdImageFilledVRectangle()
2242 for (x = 0; (x < w); x++) { in gdImageCopy()
2252 for (x = 0; (x < w); x++) { in gdImageCopy()
2874 for (x = 0; x < sx; x++) { in gdImageCompare()
[all …]
/php-src/ext/opcache/jit/ir/
H A Dir_patch.c65 switch (x >> 4) { in _asm_x86_inslen()
69 prefixes |= x; in _asm_x86_inslen()
70 x = map_op1[*++p]; in _asm_x86_inslen()
86 x = 2; in _asm_x86_inslen()
88 x = 4; in _asm_x86_inslen()
94 x = 2; in _asm_x86_inslen()
98 if (x == 0x70) { in _asm_x86_inslen()
99 x = *++p & 0x1f; in _asm_x86_inslen()
101 if (x >= 2) { in _asm_x86_inslen()
118 x = *++p; in _asm_x86_inslen()
[all …]
/php-src/Zend/tests/type_declarations/
H A Dtyped_properties_047.phpt9 $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-src/ext/simplexml/tests/
H A Dbug66084_1.phpt7 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-src/ext/opcache/tests/
H A Dref_range_1.phpt7 escape_x($x);
8 $x = 0;
10 return (int) $x;
13 function escape_x(&$x) {
14 $GLOBALS['x'] =& $x;
18 $GLOBALS['x']++;
H A Dref_range_2.phpt7 escape_x($x);
8 $x = 0;
10 return PHP_INT_MAX + (int) $x;
13 function escape_x(&$x) {
14 $GLOBALS['x'] =& $x;
18 $GLOBALS['x']++;
/php-src/ext/standard/tests/general_functions/
H A Dsettype_typed_property.phpt7 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-src/tests/classes/
H A Dstatic_properties_003.phpt7 public static $x = 'C::$x';
14 var_dump(isset($c->x));
15 unset($c->x);
16 echo $c->x;
17 $c->x = 1;
19 $c->x =& $ref;
20 var_dump($c->x, C::$x);
33 Notice: Accessing static property C::$x as non static in %s on line 12
35 Notice: Accessing static property C::$x as non static in %s on line 13
37 Warning: Undefined property: C::$x in %s on line %d
[all …]
H A Dfactory_and_singleton_001.phpt6 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-src/tests/lang/operators/
H A Doverloaded_property_ref.phpt8 function &__get($x) { return $this->bar; }
9 function __set($x, $v) { $this->bar = $v; }
11 $x = new C;
12 var_dump(++$x->foo);
13 $x = new C;
14 var_dump($x->foo++);
15 $x = new C;
16 var_dump($x->foo += 2);

Completed in 69 milliseconds

12345678910>>...73