summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/is_dir_variation4.phpt
Commit message (Collapse)AuthorAgeFilesLines
* Make is_file() and friends return false when path contains 0-byteChristian Schneider2020-12-031-2/+2
| | | | | | | | | | | | | | | These functions now return false silently: is_writable, is_readable, is_executable, is_file, is_dir, is_link, file_exists These functions now throw a warning an return false (rather than throwing a ValueError): fileperms, fileinode, filesize, fileowner, filegroup, filetype, fileatime, filemtime, filectime, lstat, stat See also https://externals.io/message/112333. Closes GH-6478.
* Make null byte error a ValueErrorNikita Popov2020-09-081-3/+3
| | | | | | | | | | | | | Currently we treat paths with null bytes as a TypeError, which is incorrect, and rather inconsistent, as we treat empty paths as ValueError. We do this because the error is generated by zpp and it's easier to always throw TypeError there. This changes the zpp implementation to throw a TypeError only if the type is actually wrong and throw ValueError for null bytes. The error message is also split accordingly, to be more precise. Closes GH-6094.
* Remove unnecessary PHPDoc-alike blocks from testsMáté Kocsis2020-06-241-5/+0
| | | | Closes GH-5759
* Change argument error message formatMáté Kocsis2020-02-261-2/+2
| | | | Closes GH-5211
* Make type error messages more consistentMáté Kocsis2020-02-171-3/+3
| | | | Closes GH-5092
* Merge branch 'PHP-7.4'Peter Kokot2019-03-151-2/+2
|\ | | | | | | | | * PHP-7.4: Replace dirname(__FILE__) by __DIR__ in tests
| * Replace dirname(__FILE__) by __DIR__ in testsFabien Villepinte2019-03-151-2/+2
| |
* | Adjust tests for zpp TypeError changeNikita Popov2019-03-111-7/+7
|/
* s/valid path/a valid path/Felipe Pena2011-06-081-2/+2
|
* - Test fixesFelipe Pena2011-06-071-2/+6
|
* New testcases for is_dir() functionRaghubansh Kumar2007-07-211-0/+85