#
6e87485d |
| 22-Nov-2022 |
George Peter Banyard |
Merge branch 'PHP-8.1' into PHP-8.2 * PHP-8.1: Fix GH-9883 SplFileObject::__toString() reads next line
|
#
6fbf81c6 |
| 09-Nov-2022 |
George Peter Banyard |
Fix GH-9883 SplFileObject::__toString() reads next line We need to overwrite the __toString magic method for SplFileObject, similarly to how DirectoryIterator overwrites it Moreover, th
Fix GH-9883 SplFileObject::__toString() reads next line We need to overwrite the __toString magic method for SplFileObject, similarly to how DirectoryIterator overwrites it Moreover, the custom cast handler is useless as we define __toString methods, so use the standard one instead. Closes GH-9912
show more ...
|
#
b73f139c |
| 02-Aug-2022 |
Máté Kocsis |
Declare ext/spl constants in stubs (#9226) |
#
1bcd8d39 |
| 08-Jun-2022 |
Pierrick Charron |
Update gen_stub to support #if around classes |
#
dbf1cafd |
| 09-Jun-2022 |
George Peter Banyard |
Remove internal usage of SplFileInfo::_bad_state_ex() method (#8318) * Use standard VM handling instead * Deprecate the method as it is now useless |
#
7710f994 |
| 11-Apr-2022 |
George Peter Banyard |
Fix generation of arginfo if type is just null |
#
8dbfb15f |
| 11-Apr-2022 |
George Peter Banyard |
Use more specific return types in SPL |
#
d0a05187 |
| 12-Mar-2022 |
Nikita Popov |
Make DirectoryIterator current() / key() return types tentative Fixes GH-8192. |
#
814a9327 |
| 16-Jul-2021 |
Nikita Popov |
Add ZEND_ACC_NOT_SERIALIZABLE flag This prevents serialization and unserialization of a class and its children in a way that does not depend on the zend_class_serialize_deny and zend
Add ZEND_ACC_NOT_SERIALIZABLE flag This prevents serialization and unserialization of a class and its children in a way that does not depend on the zend_class_serialize_deny and zend_class_unserialize_deny handlers that will be going away in PHP 9 together with the Serializable interface. In stubs, `@not-serializable` can be used to set this flag. This patch only uses the new flag for a handful of Zend classes, converting the remainder is left for later. Closes GH-7249. Fixes bug #81111.
show more ...
|
#
75a678a7 |
| 19-Jul-2021 |
Máté Kocsis |
Declare tentative return types for Zend (#7251) Co-authored-by: Nikita Popov <nikita.ppv@gmail.com> |
#
c6357b80 |
| 13-Jul-2021 |
Máté Kocsis |
Declare tentative return types for ext/spl - part 1 (#7115) |
#
0192fd20 |
| 12-Jul-2021 |
Máté Kocsis |
Merge branch 'PHP-8.0'
|
#
80e5ad5a |
| 04-Jul-2021 |
Máté Kocsis |
Various ext/spl stub fixes Closes GH-7215 |
#
188b1d4c |
| 06-Jul-2021 |
Nikita Popov |
SplFileObject::fgetcsv(): Consistently return false on failure Both the documentation and the stubs state that this method is supposed to return false on failure. However, if the line re
SplFileObject::fgetcsv(): Consistently return false on failure Both the documentation and the stubs state that this method is supposed to return false on failure. However, if the line read (rather than the getcsv operation) fails, it would incorrectly return null instead.
show more ...
|
#
5b29eba7 |
| 29-Mar-2021 |
Cameron Hall |
Fix #42357: fputcsv() has an optional parameter for line endings fputcsv does not terminate lines correctly as per RFC 41801[1]. After adding a new parameter fputcsv may now use a user defin
Fix #42357: fputcsv() has an optional parameter for line endings fputcsv does not terminate lines correctly as per RFC 41801[1]. After adding a new parameter fputcsv may now use a user defined line ending,. In order to maintain backwards compatibility fputcsv() still terminates lines with "\n" by default. Also fixes: #46367[2], #62770[3] Ref: #42357[4] [1] <https://tools.ietf.org/html/rfc4180> [2] <https://bugs.php.net/bug.php?id=46367> [3] <https://bugs.php.net/bug.php?id=62770> [4] <https://bugs.php.net/bug.php?id=42357>
show more ...
|
#
4f4c031f |
| 18-Feb-2021 |
Máté Kocsis |
Generate ext/spl class entries from stubs Closes GH-6709 |
#
f2364f31 |
| 18-Jan-2021 |
Nikita Popov |
SplFileObject::fgets() cannot return false spl_filesystem_file_read() is called with silent=0, so it will throw on failure. |
#
68195bd4 |
| 06-Oct-2020 |
Nikita Popov |
Update ext/spl parameter names Closes GH-6284. |
#
64af12d1 |
| 19-Sep-2020 |
Máté Kocsis |
Add support for `@implementation-alias` in stubs Closes GH-6170 |
#
36fd95b5 |
| 16-Sep-2020 |
Máté Kocsis |
Generate arginfos |
#
c76910cd |
| 16-Sep-2020 |
Máté Kocsis |
Display types in stubs more uniformly In preparation for generating method signatures for the manual. This change gets rid of bogus false|null return types, a few unnecessary traili
Display types in stubs more uniformly In preparation for generating method signatures for the manual. This change gets rid of bogus false|null return types, a few unnecessary trailing backslashes, and settles on using ? when possible for nullable types.
show more ...
|
#
628db3f3 |
| 04-Sep-2020 |
Máté Kocsis |
Fix UNKNOWN default values in various extensions Closes GH-6075 |
#
07539685 |
| 14-Aug-2020 |
Nikita Popov |
Return empty string from SplFileInfo::getPathname() Instead of false. This is consistent with how other methods like SplFileInfo::getPath() behave. It's also a requirement before Spl
Return empty string from SplFileInfo::getPathname() Instead of false. This is consistent with how other methods like SplFileInfo::getPath() behave. It's also a requirement before SplFileInfo::__toString() calls SplFileInfo::getPathname() and needs to return a string.
show more ...
|
#
046cc5e4 |
| 07-Aug-2020 |
Máté Kocsis |
Add another round of missing parameter types to stubs Closes GH-5950 |
#
c9b9f525 |
| 19-Jun-2020 |
Nikita Popov |
Include stub hash in generated arginfo files The hash is used to check whether the arginfo file needs to be regenerated. PHP-Parser will only be downloaded if this is actually necess
Include stub hash in generated arginfo files The hash is used to check whether the arginfo file needs to be regenerated. PHP-Parser will only be downloaded if this is actually necessary. This ensures that release artifacts will never try to regenerate stubs and thus fetch PHP-Parser, as long as you do not modify any files. Closes GH-5739.
show more ...
|