1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 18:53:33 +02:00
Files
archived-php-src/ext/standard/tests/dir/bug80960.phpt
T
Nikita Popov 090627048c Revert "Remove no longer used "log_errors_max_len" ini directive (#6838)"
This reverts commit d2d227e547.

This is an ABI break.
2021-05-08 20:54:53 +02:00

27 lines
814 B
PHP

--TEST--
Fix #80960 (opendir() warning wrong info when failed on Windows)
--SKIPIF--
<?php
if (PHP_OS_FAMILY !== "Windows") die("skip for Windows only");
?>
--INI--
log_errors_max_len=0
--FILE--
<?php
opendir("notexist*");
opendir("notexist?");
opendir(str_pad("longname", PHP_MAXPATHLEN - strlen(getcwd()), "_"));
?>
--EXPECTF--
Warning: opendir(notexist*): %s (code: 123) in %s on line %d
Warning: opendir(notexist*): Failed to open directory: No such file or directory in %s on line %d
Warning: opendir(notexist?): %s (code: 123) in %s on line %d
Warning: opendir(notexist?): Failed to open directory: No such file or directory in %s on line %d
Warning: opendir(longname%r_+%r): %s (code: 111) in %s on line %d
Warning: opendir(longname%r_+%r): Failed to open directory: Filename too long in %s on line %d