004.phpt

来自「PHP v6.0 For Linux 运行环境:Win9X/ WinME/ Wi」· PHPT 代码 · 共 88 行

PHPT
88
字号
--TEST--gzfile() with various invalid params--SKIPIF--<?php if (!extension_loaded("zlib")) print "skip"; ?>--FILE--<?phpvar_dump(gzfile());var_dump(gzfile("nonexistent_file_gzfile",1));var_dump(gzfile(1,1,1));var_dump(gzfile(dirname(__FILE__)."/004.txt.gz"));var_dump(gzfile(dirname(__FILE__)."/004.txt.gz", 1));var_dump(gzfile(dirname(__FILE__)."/004.txt.gz", -1));echo "Done\n";?>--EXPECTF--	Warning: gzfile() expects at least 1 parameter, 0 given in %s on line %dNULLWarning: gzfile(nonexistent_file_gzfile): failed to open stream: No such file or directory in %s on line %dbool(false)Warning: gzfile() expects at most 2 parameters, 3 given in %s on line %dNULLarray(6) {  [0]=>  string(36) "When you're taught through feelings"  [1]=>  string(26) "Destiny flying high above"  [2]=>  string(38) "all I know is that you can realize it"  [3]=>  string(18) "Destiny who cares"  [4]=>  string(19) "as it turns around"  [5]=>  string(39) "and I know that it descends down on me"}array(6) {  [0]=>  string(36) "When you're taught through feelings"  [1]=>  string(26) "Destiny flying high above"  [2]=>  string(38) "all I know is that you can realize it"  [3]=>  string(18) "Destiny who cares"  [4]=>  string(19) "as it turns around"  [5]=>  string(39) "and I know that it descends down on me"}array(6) {  [0]=>  string(36) "When you're taught through feelings"  [1]=>  string(26) "Destiny flying high above"  [2]=>  string(38) "all I know is that you can realize it"  [3]=>  string(18) "Destiny who cares"  [4]=>  string(19) "as it turns around"  [5]=>  string(39) "and I know that it descends down on me"}Done

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?