/php-src/ext/zlib/tests/ |
H A D | gzseek_variation1.phpt | 8 $h = gzopen($f, 'w'); 11 gzwrite($h, $str1); 14 gzseek($h, strlen($str1) + 20); 15 gzwrite($h, $str2); 16 gzclose($h); 17 $h = gzopen($f, 'r'); 18 echo gzread($h, strlen($str1))."\n"; 19 var_dump(bin2hex(gzread($h, 20))); 20 echo gzread($h, strlen($str2))."\n"; 21 gzclose($h);
|
H A D | zlib_wrapper_fflush_basic.phpt | 9 $h = gzopen($filename, 'w'); 12 var_dump(fflush($h)); 13 gzwrite( $h, $str); 14 gzwrite( $h, $str); 15 var_dump(fflush($h)); 16 gzclose($h); 18 $h = gzopen($filename, 'r'); 19 gzpassthru($h); 20 gzclose($h);
|
H A D | gzrewind_variation1.phpt | 8 $h = gzopen($f, 'w'); 9 gzwrite($h, 'The first string.'); 10 var_dump(gzrewind($h)); 11 gzwrite($h, 'The second string.'); 12 gzclose($h); 14 $h = gzopen($f, 'r'); 15 gzpassthru($h); 16 gzclose($h);
|
H A D | gzseek_basic.phpt | 8 $h = gzopen($f, 'r'); 11 var_dump(gzseek( $h, 50 ) ); 12 echo "tell=".gztell($h)."\n"; 14 var_dump(gzread($h, 10)); 17 var_dump(gzseek( $h, 100 ) ); 18 echo "tell=".gztell($h)."\n"; 20 var_dump(gzread($h, 10)); 23 var_dump(gzseek( $h, 20 ) ); 24 echo "tell=".gztell($h)."\n"; 26 var_dump(gzread($h, 10)); [all …]
|
H A D | gzseek_variation2.phpt | 8 $h = gzopen($f, 'r'); 11 var_dump(gzseek( $h, 50, SEEK_SET ) ); 12 echo "tell=".gztell($h)."\n"; 14 var_dump(gzread($h, 10)); 17 var_dump(gzseek( $h, 100, SEEK_SET ) ); 18 echo "tell=".gztell($h)."\n"; 20 var_dump(gzread($h, 10)); 23 var_dump(gzseek( $h, 20, SEEK_SET ) ); 24 echo "tell=".gztell($h)."\n"; 26 var_dump(gzread($h, 10)); [all …]
|
H A D | gzeof_basic.phpt | 13 $h = gzopen($f, 'r'); 14 var_dump(gzeof($h)); 15 gzpassthru($h); 16 var_dump(gzeof($h)); 17 gzclose($h); 20 $h = gzopen($f, 'r'); 22 gzread($h, 50)."\n"; 23 var_dump(gzeof($h)); 26 var_dump(gzeof($h)); 28 gzread($h, 20)."\n"; [all …]
|
H A D | gzseek_variation3.phpt | 8 $h = gzopen($f, 'r'); 11 var_dump(gzseek( $h, 50, SEEK_CUR ) ); 12 echo "tell=".gztell($h)."\n"; 14 var_dump(gzread($h, 10)); 17 var_dump(gzseek( $h, 34, SEEK_CUR ) ); 18 echo "tell=".gztell($h)."\n"; 20 var_dump(gzread($h, 10)); 23 var_dump(gzseek( $h, -27, SEEK_CUR ) ); 24 echo "tell=".gztell($h)."\n"; 26 var_dump(gzread($h, 10)); [all …]
|
H A D | gzrewind_basic2.phpt | 8 $h = gzopen($f, 'r'); 12 gzread($h, 10000); 13 var_dump(gzeof($h)); 14 var_dump(gztell($h)); 15 gzrewind($h); 16 var_dump(gzeof($h)); 17 var_dump(gztell($h)); 18 echo "first 20 characters=".gzread($h,20)."\n"; 20 gzclose($h);
|
H A D | gzseek_variation7.phpt | 8 $h = gzopen($f, 'w'); 11 gzwrite($h, $str1); 13 var_dump(gztell($h)); 17 var_dump(gzseek($h, 0, SEEK_END)); 19 var_dump(gztell($h)); 20 gzwrite($h, $str2); 22 var_dump(gztell($h)); 23 gzclose($h); 25 $h = gzopen($f, 'r'); 26 gzpassthru($h); [all …]
|
H A D | gzwrite_error2.phpt | 9 $h = gzopen($filename, 'w'); 11 var_dump(gzwrite( $h, $str, 0 ) ); 12 var_dump(gzwrite( $h, $str, -1 ) ); 13 gzclose($h); 15 $h = gzopen($filename, 'r'); 16 gzpassthru($h); 17 gzclose($h);
|
H A D | gzseek_variation6.phpt | 8 $h = gzopen($f, 'r'); 11 gzread($h, 40); 13 var_dump(gztell($h)); 15 var_dump(gzseek( $h, 0, SEEK_END ) ); 17 var_dump(gztell($h)); 19 var_dump(gzeof($h)); 21 var_dump(gzread($h, 10)); 22 gzclose($h);
|
H A D | gzeof_variation1.phpt | 9 $h = gzopen($filename, 'w'); 12 gzwrite( $h, $str ); 13 var_dump(gzeof($h)); 14 gzwrite( $h, $str, $length); 15 var_dump(gzeof($h)); 16 gzclose($h); 18 var_dump(gzeof($h));
|
H A D | gzputs_basic.phpt | 9 $h = gzopen($filename, 'w'); 12 var_dump(gzputs( $h, $str ) ); 13 var_dump(gzputs( $h, $str, $length ) ); 14 gzclose($h); 16 $h = gzopen($filename, 'r'); 17 gzpassthru($h); 18 gzclose($h);
|
H A D | gzwrite_basic.phpt | 9 $h = gzopen($filename, 'w'); 12 var_dump(gzwrite( $h, $str ) ); 13 var_dump(gzwrite( $h, $str, $length ) ); 14 gzclose($h); 16 $h = gzopen($filename, 'r'); 17 gzpassthru($h); 18 gzclose($h);
|
/php-src/ext/hash/ |
H A D | config.m4 | 66 php_hash_crc32.h 67 php_hash_fnv.h 68 php_hash_gost.h 69 php_hash_haval.h 70 php_hash_joaat.h 71 php_hash_md.h 74 php_hash_sha.h 75 php_hash_sha3.h 77 php_hash_tiger.h 80 php_hash.h [all …]
|
/php-src/ext/standard/tests/file/ |
H A D | fseek_variation3.phpt | 11 $h = fopen($outputfile, "wb+"); 13 fwrite($h, chr(0x30 + $i)); 17 var_dump(fseek($h, -4, SEEK_SET)); 18 echo "after -4 seek: ".bin2hex(fread($h,1))."\n"; 19 var_dump(fseek($h, -1, SEEK_CUR)); 21 var_dump(fseek($h, -20, SEEK_CUR)); 25 var_dump(fseek($h, 16, SEEK_SET)); 26 fwrite($h, "end"); 27 fseek($h ,0, SEEK_SET); 28 $data = fread($h, 4096); [all …]
|
H A D | feof_basic.phpt | 14 fclose($h); 23 while (!feof($h)) { 29 fclose($h); 37 var_dump(feof($h)); 42 fread($h, 100); 43 var_dump(feof($h)); 49 var_dump(feof($h)); 53 var_dump(feof($h)); 57 var_dump(feof($h)); 60 fclose($h); [all …]
|
H A D | fopen_variation12.phpt | 13 $h = fopen($tmpfile, "w", true); 14 fwrite($h, "This is the test file"); 15 fclose($h); 18 $h = @fopen($tmpfile, "r"); 19 if ($h === false) { 24 fclose($h); 30 $h = @fopen($scriptDirFile, "r"); 31 if ($h === false) { 36 fclose($h);
|
/php-src/ext/mbstring/ |
H A D | config.w32 | 8 …if (CHECK_HEADER_ADD_INCLUDE("mbstring.h", "CFLAGS_MBSTRING", PHP_MBSTRING + ";" + PHP_PHP_BUILD +… 19 FSO.CopyFile("ext\\mbstring\\libmbfl\\config.h.w32", 20 "ext\\mbstring\\libmbfl\\config.h", true); 40 …h libmbfl/config.h libmbfl/mbfl/eaw_table.h libmbfl/mbfl/mbfilter.h libmbfl/mbfl/mbfilter_8bit.h l… 45 if (CHECK_HEADER_ADD_INCLUDE("oniguruma.h", "CFLAGS_MBSTRING", PHP_MBREGEX) && 53 PHP_INSTALL_HEADERS("ext/mbstring", "php_mbregex.h php_onig_compat.h");
|
/php-src/Zend/asm/ |
H A D | make_i386_ms_pe_masm.asm | 10 ; | 0h | 04h | 08h | 0ch | 010h | 014h | 018h | 01ch | 17 ; | 020h | 024h | 028h | 02ch | 030h | 034h | 038h | 03ch | 31 mov eax, [esp+04h] 35 lea eax, [eax-08h] 43 lea eax, [eax-040h] 48 fnstcw [eax+04h] 51 mov ecx, [esp+04h] 53 mov [eax+014h], ecx 55 mov edx, [esp+08h] 66 mov [eax+08h], ecx [all …]
|
/php-src/ext/fileinfo/libmagic/ |
H A D | cdf.c | 200 h->h_magic = CDF_TOLE8(h->h_magic); in cdf_swap_header() 201 h->h_uuid[0] = CDF_TOLE8(h->h_uuid[0]); in cdf_swap_header() 202 h->h_uuid[1] = CDF_TOLE8(h->h_uuid[1]); in cdf_swap_header() 203 h->h_revision = CDF_TOLE2(h->h_revision); in cdf_swap_header() 204 h->h_version = CDF_TOLE2(h->h_version); in cdf_swap_header() 205 h->h_byte_order = CDF_TOLE2(h->h_byte_order); in cdf_swap_header() 206 h->h_sec_size_p2 = CDF_TOLE2(h->h_sec_size_p2); in cdf_swap_header() 207 h->h_short_sec_size_p2 = CDF_TOLE2(h->h_short_sec_size_p2); in cdf_swap_header() 314 CDF_SHORT_SEC_SIZE(h) : CDF_SEC_SIZE(h); in cdf_check_stream() 1326 h->h_ ## b, 1 << h->h_ ## b) in cdf_dump_header() [all …]
|
/php-src/ext/date/ |
H A D | config0.m4 | 2 AC_CHECK_HEADERS([io.h]) 24 PHP_INSTALL_HEADERS([ext/date], [php_date.h lib/timelib.h lib/timelib_config.h]) 26 [Define to 1 if you have the <timelib_config.h> header file.]) 28 cat > $ext_builddir/lib/timelib_config.h <<EOF 30 # include "config.w32.h" 32 # include <php_config.h> 34 #include <inttypes.h> 35 #include <stdint.h> 37 #include "zend.h"
|
/php-src/ext/hash/tests/ |
H A D | murmurhash3.phpt | 6 $h = hash("murmur3a", "foo"); 7 echo $h, "\n"; 9 $h = hash("murmur3c", "Two hashes meet in a bar", false); 10 echo $h, "\n"; 11 $h = hash("murmur3c", "hash me!"); 12 echo $h, "\n"; 14 $h = hash("murmur3f", "Two hashes meet in a bar", false); 15 echo $h, "\n"; 16 $h = hash("murmur3f", "hash me!"); 17 echo $h, "\n";
|
/php-src/ext/spl/tests/ |
H A D | heap_008.phpt | 5 $h = new SplMaxHeap(); 7 $h->insert(1); 8 $h->insert(5); 9 $h->insert(0); 10 $h->insert(4); 12 var_dump($h);
|
/php-src/ext/opcache/tests/ |
H A D | compact_literals.phpt | 121 $h = new CH; 124 $h->H(); 128 $h->H(); 133 $h = new CI; 134 $h->H(); 137 $h->H(); 142 change($h); 144 $h->H(); 148 $h->H(); 154 $h->H(); [all …]
|