/PHP-5.5/tests/lang/ |
H A D | foreachLoop.014.phpt | 12 $a[] = "v.$i"; 16 $ref = &$a; 19 var_dump($a); 22 foreach ($a as $k=>$v) { 33 var_dump($a); 314 ** Stuck in a loop! ** 352 ** Stuck in a loop! ** 394 ** Stuck in a loop! ** 453 ** Stuck in a loop! ** 491 ** Stuck in a loop! ** [all …]
|
H A D | foreachLoop.015.phpt | 12 $a[] = "v.$i"; 16 $ref = &$a; 19 var_dump($a); 22 foreach ($a as $k=>&$v) { 33 var_dump($a); 315 ** Stuck in a loop! ** 353 ** Stuck in a loop! ** 395 ** Stuck in a loop! ** 454 ** Stuck in a loop! ** 492 ** Stuck in a loop! ** [all …]
|
H A D | 005.phpt | 5 $a=1; 7 if($a==0) { 9 } elseif($a==3) {
|
H A D | 010.phpt | 2 Testing function parameter passing with a return value 9 $a = test(1); 10 echo $a;
|
/PHP-5.5/ext/pcre/tests/ |
H A D | preg_match_basic.phpt | 9 $string = 'Hello, world. [*], this is \ a string'; 14 var_dump(preg_match('/\[\*\],\s(.*)/', $string, $match3)); //finds "[*], this is \ a string"; 16 …(?:\s.*)@', $string, $match4, PREG_OFFSET_CAPTURE, 14)); //finds "this is \ a string" (with non-ca… 35 string(23) "[*], this is \ a string" 37 string(18) "this is \ a string" 44 string(18) "this is \ a string"
|
/PHP-5.5/ext/phar/tests/zip/ |
H A D | phar_magicU.phpt | 17 $p['a'] = '<?php include "b/c.php";' . "\n"; 18 $p['b/c.php'] = '<?php echo "in b\n";$a = fopen("a", "r", true);echo stream_get_contents($a);fclose… 24 include "phar://" . __FILE__ . "/a";
|
/PHP-5.5/ext/standard/tests/array/ |
H A D | compact_variation1.phpt | 6 * Description: Creates a hash containing variables and their values 14 $a = 1; 18 $arr1 = array("a", &$arr1); 19 $arr2 = array("a", array(array(array("b")))); 33 ["a"]=> 45 ["a"]=>
|
H A D | array_multisort_natural.phpt | 13 $a = array( 22 '2 a', 29 array_multisort($b, SORT_NATURAL, $a); 31 var_dump($a, $b); 53 string(3) "2 a"
|
H A D | array_uintersect_assoc_basic.phpt | 14 static function comp_func_cr($a, $b) { 15 if ($a->priv_member === $b->priv_member) return 0; 16 return ($a->priv_member > $b->priv_member) ? 1 : -1; 19 $a = array("0.1" => new cr(9), "0.5" => new cr(12), 0 => new cr(23), 1 => new cr(4), 2 => new cr(-1… 21 $result = array_uintersect_assoc($a, $b, array("cr", "comp_func_cr"));
|
H A D | compact_variation2.phpt | 6 * Description: Creates a hash containing variables and their values 12 $a = 'main.a'; 18 var_dump(compact('a','b','c')); 19 var_dump(compact(array('a','b','c')));
|
H A D | array_reduce_variation3.phpt | 6 * Description: Iteratively reduce the array to a single value via the callback. 14 static function adder($a, $b) {return $a + $b;} 15 public function adder2($a, $b) {return $a + $b;}
|
H A D | array_udiff_basic.phpt | 14 static function comp_func_cr($a, $b) { 15 if ($a->priv_member === $b->priv_member) return 0; 16 return ($a->priv_member > $b->priv_member) ? 1 : -1; 19 $a = array("0.1" => new cr(9), "0.5" => new cr(12), 0 => new cr(23), 1 => new cr(4), 2 => new cr(-1… 21 $result = array_udiff($a, $b, array("cr", "comp_func_cr"));
|
H A D | bug24766.phpt | 8 $a = unpack('C2', "\0224V"); 10 debug_zval_dump($a, $b); 11 $k = array_keys($a); 15 var_dump($a[$i]);
|
/PHP-5.5/ext/standard/tests/serialize/ |
H A D | serialization_miscTypes_001.phpt | 14 * Description: Returns a string representation of variable (which can later be unserialized) 19 * Description: Takes a string representation of variable and recreates it 31 $arr_var = array(0, 1, -2, 3.333333, "a", array(), array(NULL)); 67 "a", 161 after serialization => string(6) "a:0:{}" 166 after serialization => string(57) "a:5:{i:0;i:1;i:1;i:2;i:2;i:3;i:3;i:12345666;i:4;i:-2344;}" 181 …a:16:{i:0;i:0;i:1;i:1;i:2;i:2;i:3;d:3.3330000000000002;i:4;i:-4;i:5;d:-5.5549999999999997;i:6;b:1;… 228 after serialization => string(94) "a:7:{i:0;i:0;i:1;i:1;i:2;i:-2;i:3;d:3.3333330000000001;i:4;s:1:"… 239 string(1) "a" 275 after serialization => string(8) "s:1:"a";" [all …]
|
/PHP-5.5/ext/standard/tests/file/ |
H A D | fnmatch_variation.phpt | 76 /* defining a common function */ 187 Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d 191 Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d 267 Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d 271 Warning: fnmatch() expects parameter 2 to be a valid path, string given in %s on line %d 277 Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d 280 Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d 283 Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d 286 Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d 289 Warning: fnmatch() expects parameter 1 to be a valid path, string given in %s on line %d [all …]
|
/PHP-5.5/ext/soap/tests/ |
H A D | classmap003.phpt | 11 function __construct($a){ 12 $this->x = $a; 18 function __construct($a){ 19 parent::__construct($a); 20 $this->y = $a + 1;
|
/PHP-5.5/ext/phar/tests/ |
H A D | 016b.phpt | 16 $files['a'] = array('cont'=>'a','flags'=>0x00001000, 'clen' => 1); 19 echo file_get_contents($pname . '/a'); 24 …et_contents(phar://%s/a): failed to open stream: phar error: internal corruption of phar "%s" (act…
|
/PHP-5.5/ext/spl/tests/ |
H A D | bug61347.phpt | 5 $a = array('b' => NULL, 37 => NULL); 6 var_dump(isset($a['b'])); //false 8 $b = new ArrayObject($a); 18 $a = array('b' => '', 37 => false); 19 $b = new ArrayObject($a);
|
H A D | heap_011.phpt | 6 public function compare($a, $b) { 7 return -parent::compare($a,$b); 18 public function compare($a, $b) { 19 return -parent::compare($a,$b);
|
/PHP-5.5/ext/standard/tests/strings/ |
H A D | sha1.phpt | 7 $a = array( 10 "a", 15 foreach ($a as $str) { 47 string(20) "%a" 48 string(20) "%a"
|
/PHP-5.5/Zend/tests/ |
H A D | bug52041.phpt | 9 foo()->a = 1; 10 foo()->a->b = 2; 11 foo()->a++; 12 foo()->a->b++; 13 foo()->a += 2; 14 foo()->a->b += 2; 38 Notice: Undefined property: stdClass::$a in %sbug52041.php on line 8 42 Notice: Undefined property: stdClass::$a in %sbug52041.php on line 9 52 Notice: Undefined property: stdClass::$a in %sbug52041.php on line 10 56 Notice: Undefined property: stdClass::$a in %sbug52041.php on line 11
|
/PHP-5.5/ext/standard/tests/general_functions/ |
H A D | bug36011.phpt | 31 $a = new TestClass(); 32 $a->whee(); 33 $a->whee4(); 34 $a->whee5();
|
/PHP-5.5/ext/session/tests/ |
H A D | bug41600.phpt | 23 <a href="link.php?a=b"> 28 <a href="link.php?a=b&PHPSESSID=abtest">
|
/PHP-5.5/ext/simplexml/tests/ |
H A D | SimpleXMLElement_addAttribute_required_attribute_name.phpt | 2 SimpleXMLElement: Test to ensure that the required attribute name correctly is giving a warning 10 $a = new SimpleXMLElement("<php>testfest</php>"); 11 $a->addAttribute( "", "" ); 12 echo $a->asXML();
|
/PHP-5.5/ext/reflection/tests/ |
H A D | ReflectionClass_newInstanceArgs_002.phpt | 9 public function __construct($a, $b) { 10 echo "In constructor of class B with arg $a\n"; 14 $a = $rc->newInstanceArgs('x'); 15 var_dump($a);
|