/PHP-8.1/ext/spl/tests/ |
H A D | heap_004.phpt | 11 $h = new myHeap; 14 $h->insert(1); 16 $h->insert(2); 18 $h->insert(3); 25 $h->insert(4); 32 var_dump($h->extract()); 37 var_dump($h->extract()); 43 $h->recoverFromCorruption(); 46 var_dump($h->extract()); 51 var_dump($h->extract());
|
H A D | pqueue_002.phpt | 11 $h = new myPQueue; 14 $h->insert(1, 1); 16 $h->insert(2, 1); 18 $h->insert(3, 1); 25 $h->insert(4, 1); 32 var_dump($h->extract()); 37 var_dump($h->extract()); 43 $h->recoverFromCorruption(); 46 var_dump($h->extract()); 51 var_dump($h->extract());
|
H A D | spl_heap_isempty.phpt | 8 $h = new SplMaxHeap(); 10 var_dump($h->isEmpty())."\n"; 11 $h->insert(2); 13 var_dump($h->isEmpty())."\n"; 14 $h->extract(); 16 var_dump($h->isEmpty())."\n";
|
H A D | spl_heap_iteration_error.phpt | 17 $h = new ext_heap(); 18 $h->insert(array('foobar')); 19 $h->insert(array('foobar1')); 20 $h->insert(array('foobar2')); 23 $h->fail=true; 24 foreach ($h as $value) {}; 30 var_dump($h);
|
/PHP-8.1/ext/zlib/tests/ |
H A D | gzread_error2.phpt | 8 $h = gzopen($f, 'r'); 9 var_dump(gzread($h, 10)); 11 var_dump(gzread($h, 0)); 15 var_dump(gzread($h, 5)); 17 var_dump(gzread($h, -1)); 21 var_dump(gzread($h, 8)); 22 gzclose($h);
|
H A D | gzopen_variation5.phpt | 27 $h = gzopen($tmpfile, "w", true); 28 fwrite($h, "This is the test file"); 29 fclose($h); 32 $h = @gzopen($tmpfile, "r"); 33 if ($h === false) { 38 gzclose($h); 42 $h = @gzopen('dir1/'.$tmpfile, "r"); 43 if ($h === false) { 48 gzclose($h);
|
H A D | gzopen_basic2.phpt | 17 $h = gzopen($filename, $mode); 18 if ($h !== false) { 19 gzwrite($h, $data); 20 gzclose($h); 21 $h = gzopen($filename, 'r'); 22 gzpassthru($h); 23 gzclose($h); 28 var_dump($h);
|
H A D | gzopen_variation8.phpt | 16 $h = fopen($file, 'w'); 17 fwrite($h, $data); 18 fclose($h); 20 $h = gzopen($file, 'r'); 21 gzpassthru($h); 22 gzclose($h);
|
H A D | zlib_scheme_copy_basic.phpt | 14 $h = gzopen($inputFileName, 'r'); 15 $org_data = gzread($h, 4096); 16 gzclose($h); 18 $h = gzopen($outputFileName, 'r'); 19 $copied_data = gzread($h, 4096); 20 gzclose($h);
|
H A D | zlib_scheme_copy_variation1.phpt | 14 $h = gzopen($inputFileName, 'r'); 15 $org_data = gzread($h, 4096); 16 gzclose($h); 19 $h = fopen($outputFileName, 'r'); 20 $copied_data = fread($h, 4096); 21 gzclose($h);
|
H A D | zlib_wrapper_ftruncate_basic.phpt | 11 $h = gzopen($f2, "r"); 12 ftruncate($h, 20); 13 fclose($h); 16 $h = gzopen($f2, "w"); 17 ftruncate($h, 20); 18 fclose($h);
|
H A D | gzfile_variation15.phpt | 28 $h = gzopen($secondFile, "w"); 29 gzwrite($h, "This is a file in dir2"); 30 gzclose($h); 37 $h = gzopen($firstFile, "w"); 38 gzwrite($h, "This is a file in dir1"); 39 gzclose($h); 46 $h = gzopen($filename, "w"); 48 gzclose($h); 62 $h = gzopen($scriptFile, "w"); 63 gzwrite($h, "This is a file in script dir"); [all …]
|
H A D | readgzfile_variation15.phpt | 28 $h = gzopen($secondFile, "w"); 29 gzwrite($h, "This is a file in dir2"); 30 gzclose($h); 38 $h = gzopen($firstFile, "w"); 39 gzwrite($h, "This is a file in dir1"); 40 gzclose($h); 48 $h = gzopen($filename, "w"); 50 gzclose($h); 66 $h = gzopen($scriptFile, "w"); 67 gzwrite($h, "This is a file in script dir"); [all …]
|
H A D | gzwrite_variation1.phpt | 9 $h = gzopen($filename, 'r'); 12 var_dump(gzwrite( $h, $str ) ); 13 var_dump(gzread($h, 10)); 14 var_dump(gzwrite( $h, $str, $length ) ); 15 gzclose($h);
|
/PHP-8.1/ext/standard/tests/file/ |
H A D | fopen_variation19.phpt | 24 fwrite($h, "Hello World"); 25 fclose($h); 65 $h = fopen($file, 'r'); 66 fpassthru($h); 67 fclose($h); 73 fwrite($h, ' again!'); 74 fseek($h, 0); 75 fpassthru($h); 76 fclose($h); 81 $h = fopen($file, 'w'); [all …]
|
H A D | fopen_variation7.phpt | 27 $h = fopen($tmpfile, "w", true); 28 fwrite($h, "This is the test file"); 29 fclose($h); 32 $h = @fopen($tmpfile, "r"); 33 if ($h === false) { 38 fclose($h); 42 $h = @fopen($dir1.'/'.$tmpfile, "r"); 43 if ($h === false) { 48 fclose($h);
|
H A D | fopen_variation9.phpt | 27 $h = fopen($tmpfile, "w", true); 28 fwrite($h, "This is the test file"); 29 fclose($h); 32 $h = @fopen($tmpfile, "r"); 33 if ($h === false) { 38 fclose($h); 42 $h = @fopen('dir1/'.$tmpfile, "r"); 43 if ($h === false) { 48 fclose($h);
|
H A D | fopen_variation16.phpt | 35 $h = fopen($tmpfile, "w+", true); 36 fwrite($h, "This is the test file"); 37 fclose($h); 39 $h = @fopen($dir1.'/'.$tmpfile, "r"); 40 if ($h === false) { 45 fclose($h); 48 $h = fopen($tmpfile, "r", true); 49 if ($h === false) { 54 fclose($h);
|
H A D | fopen_variation17.phpt | 34 $h = fopen($tmpfile, "w+", true); 35 fwrite($h, "This is the test file"); 36 fclose($h); 38 $h = @fopen($dir1.'/'.$tmpfile, "r"); 39 if ($h === false) { 44 fclose($h); 47 $h = fopen($tmpfile, "r", true); 48 if ($h === false) { 53 fclose($h);
|
/PHP-8.1/ext/reflection/tests/ |
H A D | bug52057.phpt | 18 var_dump($h = $reflection->getMethod('__invoke')); // true 19 var_dump($h->class.'::'.$h->getName()); 22 var_dump($h = $reflection->getMethod('__invoke')); // true 23 var_dump($h->class.'::'.$h->getName()); 26 var_dump($h = $reflection->getMethod('__invoke')); // true 27 var_dump($h->class.'::'.$h->getName());
|
/PHP-8.1/ext/date/ |
H A D | config.w32 | 9 var tl_config = FSO.CreateTextFile("ext/date/lib/timelib_config.h", true); 10 tl_config.WriteLine("#include \"config.w32.h\""); 11 tl_config.WriteLine("#include <php_stdint.h>"); 12 tl_config.WriteLine("#include \"zend.h\""); 21 PHP_INSTALL_HEADERS("ext/date/", "php_date.h lib/timelib.h lib/timelib_config.h"); 22 AC_DEFINE('HAVE_TIMELIB_CONFIG_H', 1, 'Have timelib_config.h')
|
/PHP-8.1/ext/date/lib/ |
H A D | interval.c | 52 rt->h = 0 - rt->h; in swap_if_negative() 109 rt->h = two->h - one->h; in timelib_diff_with_tzid() 155 rt->h -= dst_h_corr; in timelib_diff_with_tzid() 169 rt->h -= dst_h_corr; in timelib_diff_with_tzid() 180 rt->h = 24; in timelib_diff_with_tzid() 184 rt->h -= dst_h_corr; in timelib_diff_with_tzid() 215 rt->h = two->h - one->h; in timelib_diff() 217 rt->h = rt->h + one->dst; in timelib_diff() 220 rt->h = rt->h - two->dst; in timelib_diff() 279 t->relative.h = interval->h * bias; in timelib_add() [all …]
|
/PHP-8.1/ext/hash/murmur/ |
H A D | PMurHash.c | 208 uint32_t PMurHash32_Result(uint32_t h, uint32_t carry, uint32_t total_length) in PMurHash32_Result() argument 214 k1 *= kC1; k1 = ROTL32(k1,15); k1 *= kC2; h ^= k1; in PMurHash32_Result() 216 h ^= total_length; in PMurHash32_Result() 219 h ^= h >> 16; in PMurHash32_Result() 220 h *= 0x85ebca6b; in PMurHash32_Result() 221 h ^= h >> 13; in PMurHash32_Result() 222 h *= 0xc2b2ae35; in PMurHash32_Result() 223 h ^= h >> 16; in PMurHash32_Result() 225 return h; in PMurHash32_Result()
|
/PHP-8.1/ext/mbstring/ |
H A D | config.m4 | 38 out="php_config.h" 40 if test "$ext_shared" != "no" && test -f "$ext_builddir/config.h.in"; then 41 out="$abs_builddir/config.h" 44 cat > $ext_builddir/libmbfl/config.h <<EOF 48 PHP_MBSTRING_ADD_INSTALL_HEADERS([mbstring.h]) 62 #include <oniguruma.h> 79 PHP_MBSTRING_ADD_INSTALL_HEADERS([php_mbregex.h php_onig_compat.h]) 156 …h libmbfl/mbfl/eaw_table.h libmbfl/mbfl/mbfilter.h libmbfl/mbfl/mbfilter_8bit.h libmbfl/mbfl/mbfil…
|
/PHP-8.1/ext/dba/ |
H A D | config.m4 | 239 THIS_INCLUDE=$i/include/tcadb.h 270 THIS_INCLUDE=$i/include/lmdb.h 378 if test -f "$i/db5/db.h"; then 380 THIS_INCLUDE=$i/db5/db.h 384 THIS_INCLUDE=$i/db4/db.h 428 THIS_INCLUDE=$i/include/db.h 443 if test -f "$i/db3/db.h"; then 461 THIS_INCLUDE=$i/include/db.h 478 THIS_INCLUDE=$i/db2/db.h 520 for i in db$THIS_VERSION/db_185.h include/db$THIS_VERSION/db_185.h include/db/db_185.h; do [all …]
|