/PHP-5.5/ext/phar/tests/ |
H A D | phar_buildfromiterator6.phpt | 12 var $a; 13 function __construct(array $a) 15 $this->a = $a; 19 return next($this->a); 23 return current($this->a); 27 return key($this->a); 31 return current($this->a); 35 return reset($this->a); 59 Iterator myIterator returned an invalid key (must return a string)
|
H A D | pharfileinfo_construct.phpt | 14 $a = new PharFileInfo($pname . '/oops'); 20 $a = new PharFileInfo(array()); 22 $a = new Phar($fname); 23 $a['a'] = 'hi'; 24 $b = $a['a']; 27 $a = new PharFileInfo($pname . '/oops/I/do/not/exist'); 39 $a = new PharFileInfo(__FILE__); 50 Warning: PharFileInfo::__construct() expects parameter 1 to be a valid path, array given in %spharf… 53 '%spharfileinfo_construct.php' is not a valid phar archive URL (must have at least phar://filename.…
|
H A D | phar_buildfromiterator4.phpt | 12 var $a; 13 function __construct(array $a) 15 $this->a = $a; 19 return next($this->a); 23 return current($this->a); 27 return key($this->a); 31 return current($this->a); 35 return reset($this->a); 43 'a' => basename(__FILE__, 'php') . 'phpt', 80 ["a"]=>
|
/PHP-5.5/ext/phar/tests/tar/ |
H A D | phar_buildfromiterator6.phpt | 12 var $a; 13 function __construct(array $a) 15 $this->a = $a; 19 return next($this->a); 23 return current($this->a); 27 return key($this->a); 31 return current($this->a); 35 return reset($this->a); 59 Iterator myIterator returned an invalid key (must return a string)
|
H A D | rename.phpt | 21 $files['a'] = 'a'; 31 echo file_get_contents($alias . '/a') . "\n"; 32 rename($alias . '/a', $alias . '/b'); 34 echo file_get_contents($alias . '/a') . "\n"; 39 a 40 a 42 …arning: file_get_contents(phar://%srename.phar.tar/a): failed to open stream: phar error: "a" is n…
|
H A D | rename_dir.phpt | 21 $files['a/x'] = 'a'; 31 echo file_get_contents($alias . '/a/x') . "\n"; 32 rename($alias . '/a', $alias . '/b'); 34 echo file_get_contents($alias . '/a/x') . "\n"; 39 a 40 a 42 …: file_get_contents(phar://%srename_dir.phar.tar/a/x): failed to open stream: phar error: "a/x" is…
|
/PHP-5.5/ext/phar/tests/zip/ |
H A D | phar_buildfromiterator6.phpt | 12 var $a; 13 function __construct(array $a) 15 $this->a = $a; 19 return next($this->a); 23 return current($this->a); 27 return key($this->a); 31 return current($this->a); 35 return reset($this->a); 59 Iterator myIterator returned an invalid key (must return a string)
|
/PHP-5.5/ext/standard/tests/file/ |
H A D | chmod_variation2-win32.phpt | 24 echo "chmod() on a path containing .. and .\n"; 30 echo "\nchmod() on a path containing .. with invalid directories\n"; 36 echo "\nchmod() on a relative path from a different working directory\n"; 44 echo "\nchmod() on a directory with a trailing /\n"; 56 chmod() on a path containing .. and . 61 chmod() on a path containing .. with invalid directories 66 chmod() on a relative path from a different working directory 71 chmod() on a directory with a trailing /
|
H A D | ftruncate_variation4-win32.phpt | 13 Description: Truncates a file to a given length 25 "a", "ab", "at", "a+", "a+b", "a+t"); 77 -- Testing ftruncate(): try truncating file to a negative size -- 220 -- Testing ftruncate() with file opening using a mode -- 244 -- Testing ftruncate() with file opening using a+ mode -- 252 -- Testing ftruncate() with file opening using a+b mode -- 260 -- Testing ftruncate() with file opening using a+t mode -- 414 -- Testing ftruncate() with file opening using a mode -- 438 -- Testing ftruncate() with file opening using a+ mode -- 446 -- Testing ftruncate() with file opening using a+b mode -- [all …]
|
H A D | ftruncate_variation4.phpt | 13 Description: Truncates a file to a given length 25 "a", "ab", "at", "a+", "a+b", "a+t"); 77 -- Testing ftruncate(): try truncating file to a negative size -- 220 -- Testing ftruncate() with file opening using a mode -- 244 -- Testing ftruncate() with file opening using a+ mode -- 252 -- Testing ftruncate() with file opening using a+b mode -- 260 -- Testing ftruncate() with file opening using a+t mode -- 414 -- Testing ftruncate() with file opening using a mode -- 438 -- Testing ftruncate() with file opening using a+ mode -- 446 -- Testing ftruncate() with file opening using a+b mode -- [all …]
|
H A D | fgetcsv_variation24.phpt | 11 Testing fgetcsv() to read from a file opened in various write modes and 55 // write another line of text and a blank line 57 // working when only a blank line is read 98 Notice: fgetcsv(): delimiter must be a single character in %s on line %d 100 Notice: fgetcsv(): enclosure must be a single character in %s on line %d 110 Notice: fgetcsv(): delimiter must be a single character in %s on line %d 112 Notice: fgetcsv(): enclosure must be a single character in %s on line %d 122 Notice: fgetcsv(): delimiter must be a single character in %s on line %d 124 Notice: fgetcsv(): enclosure must be a single character in %s on line %d 134 Notice: fgetcsv(): delimiter must be a single character in %s on line %d [all …]
|
/PHP-5.5/ext/pcre/tests/ |
H A D | preg_replace_basic.phpt | 9 $string = '123456789 - Hello, world - This is a string.'; 11 …(preg_replace('<- This is a string$>', 'This shouldn\'t work', $string)); //tries to find '- This … 12 …<[0-35-9]>', '4', $string)); //finds any number that's not 4 and replaces it with a 4 ('444444444') 13 var_dump(preg_replace('<\b[hH]\w{2,4}>', 'Bonjour', $string)); //finds h or H at the beginning of a… 14 … with an indefinite amount of whitespace around them and replaces them with a full stop precedeby … 15 var_dump(preg_replace('<(^[a-z]\w+)@(\w+)\.(\w+)\.([a-z]{2,}$)>', '\\1 at \\2 dot \\3 dot \\4', 'jo… 20 string(54) "123456789 - Hello, world - This is a string." 21 string(54) "123456789 - Hello, world - This is a string." 22 string(54) "444444444 - Hello, world - This is a string." 23 string(56) "123456789 - Bonjour, world - This is a string." [all …]
|
/PHP-5.5/ext/standard/tests/array/ |
H A D | array_walk_recursive_variation2.phpt | 6 * Description: Apply a user function to every member of an array 95 Warning: array_walk_recursive() expects parameter 2 to be a valid callback, no array or string give… 98 Warning: array_walk_recursive() expects parameter 2 to be a valid callback, no array or string give… 102 Warning: array_walk_recursive() expects parameter 2 to be a valid callback, no array or string give… 105 Warning: array_walk_recursive() expects parameter 2 to be a valid callback, no array or string give… 109 Warning: array_walk_recursive() expects parameter 2 to be a valid callback, no array or string give… 112 Warning: array_walk_recursive() expects parameter 2 to be a valid callback, no array or string give… 116 Warning: array_walk_recursive() expects parameter 2 to be a valid callback, no array or string give… 119 Warning: array_walk_recursive() expects parameter 2 to be a valid callback, no array or string give… 179 …ing: array_walk_recursive() expects parameter 2 to be a valid callback, first array member is not … [all …]
|
H A D | array_walk_variation2.phpt | 6 * Description: Apply a user function to every member of an array 95 Warning: array_walk() expects parameter 2 to be a valid callback, no array or string given in %s on… 98 Warning: array_walk() expects parameter 2 to be a valid callback, no array or string given in %s on… 102 Warning: array_walk() expects parameter 2 to be a valid callback, no array or string given in %s on… 105 Warning: array_walk() expects parameter 2 to be a valid callback, no array or string given in %s on… 109 Warning: array_walk() expects parameter 2 to be a valid callback, no array or string given in %s on… 112 Warning: array_walk() expects parameter 2 to be a valid callback, no array or string given in %s on… 116 Warning: array_walk() expects parameter 2 to be a valid callback, no array or string given in %s on… 119 Warning: array_walk() expects parameter 2 to be a valid callback, no array or string given in %s on… 179 Warning: array_walk() expects parameter 2 to be a valid callback, first array member is not a valid… [all …]
|
/PHP-5.5/ext/standard/tests/serialize/ |
H A D | serialization_objects_002.phpt | 32 $this->a = 10; 58 new D( "a", 'a', "string", 'string' ), 92 ["a"]=> 142 ["a"]=> 161 ["a"]=> 180 ["a"]=> 199 ["a"]=> 200 string(1) "a" 218 ["a"]=> 272 ["a"]=> [all …]
|
/PHP-5.5/Zend/tests/ |
H A D | bug47109.phpt | 2 Bug #47109 (Memory leak on $a->{"a"."b"} when $a is not an object) 5 $a->{"a"."b"}; 8 Notice: Undefined variable: a in %sbug47109.php on line 2
|
H A D | objects_019.phpt | 10 $foo[1]->a = &$foo[0]->a; 11 $foo[0]->a = 2; 13 $x = $foo[1]->a; 23 ["a"]=> 28 ["a"]=>
|
H A D | 024.phpt | 6 var_dump($a[1]); 7 var_dump($a[$c]); 8 var_dump($a + 1); 9 var_dump($a + $b); 10 var_dump($a++); 12 var_dump($a->$b); 13 var_dump($a->$b); 14 var_dump($a->$b->$c[1]); 18 Notice: Undefined variable: a in %s on line %d 26 Notice: Undefined variable: a in %s on line %d [all …]
|
/PHP-5.5/ext/mysqli/tests/ |
H A D | mysqli_fetch_array_oo.phpt | 215 func_mysqli_fetch_array($mysqli, $engine, "CHAR(1)", "a", "a", 540); 221 func_mysqli_fetch_array($mysqli, $engine, "VARCHAR(1)", "a", "a", 580); 227 func_mysqli_fetch_array($mysqli, $engine, "BINARY(1)", "a", "a", 630); 237 func_mysqli_fetch_array($mysqli, $engine, "TINYBLOB", "a", "a", 710); 242 func_mysqli_fetch_array($mysqli, $engine, "TINYTEXT", "a", "a", 750); 246 func_mysqli_fetch_array($mysqli, $engine, "BLOB", "a", "a", 780); 250 func_mysqli_fetch_array($mysqli, $engine, "TEXT", "a", "a", 800); 262 func_mysqli_fetch_array($mysqli, $engine, "LONGBLOB", "a", "a", 890); 266 func_mysqli_fetch_array($mysqli, $engine, "ENUM('a', 'b')", "a", "a", 920); 269 func_mysqli_fetch_array($mysqli, $engine, "SET('a', 'b')", "a", "a", 940); [all …]
|
H A D | mysqli_fetch_all.phpt | 240 func_mysqli_fetch_all($link, $engine, "CHAR(1)", "a", "a", 540); 246 func_mysqli_fetch_all($link, $engine, "VARCHAR(1)", "a", "a", 580); 252 func_mysqli_fetch_all($link, $engine, "BINARY(1)", "a", "a", 630); 262 func_mysqli_fetch_all($link, $engine, "TINYBLOB", "a", "a", 710); 267 func_mysqli_fetch_all($link, $engine, "TINYTEXT", "a", "a", 750); 271 func_mysqli_fetch_all($link, $engine, "BLOB", "a", "a", 780); 275 func_mysqli_fetch_all($link, $engine, "TEXT", "a", "a", 800); 287 func_mysqli_fetch_all($link, $engine, "LONGBLOB", "a", "a", 890); 291 func_mysqli_fetch_all($link, $engine, "ENUM('a', 'b')", "a", "a", 920); 294 func_mysqli_fetch_all($link, $engine, "SET('a', 'b')", "a", "a", 940); [all …]
|
H A D | mysqli_fetch_all_oo.phpt | 242 func_mysqli_fetch_all_oo($link, $engine, "CHAR(1)", "a", "a", 540); 248 func_mysqli_fetch_all_oo($link, $engine, "VARCHAR(1)", "a", "a", 580); 254 func_mysqli_fetch_all_oo($link, $engine, "BINARY(1)", "a", "a", 630); 264 func_mysqli_fetch_all_oo($link, $engine, "TINYBLOB", "a", "a", 710); 269 func_mysqli_fetch_all_oo($link, $engine, "TINYTEXT", "a", "a", 750); 273 func_mysqli_fetch_all_oo($link, $engine, "BLOB", "a", "a", 780); 277 func_mysqli_fetch_all_oo($link, $engine, "TEXT", "a", "a", 800); 289 func_mysqli_fetch_all_oo($link, $engine, "LONGBLOB", "a", "a", 890); 293 func_mysqli_fetch_all_oo($link, $engine, "ENUM('a', 'b')", "a", "a", 920); 296 func_mysqli_fetch_all_oo($link, $engine, "SET('a', 'b')", "a", "a", 940); [all …]
|
/PHP-5.5/ext/mbstring/tests/ |
H A D | mb_ereg2.phpt | 8 $a = -1; $b = -1; $c = -1; 9 mbereg($a, $b, $c); 10 var_dump($a, $b, $c); 12 mberegi($a, $b, $c); 13 var_dump($a, $b, $c); 15 mbereg_search_init($a, $b, $c); 16 var_dump($a, $b, $c);
|
/PHP-5.5/tests/basic/ |
H A D | 024.phpt | 7 a=ABC&y=XYZ&c[]=1&c[]=2&c[a]=3 14 ["a"]=> 24 ["a"]=> 28 string(30) "a=ABC&y=XYZ&c[]=1&c[]=2&c[a]=3"
|
/PHP-5.5/ext/json/ |
H A D | README | 8 is handled by a parser based on JSON_checker[1] by Douglas Crockford. 16 json_encode returns a string containing the JSON representation of value. 17 value can be any type except a resource. 21 json_decode takes a JSON string and converts it into a PHP variable. 29 $arr = array("a"=>1,"b"=>2,"c"=>3,"d"=>4,"e"=>5); 32 ---> {"a":1,"b":2,"c":3,"d":4,"e":5} 34 $json = '{"a":1,"b":2,"c":3,"d":4,"e":5}'; 38 ["a"]=> 50 $json = '{"a":1,"b":2,"c":3,"d":4,"e":5}'; 54 ["a"]=>
|
/PHP-5.5/tests/classes/ |
H A D | array_access_003.phpt | 9 public $a = array('1st', 1, 2=>'3rd', '4th'=>4); 13 return array_key_exists($index, $this->a); 19 $a = 'foo'; 20 return $a . 'Bar'; 22 static $a=1; 23 return $a; 25 return $this->a[$index]; 32 return $this->a[$index] = $newval; 36 unset($this->a[$index]);
|