summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-15176-199/+2
| | | | | | | | | | | | | | | | | | | | | | | 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
* Trim trailing whitespace in *.phptPeter Kokot2018-10-14387-926/+926
|
* Sync leading and final newlines in source code filesPeter Kokot2018-10-144-4/+0
| | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. 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
* Fix failing tests/lang due to whitespacePeter Kokot2018-10-132-69/+69
|
* Trim trailing whitespace in source code filesPeter Kokot2018-10-138-28/+28
|
* Convert CRLF line endings to LFPeter Kokot2018-10-1375-6553/+6553
| | | | | | | | | | | | | | | | | | | | | | | | This patch simplifies line endings tracked in the Git repository and syncs them to all include the LF style instead of the CRLF files. Newline characters: - LF (\n) (*nix and Mac) - CRLF (\r\n) (Windows) - CR (\r) (old Mac, obsolete) To see which line endings are in the index and in the working copy the following command can be used: `git ls-files --eol` Git additionally provides `.gitattributes` file to specify if some files need to have specific line endings on all platforms (either CRLF or LF). Changed files shouldn't cause issues on modern Windows platforms because also Git can do output conversion is core.autocrlf=true is set on Windows and use CRLF newlines in all files in the working tree. Unless CRLF files are tracked specifically, Git by default tracks all files in the index using LF newlines.
* Merge branch 'PHP-7.0' into PHP-7.1Andrea Faulds2017-09-211-0/+18
|\
| * Fix bug #75236Andrea Faulds2017-09-211-0/+18
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-08-193-0/+40
|\ \ | |/ | | | | | | * PHP-7.0: Fix issues with phpt and EXTENSION on windows (BUG 75042)
| * Fix issues with phpt and EXTENSION on windows (BUG 75042)John Boehr2017-08-193-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Commands are not properly escaped for windows * Specifying "-n" to check loaded modules causes "Module already loaded" warning * Extensions to be loaded need the "php_" prefix on Windows Bug: https://bugs.php.net/bug.php?id=75042 Add back -n flag to fetch loaded extensions in run-tests.php Add test for phpt EXTENSIONS directive Add a second test for bug 75042 Add test to test loading of nonexistent shared module with the EXTENSIONS phpt block Pass ini settings when checking loaded extensions Fix skipifs
* | Merge branch 'PHP-7.0' into PHP-7.1Andrea Faulds2017-08-121-0/+16
|\ \ | |/
| * Fix bug #74725 (html_errors=1 breaks unhandled exceptions)Andrea Faulds2017-08-121-0/+16
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Sara Golemon2017-07-221-0/+29
|\ \ | |/ | | | | | | * PHP-7.0: Fix compile-time optimization of NAN comparisons
| * Fix compile-time optimization of NAN comparisonsSara Golemon2017-07-221-0/+29
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-02-031-1/+1
|\ \ | |/ | | | | | | * PHP-7.0: increase wait time in timeout_variation_9.phpt by 1 second
| * increase wait time in timeout_variation_9.phpt by 1 secondRodrigo Prado2017-02-031-1/+1
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-02-031-1/+1
|\ \ | |/ | | | | | | * PHP-7.0: increase wait time in timeout_variation_10.phpt by 1 second
| * increase wait time in timeout_variation_10.phpt by 1 secondRodrigo Prado2017-02-031-1/+1
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-01-222-0/+32
|\ \ | |/ | | | | | | * PHP-7.0: Fixed #73969 - Fixed segmentation fault when debug_print_backtrace called
| * Fixed #73969 - Fixed segmentation fault when debug_print_backtrace calledandrewnester2017-01-222-0/+32
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-01-041-0/+23
|\ \ | |/ | | | | | | | | * PHP-7.0: get_defined_functions additional parameter to exclude disabled functions news entry for PR #1312
| * Merge branch 'pull-request/1312' into PHP-7.0Joe Watkins2017-01-041-0/+23
| |\ | | | | | | | | | | | | | | | * pull-request/1312: get_defined_functions extra parameter to exclude disabled functions news entry for PR #1312
| | * Added "exclude_disabled" argument to "get_defined_functions".Willian Gustavo Veiga2015-06-021-1/+12
| | |
| | * Fix bug #31875 - get_defined_functions() should not list disabled functions.Willian Gustavo Veiga2015-05-301-0/+12
| | |
* | | Merge branch 'PHP-7.0' into PHP-7.1Christoph M. Becker2016-12-071-1/+1
|\ \ \ | |/ /
| * | Fixed typo in skipif error messageMarkus Staab2016-12-071-1/+1
| | |
* | | Merge branch 'PHP-7.0' into PHP-7.1Dmitry Stogov2016-11-221-0/+20
|\ \ \ | |/ / | | | | | | | | | * PHP-7.0: Fixed memory leak (Bob)
| * | Fixed memory leak (Bob)Dmitry Stogov2016-11-221-0/+20
| | |
* | | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2016-10-181-0/+18
|\ \ \ | |/ / | | | | | | | | | * PHP-7.0: Fixed bug #73329 (Float)"Nano" == NAN
| * | Fixed bug #73329 (Float)"Nano" == NANAnatol Belski2016-10-181-0/+18
| | | | | | | | | | | | | | | | | | | | | The special cases (float)"inf", etc. were never intended and are caused by the updated strtod lib. While it might be nice as an easy way to produce Inf and NaN special values, it was never documented and cause BC breaches.
* | | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2016-09-262-0/+20
|\ \ \ | |/ / | | | | | | | | | * PHP-7.0: Fixed bug #73172 parse error: Invalid numeric literal
| * | Fixed bug #73172 parse error: Invalid numeric literalAnatol Belski2016-09-262-0/+20
| | |
* | | Implement \ArgumentCountError exceptionDavey Shafik2016-08-301-1/+1
| | |
* | | Fixed testsXinchen Hui2016-08-232-4/+0
| | |
* | | Decouple DEBUG_FILE_UPLOAD from ZEND_DEBUGNikita Popov2016-08-1916-134/+1
| | | | | | | | | | | | | | | Enabling ZEND_DEBUG should not result in intrusive program behavior changes.
* | | Show "or null" in TypeErrors for nullable arg_infosAndrea Faulds2016-08-111-3/+3
| | |
* | | Merge branch 'PHP-7.0'Nikita Popov2016-07-141-4/+2
|\ \ \ | |/ /
| * | Fix test outputNikita Popov2016-07-141-4/+2
| | | | | | | | | | | | | | | The error is now detected earlier, so the message ends up being different.
* | | Add decimal point in double serializationJakub Zelenka2016-06-261-1/+1
| | |
* | | Add better value to testYasuo Ohgaki2016-06-261-15/+22
| | |
* | | Remove unneeded output from testYasuo Ohgaki2016-06-261-14/+0
| | |
* | | Fix mode when precision=0. Add testYasuo Ohgaki2016-06-261-0/+171
| | |
* | | Implemented RFC: Replace "Missing argument" warning with "Too few arguments" ↵Dmitry Stogov2016-06-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | exception Squashed commit of the following: commit 8b45fa2acb8cd92542a39e1e4720fe1f4fabc26c Author: Dmitry Stogov <dmitry@zend.com> Date: Thu Jun 16 01:52:50 2016 +0300 Separate slow path of ZEND_RECV into a cold function. commit 9e18895ee59c64c93a96b1ba3061355c4663e962 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Jun 15 23:26:28 2016 +0300 Required argument can't be IS_UNDEF anymore. commit 662db66e3943d4455c65e4f987bb54abf724ecb2 Author: Dmitry Stogov <dmitry@zend.com> Date: Tue May 31 17:14:50 2016 +0300 Replace "Missing argument" warning by "Too few arguments" exception.
* | | Implemented RFC: Fix inconsistent behavior of $this variableDmitry Stogov2016-06-162-13/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit bdd3b6895c3ce3eacfcf7d4bf4feb8dfa61801fd Author: Dmitry Stogov <dmitry@zend.com> Date: Thu Jun 16 00:19:42 2016 +0300 Fixed GOTO VM commit 2f1d7c8b89ce821086d357cf65f629f040a85c03 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Jun 15 21:01:57 2016 +0300 Removed unused variable commit cf749c42b0b1919f70b1e7d6dcbfff76899506af Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Jun 15 19:06:16 2016 +0300 Protection from $this reassign through mb_parse_str() commit 59a9a6c83c66b666971e57f1173b33a422166efd Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Jun 15 18:14:50 2016 +0300 Added type inference rule for FETCH_THIS opcode commit 73f8d14a856f14a461430b3c7534ab2ce870cbf6 Author: Dmitry Stogov <dmitry@zend.com> Date: Wed Jun 15 18:11:18 2016 +0300 Restored PHP-7 behavior of isset($this->foo). It throws exception if not in object context. Removed useless opcode handlers. commit fa0881381e8ae97e022ae5d1ec0851c952f33c82 Author: Dmitry Stogov <dmitry@zend.com> Date: Tue May 31 12:25:47 2016 +0300 Changed "Notice: Undefined variable: this" into "Exception: Using $this when not in object context". commit e32cc528c0f2c97963d8ec83eff0269f1f45af18 Author: Dmitry Stogov <dmitry@zend.com> Date: Tue May 24 02:02:43 2016 +0300 Throw exception on attempt to re-assign $this through extract() and parse_str(). commit 41f1531b52113ec8a4c208aa6b9ef50f1386bb3f Author: Dmitry Stogov <dmitry@zend.com> Date: Mon May 23 22:18:36 2016 +0300 Fixed inconsistent $this behavior
* | | Switch zend_print_zval_r to use smart_strNikita Popov2016-06-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of directly writing to stdout. This allows doing a print_r into a string, without using output buffering. The motivation for this is bug #67467: print_r() in return mode will still dump the string to stdout (causing a potential information leak) if a fatal error occurs.
* | | Fix bug #71897Andrea Faulds2016-05-041-0/+16
| | |
* | | Skip test on ZTS buildDmitry Stogov2016-04-251-0/+1
| | |
* | | Fixed race conditions in testDmitry Stogov2016-04-251-0/+2
| | |
* | | Merge branch 'PHP-7.0'Bob Weinand2016-04-161-1/+2
|\ \ \ | |/ /
| * | Fix non-/Zend tests tooBob Weinand2016-04-161-1/+2
| | |