summaryrefslogtreecommitdiff
path: root/tests/lang
Commit message (Collapse)AuthorAgeFilesLines
* Make more tests run on 64bit plataformsGabriel Caruso2018-07-303-12/+0
|
* Remove unused Git attributes identPeter Kokot2018-07-251-1/+1
| | | | | | | | | | | | | | | The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
* Improve HashTable iterators handling:Dmitry Stogov2018-03-222-26/+44
| | | | | | - Avoid iterators check/update on each HashTable update opration - Keep position equal (or above) nNumUsed instead of HT_INVALID_IDX - Fixed iterators handling in array_unshift()
* remove support for string|unicode in testsGabriel Caruso2018-02-221-9/+9
|
* Use EXPECT instead of EXPECTF when possibleGabriel Caruso2018-02-2024-24/+24
| | | | EXPECTF logic in run-tests.php is considerable, so let's avoid it.
* Remove trailing whitespace in inc filesGabriel Caruso2018-02-106-89/+89
|
* Use int instead of integer in type errorsGabriel Caruso2018-02-042-2/+2
| | | | | | | PHP requires integer typehints to be written "int" and does not allow "integer" as an alias. This changes type error messages to match the actual type name and avoids confusing messages like "must be of the type integer, integer given".
* Remove some references to E_STRICT in testsNikita Popov2018-02-036-10/+0
| | | | | | | run-tests.php enforces error_reporting=E_ALL (including E_STRICT), setting this explicitly in not necessary. Conversely, after the removal of some E_STRICT errors, explicitly excluding it is no longer necessary in some places.
* Fixed incorrect recursion detectionDmitry Stogov2017-10-061-0/+10
|
* Merge branch 'PHP-7.1' into PHP-7.2Sara Golemon2017-07-221-0/+29
|\ | | | | | | | | * PHP-7.1: Fix compile-time optimization of NAN comparisons
| * 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
| | |
* | | Deprecate each()Nikita Popov2017-02-032-2/+6
| | |
* | | Deprecate assert() with string argumentNikita Popov2017-02-031-1/+2
| | |
* | | Deprecate create_function()Nikita Popov2017-02-033-3/+7
| | |
* | | Remove zend_version() checks from testsNikita Popov2017-01-307-14/+0
| | |
* | | add PHP_OS_FAMILY constant to determine on which os we areStricted2017-01-251-1/+1
| | |
* | | Remove more PHP 6 leftovers from testsNikita Popov2016-11-241-8/+8
| | |
* | | Merge branch 'PHP-7.1'Dmitry Stogov2016-11-221-0/+20
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Fixed memory leak (Bob)
| * | 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
| | |
* | | Fix CRLF line-endings in testsNikita Popov2016-11-2072-6419/+6419
|/ / | | | | | | Also fix a single instance of CRLF in ibase_query.c.
* | 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
| |
* | 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
| |
* | Warn about invalid strings in arithmeticAndrea Faulds2016-03-305-36/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit e05d3b67325d4521418483ed924ac9211a188919 Author: Andrea Faulds <ajf@ajf.me> Date: Wed Mar 30 01:43:35 2016 +0100 UPGRADING and NEWS commit 6caf1d4585207d1b02fb06a216cd7da1a1f5e12d Author: Andrea Faulds <ajf@ajf.me> Date: Sun Mar 20 21:18:33 2016 +0000 Fixes commit 6dadb1b0efe5e2ed071e95a55c806519e61377ac Author: Andrea Faulds <ajf@ajf.me> Date: Sun Feb 14 02:15:01 2016 +0000 Add test for numeric string errors in assignment commit bd5f04e8dd576f92a48d25546f4f9a0f57f374de Author: Andrea Faulds <ajf@ajf.me> Date: Sat Feb 13 23:53:05 2016 +0000 Add test for numeric string errors commit c72e92f16d512bcae30cc9639c89bcb08d971742 Author: Andrea Faulds <ajf@ajf.me> Date: Tue Jan 26 23:28:33 2016 +0000 Add test for scientific notation in integer operations commit d94c08852d405b3a7ef6c84d24bf7915c890ce78 Author: Andrea Faulds <ajf@ajf.me> Date: Sun Feb 14 01:25:57 2016 +0000 Disable optimiser evaluation for numeric string errors commit 30ee954ed13d933e766c68605d683c8ebae3d8ee Author: Andrea Faulds <ajf@ajf.me> Date: Sun Feb 14 01:46:25 2016 +0000 fixup commit a6403b79e054c95e2b7345d787f3092b261eed27 Author: Andrea Faulds <ajf@ajf.me> Date: Sat Feb 13 22:00:27 2016 +0000 Do not convert error-causing numeric strings ahead-of-time commit f9dc35401471ef3035954cb6f171826769297548 Author: Andrea Faulds <ajf@ajf.me> Date: Sat Feb 13 19:15:38 2016 +0000 Disable compile-time evaluation for numeric string errors commit e05b0cc8496ea082c6db27efd8b8277ef1f785b5 Author: Andrea Faulds <ajf@ajf.me> Date: Fri Feb 5 11:42:26 2016 +0000 Make _zval_get_long_func_noisy function for inlining commit 84d66321a57e579759109650c8bb7e3d5002854a Author: Andrea Faulds <ajf@ajf.me> Date: Tue Jan 26 23:10:00 2016 +0000 Update tests commit 5ac4a0cc4bff282e3a15eaa8ab44b67391881a6d Author: Andrea Faulds <ajf@ajf.me> Date: Tue Jan 26 22:08:19 2016 +0000 Use is_numeric_string_ex for zval_get_long etc. commit c21f08848533723331012a62a153de3577731d6a Author: Andrea Faulds <ajf@ajf.me> Date: Thu Jan 7 21:13:04 2016 +0000 Update tests commit 63e214cf8160420bfc51c6a2b4ae32f09ad8e8af Author: Andrea Faulds <ajf@ajf.me> Date: Wed Jan 6 00:28:01 2016 +0000 Warn on non-/bad numeric strings in arithmetic
* | strpos()/stripos(): Add support for negative offsetsFrancois Laupretre2016-03-091-2/+3
|/
* Remove mentions of "type hint" and "typehint"Levi Morrison2015-12-241-2/+2
|
* Fix bug #66179Andrea Faulds2015-12-181-2/+2
| | | | | This also fixes ext/standard/tests/general_functions/var_export-locale.phpt to actually run the floating-point section.
* Fixed test (shift operators throw Error)Dmitry Stogov2015-07-061-1/+1
|
* Catch the specifical exceptionXinchen Hui2015-07-036-9/+9
|
* Introduce ArithmeticErrorBob Weinand2015-07-024-399/+399
|
* Use DivisionByZeroError instead of exception for %/intdiv()Bob Weinand2015-07-022-410/+410
|
* Revert "Fixed last previously broken tests"Dmitry Stogov2015-06-294-1089/+1373
| | | | This reverts commit 79b1832dd5086cd9b4a2e778a62f1743b548726c.
* Fixed last previously broken testsBob Weinand2015-06-294-1373/+1089
|
* Merge branch 'master' into throwable-interfaceAaron Piotrowski2015-06-144-4/+4
|\ | | | | | | | | | | | | # Conflicts: # Zend/zend_language_scanner.c # Zend/zend_language_scanner.l # ext/simplexml/tests/SimpleXMLElement_xpath.phpt
| * Fix typo in Unicode escape testAndrea Faulds2015-06-061-1/+1
| |
| * Show argument causing TypeException in traceNikita Popov2015-05-203-3/+3
| | | | | | | | Not sure why that check was there, did I miss something?
* | Update exception names in tests after formatting changes.Aaron Piotrowski2015-05-178-8/+8
| |
* | Merge branch 'master' into throwable-interfaceAaron Piotrowski2015-05-179-9/+22
|\ \ | |/
| * Display TypeExceptions like normal exceptionsNikita Popov2015-05-173-3/+16
| | | | | | | | | | | | | | We currently don't show the argument at which the error actually occured in the trace - should probably either add it or don't display args on incomplete frames altogether, otherwise this'll probably be confusing.
| * Tweak uncaught exception message displayNikita Popov2015-05-176-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | This implements a reduced variant of #1226 with just the following change: -Fatal error: Uncaught exception 'EngineException' with message 'Call to private method foo::bar() from context ''' in %s:%d +Fatal error: Uncaught EngineException: Call to private method foo::bar() from context '' in %s:%d The '' wrapper around messages is very weird if the exception message itself contains ''. Futhermore having the message wrapped in '' doesn't work for the "and defined" suffix of TypeExceptions.
* | Updated tests to reflect exception class changes.Aaron Piotrowski2015-05-166-6/+6
|/
* Display EngineExceptions like ordinary exceptionsNikita Popov2015-05-155-5/+20
| | | | | | | | | TypeException stays as-is for now because it uses messages that are incompatible with the way exception messages are displayed. closure_038.phpt and a few others now show that we're generating too many exceptions for compound operations on undefined properties -- this needs to be fixed in a followup.