summaryrefslogtreecommitdiff
path: root/ext/spl
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Add stubs for SplDoublyLinkedListMáté Kocsis2020-03-253-59/+217
| | | | | | | | | | | | Closes GH-5293
* | | Add stubs for SPL iteratorsMáté Kocsis2020-03-243-293/+972
| | | | | | | | | | | | Closes GH-5286
* | | Improve error messages of various extensionsMáté Kocsis2020-03-233-47/+47
| | | | | | | | | | | | Closes GH-5278
* | | Don't use quiet zpp in RecursiveIteratorIterator ctorNikita Popov2020-03-233-34/+33
| | | | | | | | | | | | Don't be a special snowflake, generate a standard TypeError here.
* | | Merge branch 'PHP-7.4'Christoph M. Becker2020-03-232-13/+29
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix #79393: Null coalescing operator failing with SplFixedArray
| * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-03-232-13/+29
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix #79393: Null coalescing operator failing with SplFixedArray
| | * Fix #79393: Null coalescing operator failing with SplFixedArrayChristoph M. Becker2020-03-232-13/+29
| | | | | | | | | | | | | | | | | | | | | We favor the KISS principle over optimization[1] – SPL is already special enough. [1] <https://github.com/php/php-src/pull/2489/commits/352f3d4476a79bb86136b431719df7394e5a8d4e#r112498098>ff
* | | Fix ZPP of SplFileInfo::openFile()Máté Kocsis2020-03-231-14/+15
| | |
* | | Add stubs for SplFileInfo et al.Máté Kocsis2020-03-233-201/+617
| | | | | | | | | | | | Closes GH-5287
* | | Minor cleanup in spl_direcotryNikita Popov2020-03-231-8/+5
| | | | | | | | | | | | | | | | | | * Rename variable for clarity * Reduce section with replaced error handling * Drop comment code line
* | | Fix ZPP of MultipleIterator::detachIterator() and ↵Máté Kocsis2020-03-163-13/+37
| | | | | | | | | | | | MultipleIterator::containsIterator()
* | | Add stubs for SplObjectStorage and MultipleIteratorMáté Kocsis2020-03-163-103/+305
| | | | | | | | | | | | Closes GH-5267
* | | Add stubs for SplHeap and SplPriorityQueueMáté Kocsis2020-03-163-51/+232
| | | | | | | | | | | | Closes GH-5266
* | | Add some stubs for SPLMáté Kocsis2020-03-108-158/+550
| | | | | | | | | | | | Closes GH-5245
* | | Merge branch 'PHP-7.4'Christoph M. Becker2020-03-061-0/+11
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Skip test on Windows if privileges are insufficient
| * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-03-061-0/+11
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Skip test on Windows if privileges are insufficient
| | * Skip test on Windows if privileges are insufficientChristoph M. Becker2020-03-061-0/+11
| | |
* | | Merge branch 'PHP-7.4'Christoph M. Becker2020-03-062-0/+25
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix #75673: SplStack::unserialize() behavior
| * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-03-062-0/+25
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix #75673: SplStack::unserialize() behavior
| | * Fix #75673: SplStack::unserialize() behaviorChristoph M. Becker2020-03-062-0/+25
| | | | | | | | | | | | | | | | | | Even though `SplStack::unserialize()` is not supposed to be called on an already constructed instance, it is probably better if the method clears the stack before actually unserializing.
| * | Apply tidy formattingNikita Popov2020-02-031-1/+1
| | | | | | | | | | | | Mostly reindent PHP scripts to spaces.
* | | Automatically implement Stringable interfaceNikita Popov2020-03-021-1/+3
| | |
* | | Define Stringable with __toString():string methodNicolas Grekas2020-03-023-4/+13
| | |
* | | Change argument error message formatMáté Kocsis2020-02-2624-36/+39
| | | | | | | | | | | | Closes GH-5211
* | | Give arginfo to SplFileInfo::_bad_state_ex()Nikita Popov2020-02-251-1/+1
| | | | | | | | | | | | We should really get rid of this hack though... Wow!
* | | Make SPL doubly linked list smallerNikita Popov2020-02-211-8/+9
| | | | | | | | | | | | Store rc in data u2. This drops element size from 40 to 32 bytes.
* | | Make type error messages more consistentMáté Kocsis2020-02-1724-37/+37
| | | | | | | | | | | | Closes GH-5092
* | | Reindent phpt filesNikita Popov2020-02-03263-3400/+3400
| | |
* | | Initialize SplFixedArray elements to NULL instead of UNDEFNikita Popov2020-01-302-31/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | The SplFixedArray API treats all elements as NULL, even if they have not been explicitly initialized. Rather than initializing to UNDEF an treating that specially in various circumstances, directly initialize elements to NULL. This also fixes an assertion failure in the attached test case.
* | | Merge branch 'PHP-7.4'Nikita Popov2020-01-232-0/+29
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fixed bug #79151
| * | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2020-01-232-0/+29
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fixed bug #79151
| | * Fixed bug #79151Nikita Popov2020-01-232-0/+29
| | | | | | | | | | | | | | | | | | Make sure we also NULL out next/prev of the removed element on pop/shift. This only matter is that element is still being referenced by an iterator.
* | | Eliminate uses of ZVAL_ZVAL and friendsNikita Popov2020-01-202-16/+5
| | | | | | | | | | | | | | | | | | | | | | | | Instead add RETURN_COPY(_VALUE) macros will the expected behavior. RETURN_ZVAL doesn't make any sense since PHP 7, but has stuck around, probably because the alternative was to write directly to the return_value variable.
* | | Make error messages more consistent by fixing capitalizationMáté Kocsis2020-01-173-47/+47
| | | | | | | | | | | | Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
* | | Fix #78880: Final spelling fixesMáté Kocsis2020-01-163-6/+6
| | |
* | | Fix #78880: Another bunch of spelling errorsMáté Kocsis2020-01-167-7/+7
| | |
* | | Use RETURN_THROWS() in various placesMáté Kocsis2020-01-031-2/+2
| | |
* | | Use zend_parse_parameters_none() instead of zend_parse_parameters_none_throw()Máté Kocsis2020-01-033-3/+3
| | |
* | | Use RETURN_THROWS() after zend_throw_exception() in most of the extensionsMáté Kocsis2020-01-027-75/+75
| | |
* | | Use RETURN_THROWS() after zend_type_error()Máté Kocsis2020-01-011-3/+3
| | |
* | | Use RETURN_THROWS() during ZPP in the remaining extensionsMáté Kocsis2019-12-318-262/+262
| | | | | | | | | | | | In reflection, sodium, and SPL
* | | Fix #78880: Spelling error reportChristoph M. Becker2019-12-217-7/+7
| | | | | | | | | | | | | | | | | | | | | We fix the most often occuring typos according to a recent codespell report[1] in tests, code comments and documentation. [1] <https://fossies.org/linux/test/php-src-master-f8f48ce.191129.tar.gz/codespell.html>.
* | | Merge branch 'PHP-7.4'Christoph M. Becker2019-12-172-0/+12
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix #78976: SplFileObject::fputcsv returns -1 on failure
| * | Fix #78976: SplFileObject::fputcsv returns -1 on failureChristoph M. Becker2019-12-172-0/+12
| | | | | | | | | | | | | | | | | | `php_stream_write()` returns `-1` on failure now, which has to be catered to by `SplFileObject::fputcsv()` which still is supposed to return `false` on failure.
* | | Fix testsStanislav Malyshev2019-12-162-2/+2
| | |
* | | Merge branch 'PHP-7.4'Stanislav Malyshev2019-12-163-3/+34
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-7.4: Fix test Fix bug #78793 Fix build - no model field anymore 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.3' into PHP-7.4Stanislav Malyshev2019-12-163-3/+34
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | * 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-163-3/+34
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-162-2/+33
| | | | | | | | | | | | | | | | | | | | | | | | Since the constructor of DirectoryIterator and friends is supposed to accepts paths (i.e. strings without NUL bytes), we must not accept arbitrary strings.