/PHP-5.5/ext/phar/tests/tar/ |
H A D | rmdir.phpt | 21 $files['a/x'] = 'a'; 26 $tar->mkdir('a'); 32 echo file_get_contents($alias . '/a/x') . "\n"; 33 var_dump(rmdir($alias . '/a')); 34 echo file_get_contents($alias . '/a/x') . "\n"; 35 unlink($alias . '/a/x'); 36 var_dump(rmdir($alias . '/a')); 41 a 45 a
|
/PHP-5.5/ext/phar/tests/ |
H A D | test_signaturealgos.phpt | 16 $a = new Phar(dirname(__FILE__) . '/files/sha1.phar'); 17 $r = $a->getSignature(); 19 $a = new Phar(dirname(__FILE__) . '/files/sha512.phar'); 20 $r = $a->getSignature(); 22 $a = new Phar(dirname(__FILE__) . '/files/sha256.phar'); 23 $r = $a->getSignature(); 25 $a = new Phar(dirname(__FILE__) . '/files/md5.phar'); 26 $r = $a->getSignature(); 28 $a = new Phar(dirname(__FILE__) . '/files/openssl.phar'); 29 $r = $a->getSignature();
|
/PHP-5.5/ext/standard/tests/strings/ |
H A D | stripos.phpt | 14 var_dump(stripos("a", "")); 15 var_dump(stripos("", "a")); 16 var_dump(stripos("a", " ")); 17 var_dump(stripos("a", "a")); 21 var_dump(stripos("a", 1)); 22 var_dump(stripos("a", false)); 23 var_dump(stripos("a", true)); 27 var_dump(stripos("\\\\a", "\\a"));
|
H A D | ltrim_basic.phpt | 7 * Description: Strip whitespace (or other characters) from the beginning of a string. 13 $text = " \t\r\n\0\x0B ---These are a few words--- "; 21 echo "\n-- Trim non-whitespace from a string --\n"; 24 echo "\n-- Trim some non-white space characters from a string --\n"; 27 echo "\n-- Trim some non-white space characters from a string suing a character range --\n"; 31 echo "\n-- Trim the ASCII control characters at the beginning of a string --\n"; 40 string(29) "---These are a few words--- " 42 -- Trim non-whitespace from a string -- 45 -- Trim some non-white space characters from a string -- 48 -- Trim some non-white space characters from a string suing a character range -- [all …]
|
H A D | rtrim_basic.phpt | 7 * Description: Strip whitespace (or other characters) from the end of a string. 13 $text = "---These are a few words--- \t\r\n\0\x0B "; 23 echo "\n-- Trim non-whitespace from a string --\n"; 26 echo "\n-- Trim some non-white space characters from a string --\n"; 29 echo "\n-- Trim some non-white space characters from a string using a character range --\n"; 32 echo "\n-- Trim the ASCII control characters at the beginning of a string --\n"; 41 string(27) "---These are a few words---" 43 -- Trim non-whitespace from a string -- 46 -- Trim some non-white space characters from a string -- 49 -- Trim some non-white space characters from a string using a character range -- [all …]
|
H A D | strcspn.phpt | 5 $a = "22222222aaaa bbb1111 cccc"; 7 var_dump($a); 9 var_dump(strcspn($a,$b)); 10 var_dump(strcspn($a,$b,9)); 11 var_dump(strcspn($a,$b,9,6)); 12 var_dump(strcspn('a', 'B', 1, 2147483647));
|
/PHP-5.5/ext/standard/tests/general_functions/ |
H A D | var_export_basic8.phpt | 6 * Description: Outputs or returns a string representation of a variable 11 echo "\n\n-- Var export on a simple object --\n"; 15 $o2->a = 1; 21 $a = array(1,2,3,4); 22 var_export($a); 25 $a = array('one' => 'first'); 26 $b = array('foo' => $a, 'bar' => $o2); 32 -- Var export on a simple object -- 34 'a' => 1, 61 'a' => 1,
|
H A D | bug69646.phpt | 11 $a = 'a\\'; 13 var_dump( $a, escapeshellarg($a) ); 27 $cmd = PHP_BINARY . " " . $script . " " . escapeshellarg($a) . " " . escapeshellarg($b); 34 string(2) "a\" 35 string(5) ""a\\"" 43 string(2) "a\"
|
/PHP-5.5/ext/standard/tests/file/ |
H A D | basename_bug66395_variation2-win32.phpt | 10 echo basename("a:\\b:c:d:hello.txt\\hcd:c.txt") . "\n"; 11 echo basename("a:b:c:d:hello.txt\\d:some.txt") . "\n"; 12 echo basename("a:b:c:d:hello\world\a.bmp\c:d:e:f.txt") . "\n"; 13 echo basename("a:\\b:\\c:d:hello\\world\\a.bmp\\d:e:f:g.txt") . "\n"; 14 echo basename("a:\\b:\\c:d:hello/world\\a.bmp\\d:\\e:\\f:g.txt") . "\n"; 15 echo basename("a:\\b:/c:d:hello\\world:somestream") . "\n"; 16 echo basename("a:\\b:\\c:d:hello\\world:some.stream") . "\n"; 17 echo basename("a:/b:\\c:d:hello\\world:some.stream:\$DATA") . "\n"; 19 echo basename("a:\\b:\\c:d:hello\\world:c:\$DATA") . "\n"; 20 echo basename("a:\\b:\\c:d:hello\\d:world:c:\$DATA") . "\n";
|
/PHP-5.5/Zend/tests/ |
H A D | bug54262.phpt | 2 Bug #54262 (Crash when assigning value to a dimension in a non-array) 5 $a = '0'; 6 var_dump(isset($a['b'])); 7 $simpleString = preg_match('//', '', $a->a); 16 Warning: Cannot use a scalar value as an array in %sbug54262.php on line 5
|
H A D | 023.phpt | 6 $a = 'ucfirst'; 7 $b = 'a'; 13 public function a() { 29 $a = 'test'; 30 $b = 'a'; 34 $a = 'strtoupper'; 35 $b = 'a';
|
H A D | call_static_003.phpt | 7 public function __call($a, $b) { 9 var_dump($a); 11 static public function __callStatic($a, $b) { 13 var_dump($a); 22 $a = new Foo; 23 $a->test(); 24 $a::bAr();
|
H A D | objects_024.phpt | 9 public function __set($a, $b) { 13 public function __get($a) { 23 $a = test()->bar = 1; 24 var_dump($a, count(foo::$bar), test()->whatever); 28 $a = test()->bar = NULL; 29 var_dump($a, count(foo::$bar), test()->whatever); 33 $a = test()->bar = test(); 34 var_dump($a, count(foo::$bar), test()->whatever);
|
/PHP-5.5/ext/mbstring/tests/ |
H A D | mb_substr_count.phpt | 16 $a = str_repeat("abcacba", 100); 17 var_dump(@mb_substr_count($a, "bca")); 19 $a = str_repeat("��������������", 100); 21 var_dump(@mb_substr_count($a, $b)); 24 var_dump(@mb_substr_count(mb_convert_encoding($a, $to_enc), 28 var_dump(@mb_substr_count(mb_convert_encoding($a, $to_enc), 31 $a = str_repeat("abcacbabca", 100); 32 var_dump(@mb_substr_count($a, "bca"));
|
/PHP-5.5/tests/lang/operators/ |
H A D | bitwiseOr_variationStr.phpt | 41 string(16) "313233653578797a" 48 --- testing: '0' | '3.4a' --- 69 string(16) "373733653578797a" 76 --- testing: '65' | '3.4a' --- 181 string(16) "717273653578797a" 237 string(16) "313233653578797a" 249 string(16) "313233653578797a" 251 string(16) "373733653578797a" 259 string(16) "717273653578797a" 263 string(16) "313233653578797a" [all …]
|
/PHP-5.5/tests/basic/ |
H A D | bug61000.phpt | 6 1[a][]=foo&1[a][b][c]=bar 8 a[a][]=foo&a[a][b][c]=bar
|
H A D | 018.phpt | 4 a[][]=1&a[][]=3&b[a][b][c]=1&b[a][b][d]=1 7 var_dump($_POST['a']); 24 ["a"]=>
|
/PHP-5.5/ext/pcre/pcrelib/testdata/ |
H A D | testoutput9 | 969 0: a\x{0a}b 993 0: a\x{0a}b 1011 0: a\x{0a}b 1033 0: a\x{0a}b 1039 0: a\x{0d}\x{0a}\x{0d}\x{0a}b 1041 0: a\x{0d}\x{0a}\x{0d}\x{0a}\x{0d}\x{0a}b 1043 0: a\x{0a}\x{0d}\x{0a}\x{0d}b 1045 0: a\x{0a}\x{0a}\x{0d}\x{0a}b 1069 0: X\x{0a}\x{0a}\x{0a} 1127 0: a\x{0a}b [all …]
|
/PHP-5.5/ext/ereg/tests/ |
H A D | 009.phpt | 5 $a=split("[[:space:]]","this is a 7 echo count($a) . "\n"; 8 for ($i = 0; $i < count($a); $i++) { 9 echo $a[$i] . "\n"; 17 a
|
/PHP-5.5/ext/phar/tests/zip/files/ |
H A D | corrupt3.php.inc | 3 $a = new corrupt_zipmaker; 4 $a->addFile('hi', null, 'hii', null, null, null, 'extralen1'); 5 $a->writeZip(dirname(__FILE__) . '/extralen_toolong.zip'); 6 $a = new corrupt_zipmaker; 7 $a->addFile('hi', null, 'hii'); 8 $a->writeZip(dirname(__FILE__) . '/disknumber.zip', 'disknumber');
|
/PHP-5.5/ext/standard/tests/serialize/ |
H A D | bug64146.phpt | 10 public $a = array(); 14 $this->a[] = new B(1); 15 $this->a[] = new B(2); 49 $a = unserialize(serialize(new A())); 51 print $a->a[0]->b->c . "\n"; 52 print $a->a[1]->b->c . "\n";
|
/PHP-5.5/ext/simplexml/tests/ |
H A D | bug66084_1.phpt | 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";
|
/PHP-5.5/ext/standard/tests/class_object/ |
H A D | get_object_vars_variation_002.phpt | 14 $a='original.a'; 15 $obj->ref = &$a; 16 $obj->val = $a; 24 var_dump($arr, $obj, $a); 31 &string(10) "original.a" 33 string(10) "original.a" 45 string(10) "original.a"
|
/PHP-5.5/ext/standard/tests/array/ |
H A D | bug45312.phpt | 10 static function comp_func_cr($a, $b) { 11 if ($a->priv_member === $b->priv_member) return 0; 12 return ($a->priv_member > $b->priv_member) ? 1 : -1; 14 static function comp_func_cr2($a, $b) { 16 if ($a->priv_member === $b->priv_member) return 0; 17 return ($a->priv_member < $b->priv_member) ? 1 : -1; 23 $a = array("0.1" => new cr(9), "0.5" => new cr(12), 0 => new cr(23), 1 => new cr(4), 2 => new cr(-1… 25 $result = array_udiff_assoc($a, $b, array("cr", "comp_func_cr")); 29 $result = array_udiff_assoc($a, $b, array("cr", "comp_func_cr2"));
|
/PHP-5.5/ext/spl/tests/ |
H A D | arrayObject_clone_basic1.phpt | 5 $a = array(1,2); 6 $aa1 = new ArrayObject($a); 7 $a['p1'] = 'new element added to a before clone'; 11 $a['p2'] = 'new element added to a after clone'; 14 var_dump($a, $aa1, $aa2); 23 string(35) "new element added to a before clone" 25 string(34) "new element added to a after clone"
|