summaryrefslogtreecommitdiff
path: root/ext/spl/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Merge branch 'PHP-7.3' into PHP-7.4Stanislav Malyshev2019-12-162-1/+32
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | * PHP-7.3: Fixed bug #78910 Fix #78878: Buffer underflow in bc_shift_addsub Fix test Fix #78862: link() silently truncates after a null byte on Windows Fix #78863: DirectoryIterator class silently truncates after a null byte Fix #78943: mail() may release string with refcount==1 twice
| | * Merge branch 'PHP-7.2' into PHP-7.3Stanislav Malyshev2019-12-162-1/+32
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-7.2: Fixed bug #78910 Fix #78878: Buffer underflow in bc_shift_addsub Fix test Fix #78862: link() silently truncates after a null byte on Windows Fix #78863: DirectoryIterator class silently truncates after a null byte
| | | * Fix testStanislav Malyshev2019-12-161-1/+1
| | | |
| | | * Fix #78863: DirectoryIterator class silently truncates after a null byteChristoph M. Becker2019-12-161-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | Since the constructor of DirectoryIterator and friends is supposed to accepts paths (i.e. strings without NUL bytes), we must not accept arbitrary strings.
* | | | Remove support for mixing parameter order in implode()Máté Kocsis2019-12-121-1/+1
| | | |
* | | | Convert warnings to TypeError in php_spl.cGeorge Peter Banyard2019-12-112-90/+54
| | | | | | | | | | | | | | | | Closes GH-4991
* | | | Clean DONE tags from testsFabien Villepinte2019-11-07222-556/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
* | | | Fix consistency issues with array accesses warnings/exceptionsMáté Kocsis2019-11-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Change a number of "resource used as offset" notices to warnings, which were previously missed. * Throw the "resource used as offset" warning for isset() as well. * Make array_key_exists() behavior with regard to different key types consistent with isset() and normal array accesses. All key types now use the usual coercions and array/object keys throw TypeError. Closes GH-4887.
* | | | Remove support for array_key_exists() with objectsNikita Popov2019-11-041-4/+0
| | | |
* | | | Convert some notices to warningsNikita Popov2019-10-0213-26/+46
| | | | | | | | | | | | | | | | Part of https://wiki.php.net/rfc/engine_warnings.
* | | | Convert "Illegal offset type" warnings to exceptionsNikita Popov2019-09-271-15/+7
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-09-121-1/+12
|\ \ \ \ | |/ / /
| * | | Allow throwing exception while loading parent classNikita Popov2019-09-121-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a fix for symfony/symfony#32995. The behavior is: * Throwing exception when loading parent/interface is allowed (and we will also throw one if the class is simply not found). * If this happens, the bucket key for the class is reset, so it's possibly to try registering the same class again. * However, if the class has already been used due to a variance obligation, the exception is upgraded to a fatal error, as we cannot safely unregister the class stub anymore.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-09-092-1/+11
|\ \ \ \ | |/ / /
| * | | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-09-092-1/+11
| |\ \ \ | | |/ /
| | * | Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-09-092-1/+11
| | |\ \ | | | |/
| | | * Fix bug #72884 isCloneable() on SplFileObject should return falseCHU Zhaowei2019-09-092-1/+11
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-08-261-0/+23
|\ \ \ \ | |/ / /
| * | | Fixed bug #78456Nikita Popov2019-08-261-0/+23
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-08-231-0/+15
|\ \ \ \ | |/ / /
| * | | Support variable element size in spl heap implementationNikita Popov2019-08-231-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows us to drop the intermediate allocation for spl_pqueue_elem. This fixes GC for SplPriorityQueue, because we can now directly return a well-formed GC child buffer.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-08-231-0/+46
|\ \ \ \ | |/ / /
| * | | Fixed bug #78436Nikita Popov2019-08-231-0/+46
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-08-151-0/+26
|\ \ \ \ | |/ / /
| * | | Fixed bug #78409Nikita Popov2019-08-151-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes an incorrect optimization (I think this code used to be necessary to properly handle references in the Serializable based implementation, but now this code just avoids an array duplication in a way that is not sound).
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-08-131-1/+1
|\ \ \ \ | |/ / /
| * | | Adjust GC count in SPL testNikita Popov2019-08-131-1/+1
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-07-222-2/+4
|\ \ \ \ | |/ / /
| * | | Deprecate Reflection export() methodsNikita Popov2019-07-221-1/+1
| | | | | | | | | | | | | | | | And remove the Reflector::export() interface method.
| * | | Deprecate array_key_exists() on objectsNikita Popov2019-07-221-1/+3
| | | |
* | | | Merge branch 'PHP-7.4'Peter Kokot2019-07-131-2/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Remove checks for always enabled spl and pcre
| * | | Remove checks for always enabled spl and pcrePeter Kokot2019-07-131-2/+0
| | | | | | | | | | | | | | | | Closes GH-4397
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-07-122-10/+10
|\ \ \ \ | |/ / /
| * | | Swap implode() argument order in some testsNikita Popov2019-07-122-10/+10
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-07-102-2/+6
|\ \ \ \ | |/ / /
| * | | Throw notice on array access on illegal typeNikita Popov2019-07-102-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No notice is thrown for list() accesses, because we did not come to an agreement regarding patterns like while ([$key, $value] = yield $it->next()) { ... } where silent null access may be desirable. No effort is made to suppress multiple notices in access chains likes $x[0][0][0], because the technical complexity this causes does not seem worthwhile. RFC: https://wiki.php.net/rfc/notice-for-non-valid-array-container
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-06-172-4/+4
|\ \ \ \ | |/ / /
| * | | Fix file conflicts in SplFileObject fputcsv testsNikita Popov2019-06-172-4/+4
| | | |
* | | | Remove bogus quieting in AppendIterator::append()Nikita Popov2019-06-171-1/+1
| | | |
* | | | Don't verify arginfo types for internal functionsNikita Popov2019-06-174-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To avoid duplicate type checks. In debug builds arginfo is still checked and will generate an assertions if the function doesn't subsequently throw an exception. Some test results change due to differences in zpp and arginfo error messages.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-06-111-12/+1
|\ \ \ \ | |/ / /
| * | | Register class before fetching parentNikita Popov2019-06-111-12/+1
| | | | | | | | | | | | | | | | | | | | We want the class declaration to be available while compiling the parent class.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-06-052-4/+9
|\ \ \ \ | |/ / /
| * | | Allow exceptions in __toString()Nikita Popov2019-06-052-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RFC: https://wiki.php.net/rfc/tostring_exceptions And convert some object to string conversion related recoverable fatal errors into Error exceptions. Improve exception safety of internal code performing string conversions.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-06-051-1/+2
|\ \ \ \ | |/ / /
| * | | Avoid concurrent directory writes in FilesystemIterator testNikita Popov2019-06-051-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | The test directory is often used for temporary files, let's use the source directory, which should be more stable. If that doesn't work we need to create a temporary directory.
* | | | Merge branch 'PHP-7.4'Christoph M. Becker2019-05-274-16/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Make more tests run on Windows
| * | | Make more tests run on WindowsGabriel Caruso2019-05-274-16/+0
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-05-221-1/+1
|\ \ \ \ | |/ / /
| * | | Fixed some arg infos to match documentationJaroslav Hanslík2019-05-221-1/+1
| | | |