/php-src/ext/random/tests/01_functions/ |
H A D | mt_rand_value.phpt | 13 $x = 0; 15 $x ^= mt_rand(); 17 echo $x.PHP_EOL; 27 $x = 0; 29 $x ^= mt_rand(); 31 echo $x.PHP_EOL;
|
/php-src/ext/standard/tests/strings/ |
H A D | sprintf_variation34.phpt | 37 "%x", "%xx", "%lx", " %x", "%x ", 38 "\t%x", "\n%x", "%4x", "%30x", 58 string(2) "0x" 70 string(2) "1x" 94 string(9) "80000000x" 106 string(9) "80000001x" 190 string(9) "80000000x" 226 string(3) "53x" 238 string(2) "1x" 250 string(9) "80000000x"
|
H A D | vprintf_basic9.phpt | 9 $format1 = "%x"; 10 $format2 = "%x %x"; 11 $format3 = "%x %x %x";
|
/php-src/ext/opcache/tests/ |
H A D | gh10914.phpt | 16 $x = new ReflectionEnum(ExampleEnum::class); 17 var_dump($x->getCases()[0]->getValue()); 18 var_dump($x->getCases()[0]->getBackingValue()); 19 var_dump($x->getCase('FIRST')->getValue()); 20 var_dump($x->getCase('FIRST')->getBackingValue());
|
H A D | ssa_bug_003.phpt | 8 function test1($x) : callable { 9 if ($x == 1) { 11 } elseif ($x == 2) { 14 $c = [$x => &$x];
|
/php-src/Zend/tests/type_declarations/union_types/ |
H A D | type_checking_weak.phpt | 48 42, 42.0, INF, "42", "42.0", "42x", "x", "", 101 "42x" => true 102 "x" => true 117 "42x" => true 118 "x" => true 133 "42x" => "42x" 134 "x" => "x" 149 "42x" => "42x" 150 "x" => "x" 181 "42x" => "42x" [all …]
|
/php-src/Zend/tests/ |
H A D | bug80194.phpt | 6 function test($x) { 7 switch ($x->y) { 16 $x = (object)['y' => 'foobar']; 17 var_dump(test($x));
|
H A D | add_optional_by_ref_arg.phpt | 8 $this->method2($x); 9 var_dump($x); 14 public function method2(&$x = null) { 15 ++$x;
|
H A D | ns_035.phpt | 8 function f1($x = ArrayObject::STD_PROP_LIST) { 9 var_dump($x); 11 function f2($x = \ArrayObject::STD_PROP_LIST) { 12 var_dump($x);
|
H A D | indirect_property_access.phpt | 7 public $x = 1; 14 $x = 'bar'; 19 var_dump((new $x)->y); // foo 20 var_dump((new $bar->y)->x); // 1
|
H A D | abstract_inheritance_003.phpt | 6 abstract class A { abstract function bar($x, $y = 0); } 7 abstract class B extends A { abstract function bar($x); } 12 Fatal error: Declaration of B::bar($x) must be compatible with A::bar($x, $y = 0) in %s
|
H A D | bug50174.phpt | 11 function x() {} 14 $rm = new ReflectionMethod('TestClass', 'x'); 22 public $x; 25 $rp = new ReflectionProperty('TestClass2', 'x');
|
/php-src/ext/dom/tests/ |
H A D | dom007.phpt | 51 for($x=0; $x < $length; $x++) { 52 …echo "Index $x: ".$nots->item($x)->nodeName." (".$nots->item($x)->systemId.") (".$nots->item($x)->… 76 for($x=0; $x < $length; $x++) { 77 $xkeys[] = "Index: ".$ents->item($x)->nodeName."\n";
|
/php-src/ext/odbc/ |
H A D | php_odbc_includes.h | 270 #define IS_SQL_LONG(x) (x == SQL_LONGVARBINARY || x == SQL_LONGVARCHAR || x == SQL_WLONGVARCHAR) argument 277 #define IS_SQL_LONG(x) (x == SQL_LONGVARBINARY || x == SQL_LONGVARCHAR) argument 284 #define IS_SQL_BINARY(x) (x == SQL_BINARY || x == SQL_VARBINARY || x == SQL_LONGVARBINARY) argument
|
/php-src/ext/dom/tests/bug79701/ |
H A D | set_attribute_ns_html.phpt | 10 <em id="x">1</em> 15 $test1 = $dom->getElementById('x'); 21 var_dump($dom->getElementById('x')?->nodeName); 26 $test2->setAttributeNS($namespace, "id", 'x'); 27 var_dump($dom->getElementById('x')?->nodeName); 33 var_dump($dom->getElementById('x')?->nodeName); 39 var_dump($dom->getElementById('x')?->nodeName); 49 echo "\n=== Test \"urn:x\" namespace ===\n\n"; 50 test("urn:x"); 70 === Test "urn:x" namespace ===
|
/php-src/ext/session/tests/user_session_module/ |
H A D | sessionhandler_open_001.phpt | 9 $x = new SessionHandler; 12 $x->open('',''); 18 $x->open('',''); 24 $x->open('',''); 30 $x->open('','');
|
/php-src/ext/opcache/tests/jit/ |
H A D | gh8461-005.inc | 3 $x = 0; 6 global $x; 7 $x += 1;
|
H A D | assign_047.phpt | 11 $x = (object)['x'=>0]; 14 $a=$x->x;
|
/php-src/ext/spl/tests/ |
H A D | fixedarray_008.phpt | 15 foreach ($a as $x) { 16 if (is_object($x)) { 17 var_dump($x[0]); 19 var_dump($x);
|
/php-src/ext/xmlreader/tests/ |
H A D | bug64230.phpt | 19 $x = new XMLReader; 20 $x->xml("<root att/>"); 21 $x->read(); 28 $x = new XMLReader; 29 $x->xml("<root att/>"); 30 $x->read();
|
/php-src/ext/gd/tests/ |
H A D | bug53156.phpt | 13 function draw_and_check_pixel($x, $y) 17 echo (imagecolorat($img, $x, $y) === $black) ? '+' : '-'; 18 imagesetpixel($img, $x, $y, $red); 27 $x = ($x1 + $x2) / 2; 29 draw_and_check_pixel($x, $y1); 31 draw_and_check_pixel($x, $y2);
|
/php-src/ext/standard/tests/assert/ |
H A D | bug80290.phpt | 10 $x = 'x'; 11 assert(false, 'Dynamic message: ' . $x); 18 string(18) "Dynamic message: x" 20 Fatal error: Uncaught AssertionError: Dynamic message: x in %s:%d
|
/php-src/ext/reflection/tests/ |
H A D | bug38465.phpt | 11 public function x($a = self::X, $b = Baz::B, $c = 99) {} 54 Foo::x($a = 1) 55 Foo::x($b = 3) 56 Foo::x($c = 99) 62 Foo::x($a = 1) 63 Foo::x($b = 3) 64 Foo::x($c = 99)
|
/php-src/ext/dom/tests/compareDocumentPosition/ |
H A D | attribute_order_different_element.phpt | 13 <inner a="b" x="y" /> 35 --- Compare 1->2 a and x --- 37 --- Compare 2->1 a and x --- 43 --- Compare 1->2 c and x --- 45 --- Compare 2->1 c and x --- 51 --- Compare 1->2 e and x --- 53 --- Compare 2->1 e and x ---
|
/php-src/ext/dom/tests/modern/spec/ |
H A D | Node_lookupPrefix.phpt | 11 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:x="test"> 15 <x/> 42 foreach (['x', 'p', 'html'] as $name) { 43 $x = $dom->getElementsByTagNameNS("*", $name)[0]; 44 var_dump($x->lookupPrefix("")); 45 var_dump($x->lookupPrefix("test")); 64 string(1) "x"
|