Home
last modified time | relevance | path

Searched refs:x (Results 101 – 125 of 1816) sorted by relevance

12345678910>>...73

/php-src/Zend/tests/constexpr/
H A Dnew_named_params.phpt7 public function __construct(public float $x, public float $y, public float $z) {}
10 static $a = new Vec(x: 0.0, y: 1.0, z: 2.0);
13 static $b = new Vec(z: 0.0, y: 1.0, x: 2.0);
20 eval('static $d = new Vec(x: 0.0, x: 1.0);');
28 ["x"]=>
36 ["x"]=>
44 ["x"]=>
51 Named parameter $x overwrites previous argument
/php-src/Zend/tests/in-de-crement/
H A Doss-fuzz-62294_globals_unset_after_string_warning.phpt7 unset($GLOBALS['x']);
10 $x=" ";
12 var_dump($x--);
14 $x=" ";
16 var_dump(--$x);
18 $x=" ";
20 var_dump($x++);
22 $x=" ";
24 var_dump(++$x);
/php-src/ext/opcache/tests/jit/
H A Dreg_alloc_022.phpt10 $a = $b = $x = 0; $c = null;
12 $x .= $b;
13 $x = $a ? $b : $c;
14 $a &= $x != $a ? $b : $c;
15 $x = $a ? $b : $c;
16 $a &= $x != $a ? $b : $c;
17 $x != $a ?: $c;
H A Dgh12382.phpt11 for ($x = 0; $x < 21; ++$x) {
14 $x + 10 < 21
15 && 0 === $array[$y][$x + 7]
18 $x - 4 >= 0
19 && 0 === $array[$y][$x - 1]
H A Dfetch_dim_r_002.phpt13 $a = array(1,2,3,""=>4,"ab"=>5,"2x"=>6);
25 $x="a";
27 foo($x.$y);
28 foo("2x");
29 $x=2;
30 $y="x";
31 foo($x.$y);
/php-src/Zend/tests/
H A Dns_036.phpt10 function f1($x = ArrayObject::STD_PROP_LIST) {
11 var_dump($x);
13 function f2($x = \ArrayObject::STD_PROP_LIST) {
14 var_dump($x);
16 function f3($x = \A\ArrayObject::STD_PROP_LIST) {
17 var_dump($x);
19 function f4($x = B\ArrayObject::STD_PROP_LIST) {
20 var_dump($x);
H A Doffset_assign.phpt2 Crash on $x['2x']['y'] += 1 when $x is string
5 $x = "a";
6 $x['2x']['y'] += 1;
11 Warning: Illegal string offset "2x" in %s on line %d
H A Dclosure_002.phpt6 $x = 4;
8 $lambda1 = function () use ($x) {
9 echo "$x\n";
12 $lambda2 = function () use (&$x) {
13 echo "$x\n";
18 $x++;
H A Dclosure_003.phpt7 $x = 4;
9 $lambda1 = function () use ($x) {
10 echo "$x\n";
13 $lambda2 = function () use (&$x) {
14 echo "$x\n";
19 $x++;
H A Dtemporary_cleaning_005.phpt17 $x = 2;
19 while ($x-- && new stdClass) {
20 $r = [$x] + ($y ? ((array) $x) + [2] : ops());
34 $x = 2;
36 while ($x-- && new stdClass) {
37 $r = [$x] + ($y ? ((array) $x) + [2] : ops());
H A Dns_074.phpt8 $x = function (?\stdclass $x = NULL) {
9 var_dump($x);
14 $x(NULL);
15 $x(new stdclass);
16 $x(new \stdclass);
H A Ddereference_013.phpt9 public $x = array(2);
11 public function __call($x, $y) {
12 if (count($this->x) == 1) {
13 $this->x[] = $y[0];
15 return $this->x;
21 $x = array(1);
23 $foo->b($x)[1] = 3;
/php-src/Zend/
H A Dmicro_bench.php135 $x = Foo::$a;
173 $x = TEST;
179 $x = $_GET;
201 $x = $str[1];
315 $x = new Foo(); variable
316 $x->read_prop(N);
318 $x->write_prop(N);
330 $x->isset_prop(N);
332 $x->empty_prop(N);
334 $x->call(N);
[all …]
/php-src/Zend/tests/type_declarations/
H A Dtyped_properties_071.phpt7 public string $x = "x";
13 $test->x = &$y;
23 ["x"]=>
24 string(1) "x"
28 ["x"]=>
34 ["x"]=>
H A Dtyped_properties_066.phpt7 public float $x = 0.0;
10 $x = new Foo;
11 $y =& $x->x;
13 var_dump($x, 4); /* Optimizer will merge both "4" constants, making it immediately visible */
18 ["x"]=>
/php-src/ext/standard/tests/strings/
H A Dunpack_offset.phpt8 printf("0x%08x 0x%08x\n", $a[1], $a[2]);
10 printf("0x%08x 0x%08x\n",
/php-src/Zend/tests/stack_limit/
H A Dstack_limit_007.phpt27 }, 'x');
36 string(%d) "0x%x"
38 string(%d) "0x%x"
40 string(%d) "0x%x"
42 string(%d) "0x%x"
H A Dstack_limit_008.phpt28 }, 'x');
40 }, 'x');
49 string(%d) "0x%x"
51 string(%d) "0x%x"
53 string(%d) "0x%x"
55 string(%d) "0x%x"
H A Dstack_limit_011.phpt29 }, 'x');
43 string(%d) "0x%x"
45 string(%d) "0x%x"
47 string(%d) "0x%x"
49 string(%d) "0x%x"
/php-src/ext/gd/tests/
H A Dbug77198_threshold.phpt12 function createWhiteImageWithBlackPixelAt($x, $y)
16 imagesetpixel($im, $x, $y, 0x000000);
21 for ($x = 0; $x < 8; $x++) {
22 $orig = createWhiteImageWithBlackPixelAt($x, $y);
25 printf("Pixel at %d, %d: unexpected NULL crop\n", $x, $y);
29 printf("Pixel at %d, %d: unexpected width (%d)\n", $x, $y, $width);
33 printf("Pixel at %d, %d: unexpected height (%d)\n", $x, $y, $height);
37 printf("Pixel at %d, %d: unexpected color (%d)\n", $x, $y, $color);
/php-src/ext/hash/
H A Dhash_sha.c112 #define ROTR32(b,x) ((x >> b) | (x << (32 - b))) argument
113 #define ROTR64(b,x) ((x >> b) | (x << (64 - b))) argument
117 #define SHA256_F0(x,y,z) (((x) & (y)) ^ ((~(x)) & (z))) argument
121 #define SHA256_F2(x) (ROTR32( 2,(x)) ^ ROTR32(13,(x)) ^ ROTR32(22,(x))) argument
123 #define SHA256_F3(x) (ROTR32( 6,(x)) ^ ROTR32(11,(x)) ^ ROTR32(25,(x))) argument
125 #define SHA256_F4(x) (ROTR32( 7,(x)) ^ ROTR32(18,(x)) ^ SHR( 3,(x))) argument
127 #define SHA256_F5(x) (ROTR32(17,(x)) ^ ROTR32(19,(x)) ^ SHR(10,(x))) argument
381 #define SHA512_F2(x) (ROTR64(28, x) ^ ROTR64(34, x) ^ ROTR64(39, x)) argument
383 #define SHA512_F3(x) (ROTR64(14, x) ^ ROTR64(18, x) ^ ROTR64(41, x)) argument
385 #define SHA512_F4(x) (ROTR64( 1, x) ^ ROTR64( 8, x) ^ SHR(7, x)) argument
[all …]
/php-src/Zend/tests/fibers/
H A Dstart-arguments.phpt6 $fiber = new Fiber(function (int $x): int {
7 return $x + Fiber::suspend($x);
10 $x = $fiber->start(1);
14 $fiber = new Fiber(function (int $x): int {
15 return $x + Fiber::suspend($x);
24 Fatal error: Uncaught TypeError: {closure:%s:%d}(): Argument #1 ($x) must be of type int, string gi…
/php-src/ext/simplexml/tests/
H A Dbug53033.phpt8 $x = simplexml_load_string('<x>2.5</x>');
9 var_dump($x*1);
11 var_dump($x*1.0);
16 var_dump((string)$x*1);
/php-src/ext/reflection/tests/
H A Dtraits003.phpt17 $x = new ReflectionClass('foo');
18 var_dump($x->isTrait());
20 $x = new ReflectionClass('bar');
21 var_dump($x->isTrait());
23 $x = new ReflectionClass('baz');
24 var_dump($x->isTrait());
/php-src/ext/opcache/tests/
H A Dleak_001.phpt17 $x = 2;
19 if ($x + $y);
21 if ($x);
23 $a = [[$x]];
28 $x = 2;
29 $a = [1,$x];

Completed in 46 milliseconds

12345678910>>...73