/PHP-7.4/ext/zlib/tests/ |
H A D | gzseek_basic.phpt | 12 $h = gzopen($f, 'r'); 15 var_dump(gzseek( $h, 50 ) ); 16 echo "tell=".gztell($h)."\n"; 18 var_dump(gzread($h, 10)); 21 var_dump(gzseek( $h, 100 ) ); 22 echo "tell=".gztell($h)."\n"; 24 var_dump(gzread($h, 10)); 27 var_dump(gzseek( $h, 20 ) ); 28 echo "tell=".gztell($h)."\n"; 30 var_dump(gzread($h, 10)); [all …]
|
H A D | gzseek_variation2.phpt | 12 $h = gzopen($f, 'r'); 15 var_dump(gzseek( $h, 50, SEEK_SET ) ); 16 echo "tell=".gztell($h)."\n"; 18 var_dump(gzread($h, 10)); 21 var_dump(gzseek( $h, 100, SEEK_SET ) ); 22 echo "tell=".gztell($h)."\n"; 24 var_dump(gzread($h, 10)); 27 var_dump(gzseek( $h, 20, SEEK_SET ) ); 28 echo "tell=".gztell($h)."\n"; 30 var_dump(gzread($h, 10)); [all …]
|
H A D | gzseek_variation3.phpt | 12 $h = gzopen($f, 'r'); 15 var_dump(gzseek( $h, 50, SEEK_CUR ) ); 16 echo "tell=".gztell($h)."\n"; 18 var_dump(gzread($h, 10)); 21 var_dump(gzseek( $h, 34, SEEK_CUR ) ); 22 echo "tell=".gztell($h)."\n"; 24 var_dump(gzread($h, 10)); 27 var_dump(gzseek( $h, -27, SEEK_CUR ) ); 28 echo "tell=".gztell($h)."\n"; 30 var_dump(gzread($h, 10)); [all …]
|
H A D | gzrewind_basic2.phpt | 12 $h = gzopen($f, 'r'); 16 gzread($h, 10000); 17 var_dump(gzeof($h)); 18 var_dump(gztell($h)); 19 gzrewind($h); 20 var_dump(gzeof($h)); 21 var_dump(gztell($h)); 22 echo "first 20 characters=".gzread($h,20)."\n"; 24 gzclose($h);
|
H A D | gzeof_basic.phpt | 17 $h = gzopen($f, 'r'); 18 var_dump(gzeof($h)); 19 gzpassthru($h); 20 var_dump(gzeof($h)); 21 gzclose($h); 24 $h = gzopen($f, 'r'); 26 gzread($h, 50)."\n"; 27 var_dump(gzeof($h)); 30 var_dump(gzeof($h)); 32 gzread($h, 20)."\n"; [all …]
|
H A D | gzseek_variation7.phpt | 12 $h = gzopen($f, 'w'); 15 gzwrite($h, $str1); 17 var_dump(gztell($h)); 21 var_dump(gzseek($h, 0, SEEK_END)); 23 var_dump(gztell($h)); 24 gzwrite($h, $str2); 26 var_dump(gztell($h)); 27 gzclose($h); 29 $h = gzopen($f, 'r'); 30 gzpassthru($h); [all …]
|
H A D | gzwrite_error2.phpt | 13 $h = gzopen($filename, 'w'); 15 var_dump(gzwrite( $h, $str, 0 ) ); 16 var_dump(gzwrite( $h, $str, -1 ) ); 17 gzclose($h); 19 $h = gzopen($filename, 'r'); 20 gzpassthru($h); 21 gzclose($h);
|
H A D | gzwrite_basic.phpt | 13 $h = gzopen($filename, 'w'); 16 var_dump(gzwrite( $h, $str ) ); 17 var_dump(gzwrite( $h, $str, $length ) ); 18 gzclose($h); 20 $h = gzopen($filename, 'r'); 21 gzpassthru($h); 22 gzclose($h);
|
H A D | gzeof_variation1.phpt | 13 $h = gzopen($filename, 'w'); 16 gzwrite( $h, $str ); 17 var_dump(gzeof($h)); 18 gzwrite( $h, $str, $length); 19 var_dump(gzeof($h)); 20 gzclose($h); 21 var_dump(gzeof($h));
|
H A D | gzputs_basic.phpt | 13 $h = gzopen($filename, 'w'); 16 var_dump(gzputs( $h, $str ) ); 17 var_dump(gzputs( $h, $str, $length ) ); 18 gzclose($h); 20 $h = gzopen($filename, 'r'); 21 gzpassthru($h); 22 gzclose($h);
|
H A D | gzclose_basic.phpt | 15 $h = gzopen($f, 'r'); 16 gzread($h, 20); 17 var_dump(gzclose($h)); 20 gzread($h, 20); 22 $h = gzopen($f, 'r'); 23 gzread($h, 20); 24 var_dump(fclose($h)); 27 gzread($h, 20);
|
H A D | gzseek_variation6.phpt | 12 $h = gzopen($f, 'r'); 15 gzread($h, 40); 17 var_dump(gztell($h)); 19 var_dump(gzseek( $h, 0, SEEK_END ) ); 21 var_dump(gztell($h)); 23 var_dump(gzeof($h)); 25 var_dump(gzread($h, 10)); 26 gzclose($h);
|
H A D | gzread_error2.phpt | 12 $h = gzopen($f, 'r'); 13 var_dump(gzread($h, 10)); 14 var_dump(gzread($h, 0)); 15 var_dump(gzread($h, 5)); 16 var_dump(gzread($h, -1)); 17 var_dump(gzread($h, 8)); 18 gzclose($h);
|
H A D | gzopen_variation4.phpt | 46 gzclose($h); 51 gzpassthru($h); 52 gzclose($h); 58 gzclose($h); 62 gzpassthru($h); 63 gzclose($h); 69 gzclose($h); 74 gzclose($h); 83 gzclose($h); 89 gzclose($h); [all …]
|
/PHP-7.4/ext/standard/tests/file/ |
H A D | feof_basic.phpt | 20 fclose($h); 29 while (!feof($h)) { 35 fclose($h); 43 var_dump(feof($h)); 48 fread($h, 100); 49 var_dump(feof($h)); 55 var_dump(feof($h)); 59 var_dump(feof($h)); 63 var_dump(feof($h)); 66 fclose($h); [all …]
|
H A D | fopen_variation12.phpt | 19 $h = fopen($tmpfile, "w", true); 20 fwrite($h, "This is the test file"); 21 fclose($h); 24 $h = @fopen($tmpfile, "r"); 25 if ($h === false) { 30 fclose($h); 36 $h = @fopen($scriptDirFile, "r"); 37 if ($h === false) { 42 fclose($h);
|
H A D | fopen_variation19.phpt | 30 fwrite($h, "Hello World"); 31 fclose($h); 71 $h = fopen($file, 'r'); 72 fpassthru($h); 73 fclose($h); 79 fwrite($h, ' again!'); 80 fseek($h, 0); 81 fpassthru($h); 82 fclose($h); 87 $h = fopen($file, 'w'); [all …]
|
/PHP-7.4/ext/date/ |
H A D | config0.m4 | 2 AC_CHECK_HEADERS([io.h]) 17 PHP_INSTALL_HEADERS([ext/date], [php_date.h lib/timelib.h lib/timelib_config.h]) 18 AC_DEFINE([HAVE_TIMELIB_CONFIG_H], [1], [Have timelib_config.h]) 20 cat > $ext_builddir/lib/timelib_config.h <<EOF 22 # include "config.w32.h" 24 # include <php_config.h> 26 #include <php_stdint.h> 28 #include "zend.h"
|
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\""); 20 PHP_INSTALL_HEADERS("ext/date/", "php_date.h lib/timelib.h lib/timelib_config.h"); 21 AC_DEFINE('HAVE_TIMELIB_CONFIG_H', 1, 'Have timelib_config.h')
|
/PHP-7.4/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);
|
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());
|
/PHP-7.4/ext/mbstring/ |
H A D | config.w32 | 8 …if (CHECK_HEADER_ADD_INCLUDE("mbstring.h", "CFLAGS_MBSTRING", PHP_MBSTRING + ";" + PHP_PHP_BUILD +… 17 FSO.CopyFile("ext\\mbstring\\libmbfl\\config.h.w32", 18 "ext\\mbstring\\libmbfl\\config.h", true); 51 …h libmbfl/config.h libmbfl/mbfl/eaw_table.h libmbfl/mbfl/mbfilter.h libmbfl/mbfl/mbfilter_8bit.h l… 56 if (CHECK_HEADER_ADD_INCLUDE("oniguruma.h", "CFLAGS_MBSTRING", PHP_MBREGEX) && 64 PHP_INSTALL_HEADERS("ext/mbstring", "php_mbregex.h php_onig_compat.h");
|
/PHP-7.4/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 …]
|
/PHP-7.4/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());
|