/PHP-7.4/ext/spl/tests/ |
H A D | heap_007.phpt | 5 $h = new SplMaxHeap(); 7 $h->insert(1); 8 $h->insert(5); 9 $h->insert(0); 10 $h->insert(4); 12 $h->rewind(); 13 echo "count(\$h) = ".count($h)."\n"; 14 echo "\$h->count() = ".$h->count()."\n"; 20 $h->next(); 26 count($h) = 4 [all …]
|
H A D | pqueue_003.phpt | 7 $h->insert(1, 1); 8 $h->insert(5, 5); 9 $h->insert(0, 0); 10 $h->insert(4, 4); 12 $h->rewind(); 13 echo "count(\$h) = ".count($h)."\n"; 14 echo "\$h->count() = ".$h->count()."\n"; 16 $k = $h->key(); 19 $h->next(); 25 count($h) = 4 [all …]
|
H A D | heap_001.phpt | 5 $h = new SplMaxHeap(); 9 $h->extract(); 15 $h->insert(1); 16 $h->insert(2); 17 $h->insert(3); 18 $h->insert(3); 19 $h->insert(3); 21 echo $h->count()."\n"; 27 echo $h->count()."\n"; 32 $h->insert($b); [all …]
|
H A D | heap_002.phpt | 5 $h = new SplMinHeap(); 9 $h->extract(); 15 $h->insert(1); 16 $h->insert(2); 17 $h->insert(3); 18 $h->insert(3); 19 $h->insert(3); 21 echo $h->count()."\n"; 22 echo $h->extract()."\n"; 27 echo $h->count()."\n"; [all …]
|
H A D | heap_011.phpt | 10 $h = new SplMinHeap2(); 11 $h->insert(1); 12 $h->insert(6); 13 $h->insert(5); 14 $h->insert(2); 15 var_dump($h->top()); 23 $h->insert(1); 24 $h->insert(6); 25 $h->insert(5); 26 $h->insert(2); [all …]
|
/PHP-7.4/ext/spl/ |
H A D | config.m4 | 2 …pl.h spl_array.h spl_directory.h spl_engine.h spl_exceptions.h spl_functions.h spl_iterators.h spl…
|
H A D | config.w32 | 5 …pl.h spl_array.h spl_directory.h spl_engine.h spl_exceptions.h spl_functions.h spl_iterators.h spl…
|
/PHP-7.4/ext/standard/tests/file/ |
H A D | fread_fwrite_basic.phpt | 29 fwrite($h, $out1); 32 fwrite($h, $out2); 34 var_dump(feof($h)); 36 fwrite($h, $out3); 39 fclose($h); 43 fread($h,1024); 44 var_dump(feof($h)); 45 fread($h,1); 48 fwrite($h, $out); 50 fread($h,1); [all …]
|
H A D | fopen_variation5.phpt | 66 fclose($h); 71 fpassthru($h); 72 fclose($h); 78 fclose($h); 82 fpassthru($h); 83 fclose($h); 89 fclose($h); 94 fclose($h); 103 fclose($h); 109 fclose($h); [all …]
|
H A D | fopen_variation8.phpt | 65 fclose($h); 70 fpassthru($h); 71 fclose($h); 77 fclose($h); 81 fpassthru($h); 82 fclose($h); 88 fclose($h); 93 fclose($h); 102 fclose($h); 108 fclose($h); [all …]
|
H A D | fopen_variation6.phpt | 17 $h = fopen($absfile, "w"); 18 fwrite($h, "This is an absolute file"); 19 fclose($h); 21 $h = fopen($relfile, "w"); 22 fwrite($h, "This is a relative file"); 23 fclose($h); 26 $h = fopen($absfile, "r", true, $ctx); 27 fpassthru($h); 28 fclose($h); 32 fpassthru($h); [all …]
|
H A D | fseek_variation3.phpt | 17 $h = fopen($outputfile, "wb+"); 19 fwrite($h, chr(0x30 + $i)); 23 var_dump(fseek($h, -4, SEEK_SET)); 24 echo "after -4 seek: ".bin2hex(fread($h,1))."\n"; 25 var_dump(fseek($h, -1, SEEK_CUR)); 27 var_dump(fseek($h, -20, SEEK_CUR)); 31 var_dump(fseek($h, 16, SEEK_SET)); 32 fwrite($h, "end"); 33 fseek($h ,0, SEEK_SET); 34 $data = fread($h, 4096); [all …]
|
/PHP-7.4/Zend/ |
H A D | Makefile.frag | 5 $(builddir)/zend_language_scanner.lo: $(srcdir)/zend_language_parser.h 6 $(builddir)/zend_ini_scanner.lo: $(srcdir)/zend_ini_parser.h 11 $(srcdir)/zend_language_parser.h: $(srcdir)/zend_language_parser.c 20 @$(SED) -e 's,^int zendparse\(.*\),ZEND_API int zendparse\1,g' < $(srcdir)/zend_language_parser.h \ 21 > $(srcdir)/zend_language_parser.h.tmp && \ 22 mv $(srcdir)/zend_language_parser.h.tmp $(srcdir)/zend_language_parser.h 25 > $(srcdir)/zend_language_parser.h.tmp && \ 26 mv $(srcdir)/zend_language_parser.h.tmp $(srcdir)/zend_language_parser.h 28 $(srcdir)/zend_ini_parser.h: $(srcdir)/zend_ini_parser.c 35 $(builddir)/zend_highlight.lo $(builddir)/zend_compile.lo: $(srcdir)/zend_language_parser.h [all …]
|
/PHP-7.4/ext/zlib/tests/ |
H A D | gzseek_basic2.phpt | 12 $h = gzopen($f, 'w'); 15 gzwrite($h, $str1); 16 echo "tell=".gztell($h)."\n"; 19 gzseek($h, strlen($str1) + 20); 20 echo "tell=".gztell($h)."\n"; 21 gzwrite($h, $str2); 22 echo "tell=".gztell($h)."\n"; 23 gzclose($h); 25 $h = gzopen($f, 'r'); 27 var_dump(bin2hex(gzread($h, 20))); [all …]
|
H A D | gzseek_variation5.phpt | 12 $h = gzopen($f, 'w'); 15 gzwrite($h, $str1); 16 echo "tell=".gztell($h)."\n"; 19 gzseek($h, 20, SEEK_CUR); 20 echo "tell=".gztell($h)."\n"; 21 gzwrite($h, $str2); 22 echo "tell=".gztell($h)."\n"; 23 gzclose($h); 25 $h = gzopen($f, 'r'); 27 var_dump(bin2hex(gzread($h, 20))); [all …]
|
H A D | gzseek_variation4.phpt | 12 $h = gzopen($f, 'w'); 15 gzwrite($h, $str1); 16 echo "tell=".gztell($h)."\n"; 20 echo "tell=".gztell($h)."\n"; 21 gzwrite($h, $str2); 22 echo "tell=".gztell($h)."\n"; 23 gzclose($h); 25 $h = gzopen($f, 'r'); 26 echo gzread($h, strlen($str1))."\n"; 27 var_dump(bin2hex(gzread($h, 20))); [all …]
|
H A D | gzread_variation1.phpt | 13 $h = gzopen($filename, 'w'); 15 var_dump(gzread($h, 100)); 16 gzwrite( $h, $str); 17 var_dump(gzread($h, 100)); 18 gzrewind($h); 19 var_dump(gzread($h, 100)); 20 gzclose($h); 22 $h = gzopen($filename, 'r'); 23 gzpassthru($h); 24 gzclose($h);
|
H A D | gzopen_variation6.phpt | 21 $h = gzopen($absfile, "w"); 23 gzclose($h); 25 $h = gzopen($relfile, "w"); 26 gzwrite($h, "This is a relative file"); 27 gzclose($h); 29 $h = gzopen($absfile, "r"); 30 gzpassthru($h); 31 fclose($h); 34 $h = gzopen($relfile, "r"); 35 gzpassthru($h); [all …]
|
H A D | gzrewind_basic.phpt | 12 $h = gzopen($f, 'r'); 14 var_dump(gzrewind($h)); 15 var_dump(gztell($h)); 16 echo "\nfirst 30 characters=".gzread($h, 30)."\n"; 17 var_dump(gztell($h)); 18 gzrewind($h); 19 var_dump(gztell($h)); 20 echo "first 10 characters=".gzread($h, 10)."\n"; 21 gzrewind($h); 22 echo "first 20 characters=".gzread($h, 20)."\n"; [all …]
|
H A D | gzseek_variation1.phpt | 12 $h = gzopen($f, 'w'); 15 gzwrite($h, $str1); 18 gzseek($h, strlen($str1) + 20); 19 gzwrite($h, $str2); 20 gzclose($h); 21 $h = gzopen($f, 'r'); 22 echo gzread($h, strlen($str1))."\n"; 23 var_dump(bin2hex(gzread($h, 20))); 24 echo gzread($h, strlen($str2))."\n"; 25 gzclose($h);
|
H A D | zlib_wrapper_fflush_basic.phpt | 13 $h = gzopen($filename, 'w'); 16 var_dump(fflush($h)); 17 gzwrite( $h, $str); 18 gzwrite( $h, $str); 19 var_dump(fflush($h)); 20 gzclose($h); 22 $h = gzopen($filename, 'r'); 23 gzpassthru($h); 24 gzclose($h);
|
H A D | gzrewind_variation1.phpt | 12 $h = gzopen($f, 'w'); 13 gzwrite($h, 'The first string.'); 14 var_dump(gzrewind($h)); 15 gzwrite($h, 'The second string.'); 16 gzclose($h); 18 $h = gzopen($f, 'r'); 19 gzpassthru($h); 20 gzclose($h);
|
/PHP-7.4/ext/hash/ |
H A D | config.w32 | 27 if (!CHECK_HEADER_ADD_INCLUDE('KeccakHash.h', 'CFLAGS_HASH', hash_sha3_dir)) { 34 PHP_INSTALL_HEADERS('ext/hash/', 'php_hash.h php_hash_md.h php_hash_sha.h ' + 35 'php_hash_ripemd.h php_hash_haval.h php_hash_tiger.h ' + 36 'php_hash_gost.h php_hash_snefru.h php_hash_whirlpool.h ' + 37 'php_hash_adler32.h php_hash_crc32.h php_hash_sha3.h');
|
H A D | config.m4 | 42 EXT_HASH_HEADERS="php_hash.h php_hash_md.h php_hash_sha.h php_hash_ripemd.h \ 43 php_hash_haval.h php_hash_tiger.h php_hash_gost.h php_hash_snefru.h \ 44 php_hash_whirlpool.h php_hash_adler32.h php_hash_crc32.h \ 45 php_hash_fnv.h php_hash_joaat.h php_hash_sha3.h"
|
/PHP-7.4/ext/fileinfo/libmagic/ |
H A D | cdf.c | 188 h->h_magic = CDF_TOLE8(h->h_magic); in cdf_swap_header() 189 h->h_uuid[0] = CDF_TOLE8(h->h_uuid[0]); in cdf_swap_header() 190 h->h_uuid[1] = CDF_TOLE8(h->h_uuid[1]); in cdf_swap_header() 191 h->h_revision = CDF_TOLE2(h->h_revision); in cdf_swap_header() 192 h->h_version = CDF_TOLE2(h->h_version); in cdf_swap_header() 193 h->h_byte_order = CDF_TOLE2(h->h_byte_order); in cdf_swap_header() 194 h->h_sec_size_p2 = CDF_TOLE2(h->h_sec_size_p2); in cdf_swap_header() 195 h->h_short_sec_size_p2 = CDF_TOLE2(h->h_short_sec_size_p2); in cdf_swap_header() 302 CDF_SHORT_SEC_SIZE(h) : CDF_SEC_SIZE(h); in cdf_check_stream() 1301 h->h_ ## b, 1 << h->h_ ## b) in cdf_dump_header() [all …]
|