History log of /PHP-8.4/ext/spl/spl_directory.c (Results 1 – 25 of 543)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 886a5287 01-Nov-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-16604: Memory leaks in SPL constructors

Closes GH-16673.


# eeec0939 29-Jun-2024 David Carlier

Fix GH-14687 segfault on debugging a freed SplObjectIterator instance.

close GH-14711


# 5d993e96 17-Oct-2024 Gina Peter Banyard

Fix GH-16477 (Segmentation fault when calling __debugInfo() after failed SplFileObject::__constructor)

Closes GH-16480
Closes GH-16604


# a19029fc 17-Oct-2024 Gina Peter Banyard

Fix GH-16477 (Segmentation fault when calling __debugInfo() after failed SplFileObject::__constructor)

Closes GH-16480
Closes GH-16604


# 9f5b5e34 17-Oct-2024 Gina Peter Banyard

Fix GH-16477 (Segmentation fault when calling __debugInfo() after failed SplFileObject::__constructor)

Closes GH-16480
Closes GH-16604


# 1c542af1 17-Oct-2024 Ilija Tovilo

Revert undoing of partial spl_filesystem_object initialization

We're intentionally not initializing spl_filesystem_object.u.dir.entry, as it
will later be initialized, and we don't need

Revert undoing of partial spl_filesystem_object initialization

We're intentionally not initializing spl_filesystem_object.u.dir.entry, as it
will later be initialized, and we don't need to zero the entire buffer anyway.

show more ...


# f756b96e 13-Sep-2024 Gina Peter Banyard

Make CSV deprecation less annoying to deal with (#15569)


# 5853cdb7 20-Aug-2024 Gina Peter Bnayard

Use "must not" instead of "cannot" wording


# e7c4d54d 18-Aug-2024 Gina Peter Bnayard

Use new helper function for "cannot be empty" ValueErrors


# 02177848 14-Aug-2024 Gina Peter Banyard

Replace uses of php_dirname() with zend_dirname() (#15393)

This removes some needs to include the php_string.h header


# c818d944 12-Aug-2024 Gina Peter Banyard

ext/(standard|spl): Deprecate passing a non-empty string as the $enclosure parameter (#15362)


# 0956267c 23-Jul-2024 Levi Morrison

Fix warnings in session/spl

This fixes -Winline errors where the functions are not ever inlined.

Also fixes some signature mismatches which were fixed previously but
for whateve

Fix warnings in session/spl

This fixes -Winline errors where the functions are not ever inlined.

Also fixes some signature mismatches which were fixed previously but
for whatever reason were not ported to all maintained branches:

/usr/local/src/php/ext/session/session.c:1299:20:
warning:conflicting types for 'php_session_send_cookie' due to enum/integer mismatch;
have 'zend_result(void)' {aka 'ZEND_RESULT_CODE(void)'} [-Wenum-int-mismatch]
1299 | static zend_result php_session_send_cookie(void) /* {{{ */
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/src/php/ext/session/session.c:100:12:
note: previous declaration of 'php_session_send_cookie' with type 'int(void)'
100 | static int php_session_send_cookie(void);
| ^~~~~~~~~~~~~~~~~~~~~~~

show more ...


# 1fbb6665 17-Jul-2024 Arnaud Le Blanc

Use zend_std_build_properties() to access zend_object.properties

The zend_object.properties HashTable needs to be built just in time by calling
rebuild_object_properties() on the object

Use zend_std_build_properties() to access zend_object.properties

The zend_object.properties HashTable needs to be built just in time by calling
rebuild_object_properties() on the object before accessing it. Normally this is
done automatically in zend_std_get_properties(), but we do it manually in a few
places.

In this change I introduce an inline variant of zend_std_build_properties(), and
refactor these places to use it instead of calling rebuild_object_properties()
manually.

rebuild_object_properties() renamed as rebuild_object_properties_internal(), to
enforce usage of zend_std_get_properties() or zend_std_build_properties_ex().

Closes GH-14996

show more ...


# 29f98e74 10-Jul-2024 Tim Düsterhus

Replace `@deprecated` by `#[\Deprecated]` for internal functions / class constants (#14750)

Co-authored-by: Gina Peter Banyard <girgias@php.net>
Co-authored-by: Niels Dossche <7771979+ni

Replace `@deprecated` by `#[\Deprecated]` for internal functions / class constants (#14750)

Co-authored-by: Gina Peter Banyard <girgias@php.net>
Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>

show more ...


# f0fb9e34 09-Jun-2024 Gina Peter Banyard

ext/spl: use ecalloc instead of complicate memset to 0


# 80941042 09-Jun-2024 Gina Peter Banyard

ext/spl: Refactor debug handlers

Mainly to use zend_mangle_property_name() directly instead of spl_gen_private_prop_name()


# 54047c10 09-Jun-2024 Gina Peter Banyard

ext/spl: Remove some useless header includes and clarify usages


# 3fd60d33 09-Jun-2024 Gina Peter Banyard

ext/spl: Refactor SplFileObject::fgetc()


# f296cba5 09-Jun-2024 Gina Peter Banyard

ext/spl: Convert current_line to a zend_string*


# bb4491af 09-Jun-2024 Gina Peter Banyard

ext/spl: Adding a const modifier


# 35c5cf97 09-Jun-2024 Gina Peter Banyard

ext/spl: Remove useless wrapper


# 90b8db49 08-Jun-2024 Gina Peter Banyard

ext/spl: Refactor SplFileInfo::getPathInfo() implementation


# a5cacba6 08-Jun-2024 Gina Peter Banyard

ext/spl: Remove spl_engine.h header (#14418)

And convert calls to spl_instantiate_arg_* to the new object_init_with_constructor() API


# fd2d8696 08-Jun-2024 Gina Peter Banyard

Clean-up some more headers (#14416)

Remove unused headers (such as php_ini.h for extensions that don't define INI settings)
Use more specific headers when possible


# c461b600 24-May-2024 Levi Morrison

refactor: change `zend_is_true` to return `bool` (#14301)

Previously this returned `int`. Many functions actually take advantage
of the fact this returns exactly 0 or 1. For instance,

refactor: change `zend_is_true` to return `bool` (#14301)

Previously this returned `int`. Many functions actually take advantage
of the fact this returns exactly 0 or 1. For instance,
`main/streams/xp_socket.c` does:

sockopts |= STREAM_SOCKOP_IPV6_V6ONLY_ENABLED * zend_is_true(tmpzval);

And `Zend/zend_compile.c` does:

child = &ast->child[2 - zend_is_true(zend_ast_get_zval(ast->child[0]))];

I changed a few places trivially from `int` to `bool`, but there are
still many places such as the object handlers which return `int` that
should eventually be `bool`.

show more ...


12345678910>>...22