summaryrefslogtreecommitdiff
path: root/ext/phar/tests/fopen_edgecases.phpt
Commit message (Collapse)AuthorAgeFilesLines
* Make error messages more consistent by fixing capitalizationMáté Kocsis2020-01-171-6/+6
| | | | Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
* Clean DONE tags from testsFabien Villepinte2019-11-071-2/+0
| | | | | | | Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
* Replace dirname(__FILE__) by __DIR__ in testsFabien Villepinte2019-03-151-7/+7
|
* Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* increase code coverage of funcinterceptors to 90%+, fix many bugs, fix ↵Greg Beaver2008-05-111-0/+7
| | | | errant wrong test condition in fgc_edgecases
* [DOC]Greg Beaver2008-05-071-17/+0
| | | | | | remove phar.extract_list remove Phar::getExtractList()
* COMPLETELY rework filename extension detection. Now the only requirements are:Greg Beaver2008-04-181-6/+10
| | | | | | | | | | 1 - executable phars must contain '.phar' in the filename 2 - non-executable phars must not contain '.phar' and must have an extension of at least 1 character In addition, phar filenames must exist if opened for read, and the directory containing the phar must exist if opened for creation if opened for creation, the file must not already exist [DOC]
* forgot to commit this yesterday - make error message test PHP-version agnosticGreg Beaver2008-04-151-1/+1
|
* fix testGreg Beaver2008-04-141-1/+1
|
* complete rename code coverage tests, completely re-do errors (why are the ↵Greg Beaver2008-04-141-1/+24
| | | | streams funcs so dang inconsistent in error handling/return values?)
* remove redundant check for file existence, add another unlink edgecase testGreg Beaver2008-04-141-0/+3
|
* disallow unlink() on extracted phars (the idea is that it is a read-only for ↵Greg Beaver2008-04-141-1/+27
| | | | execute thing), add tests for unlink edge cases
* add stat test for root dirGreg Beaver2008-04-141-0/+2
|
* add tests for extract_list and statGreg Beaver2008-04-141-0/+5
|
* nuke potential segfault in phar_open_url, remove mem leaks due to error ↵Greg Beaver2008-04-141-0/+9
| | | | logging in phar_wrapper_stat, add to test case
* add test case for SEEK_CUR fseekGreg Beaver2008-04-141-1/+11
|
* add test case for inability to open extract_list fileGreg Beaver2008-04-141-0/+5
|
* 2 more test coverage edge cases downGreg Beaver2008-04-141-0/+4
|
* minor re-factoring of phar_open_url to remove one nested brackets, put fopen ↵Greg Beaver2008-04-141-0/+43
edge cases in its own test, tweak test phar file names