/PHP-8.0/ext/gd/tests/ |
H A D | bug24594.phpt | 12 $base = imagecreate(150,150); 15 $white = imagecolorallocate($base,255,255,255); 16 $black = imagecolorallocate($base,0,0,0); 25 imagesettile($base,$tile); 26 imagerectangle($base, 9,9,139,139,$black); 27 imageline($base, 9,9,139,139,$black); 28 imagefill($base,11,12,IMG_COLOR_TILED); 30 $res = imagecolorat($base,0,10)==$black?'1':'0'; 53 imagerectangle($base, 9,9,139,139,$black); 54 imageline($base, 9,9,139,139,$black); [all …]
|
/PHP-8.0/tests/classes/ |
H A D | private_members.phpt | 6 class base 57 base::test 61 [member:base:private] => base::member 67 [member:base:private] => base::member 70 base::test 74 [member:base:private] => base::member 76 base::test 80 [member:base:private] => base::member 86 [member:base:private] => base::member 93 [member:base:private] => base::member [all …]
|
H A D | clone_003.phpt | 5 class base { 6 protected $p1 = 'base:1'; 7 public $p2 = 'base:2'; 8 public $p3 = 'base:3'; 9 public $p4 = 'base:4'; 10 public $p5 = 'base:5'; 16 class test extends base { 43 [p2] => base:2 44 [p6:base:private] => base:6 53 [p2] => base:2 [all …]
|
H A D | ctor_dtor_inheritance.phpt | 11 class base { 47 $t = new base(); 56 Testing class base 57 base::__construct 58 base Object 60 [name] => base 62 base::__destruct 63 base Object 65 [name] => base 73 base::__construct [all …]
|
H A D | interface_implemented.phpt | 14 class base { 46 $t = new base(); 63 is_a(base, base) = yes 64 is_a(base, derived_a) = no 65 is_a(base, derived_b) = no 66 is_a(base, derived_c) = no 67 is_a(base, derived_d) = no 68 is_a(base, if_a) = no 69 is_a(base, if_b) = no 71 is_a(derived_a, base) = yes [all …]
|
H A D | class_abstract.phpt | 6 abstract class base { 8 echo "base\n"; 12 class derived extends base { 18 $t = new base(); 24 base 26 Fatal error: Uncaught Error: Cannot instantiate abstract class base in %s:%d
|
H A D | private_redeclare.phpt | 5 class base { 7 echo "base\n"; 14 $t = new base(); 17 class derived extends base { 33 base 36 base 38 Fatal error: Uncaught Error: Call to private method base::show() from scope derived in %s:%d
|
H A D | visibility_005.phpt | 6 class base 20 class derived extends base 24 $o = new base; 26 echo "===base::function===\n"; 28 echo "===base,foreach===\n"; 44 ===base::function=== 49 ===base,foreach===
|
H A D | class_final.phpt | 6 final class base { 8 echo "base\n"; 12 $t = new base(); 14 class derived extends base { 20 Fatal error: Class derived may not inherit from final class (base) in %s on line %d
|
H A D | destructor_inheritance.phpt | 5 class base { 15 class derived extends base { 25 base::__construct 26 base::__destruct
|
/PHP-8.0/ext/standard/tests/class_object/ |
H A D | is_a.phpt | 14 class base { 57 $t = new base(); 70 $t = new base(); 86 is_a( OBJECT:base, base) = yes 87 is_a( STRING:base, base) = no 88 is_a( STRING:base, base, true) = yes 89 is_subclass_of( OBJECT:base, base) = no 90 is_subclass_of( STRING:base, base) = no 91 is_subclass_of( STRING:base, base,false) = no 195 is_a( STRING:base, base) = no [all …]
|
/PHP-8.0/ext/reflection/tests/ |
H A D | static_properties_002.phpt | 6 class base { 14 base::$prop++; 19 class derived extends base { 32 base::show(); 35 base::inc(); 37 base::show(); 42 base::show(); 51 base::show(2) 53 base::inc() 54 base::show(3) [all …]
|
/PHP-8.0/ext/standard/tests/dir/ |
H A D | bug73877.phpt | 13 $base = __DIR__ . DIRECTORY_SEPARATOR . "bug73877"; 14 $dir0 = $base . DIRECTORY_SEPARATOR . "bug73877"; 15 $dir1 = $base . DIRECTORY_SEPARATOR . "Серёжка"; 16 $junk0 = $base . DIRECTORY_SEPARATOR . "Серёжка2"; 18 mkdir($base); 34 $base = __DIR__ . DIRECTORY_SEPARATOR . "bug73877"; 35 $dir0 = $base . DIRECTORY_SEPARATOR . "bug73877"; 36 $dir1 = $base . DIRECTORY_SEPARATOR . "Серёжка"; 37 $junk0 = $base . DIRECTORY_SEPARATOR . "Серёжка2"; 42 rmdir($base);
|
H A D | dir_bug73971.phpt | 11 $base = __DIR__ . DIRECTORY_SEPARATOR . "bug73971"; 12 $filename = $base . DIRECTORY_SEPARATOR . str_repeat('テスト', 48); // 144 glyph here, less than 256 14 mkdir($base); 20 $d = dir($base); 27 $dir = new DirectoryIterator($base); 35 $base = __DIR__ . DIRECTORY_SEPARATOR . "bug73971"; 36 $filename = $base . DIRECTORY_SEPARATOR . str_repeat('テスト', 48); 39 rmdir($base);
|
/PHP-8.0/ext/ldap/tests/ |
H A D | connect.inc | 31 function insert_dummy_data($link, $base) { 36 $link, "$base", array( 46 ldap_add($link, "o=test,$base", array( 52 ldap_add($link, "cn=userA,$base", array( 60 ldap_add($link, "cn=userB,$base", array( 73 ldap_add($link, "o=test2,$base", array( 82 function remove_dummy_data($link, $base) { 84 ldap_delete($link, "cn=userA,$base"); 85 ldap_delete($link, "cn=userB,$base"); 86 ldap_delete($link, "o=test,$base"); [all …]
|
H A D | ldap_count_references_basic.phpt | 10 insert_dummy_data($link, $base); 11 ldap_add($link, "cn=userref,$base", array( 14 "ref" => "cn=userA,$base", 16 ldap_add($link, "cn=userref2,$base", array( 19 "ref" => "cn=userB,$base", 22 $result = ldap_search($link, "$base", "(cn=*)"); 31 ldap_delete($link, "cn=userref,$base", [['oid' => LDAP_CONTROL_MANAGEDSAIT, 'iscritical' => TRUE]]); 32 ldap_delete($link, "cn=userref2,$base", [['oid' => LDAP_CONTROL_MANAGEDSAIT, 'iscritical' => TRUE]]… 33 remove_dummy_data($link, $base);
|
H A D | ldap_next_reference_basic.phpt | 13 insert_dummy_data($link, $base); 14 ldap_add($link, "cn=userref,$base", array( 17 "ref" => "cn=userA,$base", 19 ldap_add($link, "cn=userref2,$base", array( 22 "ref" => "cn=userB,$base", 25 $result = ldap_search($link, "$base", "(cn=*)"); 37 ldap_delete($link, "cn=userref,$base", [['oid' => LDAP_CONTROL_MANAGEDSAIT, 'iscritical' => TRUE]]); 38 ldap_delete($link, "cn=userref2,$base", [['oid' => LDAP_CONTROL_MANAGEDSAIT, 'iscritical' => TRUE]]… 39 remove_dummy_data($link, $base);
|
H A D | ldap_rename_basic.phpt | 14 insert_dummy_data($link, $base); 16 ldap_rename($link, "cn=userA,$base", "cn=userZ", "$base", true) 18 $result = ldap_search($link, "$base", "(cn=userA)", array("cn", "sn")); 19 $result = ldap_search($link, "$base", "(cn=userZ)", array("cn", "sn")); 27 ldap_rename($link, "cn=userZ,$base", "cn=userA", "$base", true); 28 remove_dummy_data($link, $base);
|
H A D | ldap_exop_passwd.phpt | 13 insert_dummy_data($link, $base); 19 $genpw = ldap_exop_passwd($link, "cn=userA,$base", "oops", "", $ctrls), 21 $genpw = ldap_exop_passwd($link, "cn=userA,$base"), 22 test_bind($host, $port, "cn=userA,$base", $genpw, $protocol_version), 23 ldap_exop_passwd($link, "cn=userA,$base", $genpw, "newPassword"), 24 test_bind($host, $port, "cn=userA,$base", "newPassword", $protocol_version) 33 remove_dummy_data($link, $base);
|
/PHP-8.0/ext/standard/tests/math/ |
H A D | log.phpt | 17 // Now test the base form of log 18 for ($base = 2; $base < 11; $base++) { 20 $x2 = (int) pow($base, log($x, $base)); 21 // base ^ log(x) should be close in range to x 25 print "base $base: $x : $x2\n";
|
/PHP-8.0/Zend/ |
H A D | zend_sort.c | 84 ZEND_API void zend_insert_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_… in zend_insert_sort() argument 90 zend_sort_2(base, (char *)base + siz, cmp, swp); in zend_insert_sort() 93 zend_sort_3(base, (char *)base + siz, (char *)base + siz + siz, cmp, swp); in zend_insert_sort() 98 zend_sort_4(base, (char *)base + siz, (char *)base + siz2, (char *)base + siz + siz2, cmp, swp); in zend_insert_sort() 104 …zend_sort_5(base, (char *)base + siz, (char *)base + siz2, (char *)base + siz + siz2, (char *)base… in zend_insert_sort() 110 char *start = (char *)base; in zend_insert_sort() 248 ZEND_API void zend_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp) in zend_sort() argument 252 zend_insert_sort(base, nmemb, siz, cmp, swp); in zend_sort() 256 char *start = (char *)base; in zend_sort() 298 base = i; in zend_sort()
|
H A D | zend_long.h | 65 # define ZEND_STRTOL(s0, s1, base) _strtoi64((s0), (s1), (base)) argument 66 # define ZEND_STRTOUL(s0, s1, base) _strtoui64((s0), (s1), (base)) argument 77 # define ZEND_STRTOL(s0, s1, base) strtoll((s0), (s1), (base)) argument 78 # define ZEND_STRTOUL(s0, s1, base) strtoull((s0), (s1), (base)) argument 84 # define ZEND_STRTOL(s0, s1, base) strtol((s0), (s1), (base)) argument 85 # define ZEND_STRTOUL(s0, s1, base) strtoul((s0), (s1), (base)) argument
|
H A D | zend_map_ptr.h | 49 # define ZEND_MAP_PTR_REAL_BASE(base) \ argument 50 (base) 51 # define ZEND_MAP_PTR_SET_REAL_BASE(base, ptr) do { \ argument 52 base = (ptr); \ 82 # define ZEND_MAP_PTR_REAL_BASE(base) \ argument 83 ((void*)(((uintptr_t)(base)) + 1)) 84 # define ZEND_MAP_PTR_SET_REAL_BASE(base, ptr) do { \ argument 85 base = (void*)(((uintptr_t)(ptr)) - 1); \
|
/PHP-8.0/ext/standard/tests/file/ |
H A D | filesize_variation2-win32.phpt | 16 echo "-- Creating a base dir, and checking its size --\n"; 21 echo "-- Creating a file inside base dir, and checking dir & file size --\n"; 29 echo "-- Creating an empty sub-dir in base-dir, and checking size of base and sub dir --\n"; 31 var_dump( filesize( $file_path."/filesize_variation2")); // size of base dir 36 echo "-- Creating a file inside sub-dir, and checking size of base, subdir and file created --\n"; 37 // create only the file, as base and subdir is already created 42 // size of base dir 65 -- Creating a base dir, and checking its size -- 67 -- Creating a file inside base dir, and checking dir & file size -- 70 -- Creating an empty sub-dir in base-dir, and checking size of base and sub dir -- [all …]
|
H A D | filesize_variation2.phpt | 16 echo "-- Creating a base dir, and checking its size --\n"; 21 echo "-- Creating a file inside base dir, and checking dir & file size --\n"; 29 echo "-- Creating an empty sub-dir in base-dir, and checking size of base and sub dir --\n"; 31 var_dump( filesize( $file_path."/filesize_variation2")); // size of base dir 36 echo "-- Creating a file inside sub-dir, and checking size of base, subdir and file created --\n"; 37 // create only the file, as base and subdir is already created 42 // size of base dir 65 -- Creating a base dir, and checking its size -- 67 -- Creating a file inside base dir, and checking dir & file size -- 70 -- Creating an empty sub-dir in base-dir, and checking size of base and sub dir -- [all …]
|