History log of /PHP-8.1/ext/spl/spl_directory_arginfo.h (Results 1 – 23 of 23)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 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 ...


Revision tags: php-8.1.7RC1
# d0a05187 12-Mar-2022 Nikita Popov

Make DirectoryIterator current() / key() return types tentative

Fixes GH-8192.

Revision tags: php-8.1.4RC1, php-8.1.3, php-8.1.2RC1, php-8.1.0, php-7.3.33, php-7.3.32, php-7.3.31, php-7.3.30
# 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 ...

Revision tags: php-7.3.29, php-7.3.28
# 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

Revision tags: php-7.3.27
# 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.

Revision tags: php-7.3.26, php-7.3.26RC1, php-7.3.25, php-7.3.25RC1, php-7.3.24, php-7.3.24RC1
# 68195bd4 06-Oct-2020 Nikita Popov

Update ext/spl parameter names

Closes GH-6284.

Revision tags: php-7.3.23
# 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 ...

Revision tags: php-7.3.23RC1
# 628db3f3 04-Sep-2020 Máté Kocsis

Fix UNKNOWN default values in various extensions

Closes GH-6075

Revision tags: php-7.3.22, php-7.3.22RC1
# 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

Revision tags: php-7.3.21, php-7.3.21RC1, php-7.3.20, php-7.3.20RC1
# 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 ...

Revision tags: php-7.3.19, php-7.4.7RC1, php-7.3.19RC1, php-7.3.18RC1
# d7f7080b 25-Apr-2020 Máté Kocsis

Generate methods entries from stubs for ext/spl

Closes GH-5458

Revision tags: php-7.2.30, php-7.3.17
# 3709e74b 06-Apr-2020 Máté Kocsis

Store default parameter values of internal functions in arg info

Closes GH-5353. From now on, PHP will have reflection information
about default values of parameters of internal function

Store default parameter values of internal functions in arg info

Closes GH-5353. From now on, PHP will have reflection information
about default values of parameters of internal functions.

Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>

show more ...

# 98097138 06-Apr-2020 Christoph M. Becker

Merge branch 'PHP-7.4'

* PHP-7.4:
Fix #69264: __debugInfo() ignored while extending SPL classes


Revision tags: php-7.3.17RC1
# 66fc5564 21-Mar-2020 Máté Kocsis

Add stubs for SplFileInfo et al.

Closes GH-5287