History log of /PHP-8.2/Zend/zend_ini.c (Results 1 – 25 of 163)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 8c19efdc 19-Jul-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-15023: Memory leak in Zend/zend_ini.c

Closes GH-15024.


# c776f795 14-Oct-2023 Jakub Zelenka

Merge branch 'PHP-8.1' into PHP-8.2


# 0217be4d 22-Sep-2023 Jakub Zelenka

Fix GH-12232: FPM: segfault dynamically loading extension without opcache

Also fixes incorrect assertion in ini init that php_dl is always
temporary.

Closes GH-12277

# d229a480 08-Aug-2023 George Peter Banyard

Fix GH-11876: ini_parse_quantity() accepts invalid quantities

Closes GH-11910

# f6ec8078 21-Feb-2023 George Peter Banyard

Merge branch 'PHP-8.1' into PHP-8.2

* PHP-8.1:
ext/curl/interface: fix zend_result return value
Zend/zend_ini: fix zend_result return values


# d51eb1d7 21-Feb-2023 Max Kellermann

Zend/zend_ini: fix zend_result return values

The value "1" was illegal.

Signed-off-by: George Peter Banyard <girgias@php.net>

# 0d19ae40 16-Sep-2022 George Peter Banyard

Add support for binary and octal number prefixes for INI settings

Closes GH-9560

# 3e362f51 13-Aug-2022 George Peter Banyard

Add zend_string INI validators

Currently we only have validators for char* which is rather annoying as INI settings are saved as zend_string* in the first place

Closes GH-9328

# 9f8e5182 12-Jul-2022 Ayesh Karunaratne

INI parser: Fix typo /multipler/multiplier

Closes GH-8987.

# 827754ac 17-Jun-2022 Arnaud Le Blanc

Fix type (#8814)

# efc8f0eb 17-Jun-2022 Arnaud Le Blanc

Deprecate zend_atol() / add zend_ini_parse_quantity() (#7951)

Add zend_ini_parse_quantity() and deprecate zend_atol(), zend_atoi()

zend_atol() and zend_atoi() don't just do number p

Deprecate zend_atol() / add zend_ini_parse_quantity() (#7951)

Add zend_ini_parse_quantity() and deprecate zend_atol(), zend_atoi()

zend_atol() and zend_atoi() don't just do number parsing.
They also check for a 'K', 'M', or 'G' at the end of the string,
and multiply the parsed value out accordingly.

Unfortunately, they ignore any other non-numerics between the
numeric component and the last character in the string.
This means that numbers such as the following are both valid
and non-intuitive in their final output.

* "123KMG" is interpreted as "123G" -> 132070244352
* "123G " is interpreted as "123 " -> 123
* "123GB" is interpreted as "123B" -> 123
* "123 I like tacos." is also interpreted as "123." -> 123

Currently, in php-src these functions are used only for parsing ini values.

In this change we deprecate zend_atol(), zend_atoi(), and introduce a new
function with the same behavior, but with the ability to report invalid inputs
to the caller. The function's name also makes the behavior less unexpected:
zend_ini_parse_quantity().

Co-authored-by: Sara Golemon <pollita@php.net>

show more ...

# 0a5a7611 06-May-2022 Arnaud Le Blanc

Merge branch 'PHP-8.1'


# f07a08df 06-May-2022 Arnaud Le Blanc

Fix unregistering ini entries of dynamically loaded extension (#8435)

Fixes GH-8185

# 90b7bde6 03-Nov-2021 Dmitry Stogov

Use more compact representation for packed arrays.

- for packed arrays we store just an array of zvals without keys.
- the elements of packed array are accessible throuf as ht->arPacked[

Use more compact representation for packed arrays.

- for packed arrays we store just an array of zvals without keys.
- the elements of packed array are accessible throuf as ht->arPacked[i]
instead of ht->arData[i]
- in addition to general ZEND_HASH_FOREACH_* macros, we introduced similar
familied for packed (ZEND_HASH_PACKED_FORECH_*) and real hashes
(ZEND_HASH_MAP_FOREACH_*)
- introduced an additional family of macros to access elements of array
(packed or real hashes) ZEND_ARRAY_ELEMET_SIZE, ZEND_ARRAY_ELEMET_EX,
ZEND_ARRAY_ELEMET, ZEND_ARRAY_NEXT_ELEMENT, ZEND_ARRAY_PREV_ELEMENT
- zend_hash_minmax() prototype was changed to compare only values

Because of smaller data set, this patch may show performance improvement
on some apps and benchmarks that use packed arrays. (~1% on PHP-Parser)

TODO:
- sapi/phpdbg needs special support for packed arrays (WATCH_ON_BUCKET).
- zend_hash_sort_ex() may require converting packed arrays to hash.

show more ...

# aff36587 29-Jun-2021 Patrick Allaert

Fixed some spaces used instead of tabs

# 09efad61 08-Apr-2021 George Peter Banyard

Use zend_string_equals_(literal_)ci() API more often

Also drive-by usage of zend_ini_parse_bool()

Closes GH-6844

# 3e01f5af 15-Jan-2021 Nikita Popov

Replace zend_bool uses with bool

We're starting to see a mix between uses of zend_bool and bool.
Replace all usages with the standard bool type everywhere.

Of course, zend_bool

Replace zend_bool uses with bool

We're starting to see a mix between uses of zend_bool and bool.
Replace all usages with the standard bool type everywhere.

Of course, zend_bool is retained as an alias.

show more ...

# fa8d9b11 28-Aug-2020 George Peter Banyard

Improve type declarations for Zend APIs

Voidification of Zend API which always succeeded
Use bool argument types instead of int for boolean arguments
Use bool return type for functio

Improve type declarations for Zend APIs

Voidification of Zend API which always succeeded
Use bool argument types instead of int for boolean arguments
Use bool return type for functions which return true/false (1/0)
Use zend_result return type for functions which return SUCCESS/FAILURE as they don't follow normal boolean semantics

Closes GH-6002

show more ...

# 1b2ec73c 26-Aug-2020 George Peter Banyard

Drop various unused macros/APIs

Also convert_libmagic_pattern() to return a zend_string*

Closes GH-6029

# 13419bef 21-Aug-2020 Christoph M. Becker

Merge branch 'PHP-7.4' into master

* PHP-7.4:
Fix wrong datatype


# 8f9f308b 21-Aug-2020 Christoph M. Becker

Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
Fix wrong datatype


# 46d62e54 21-Aug-2020 Manuel Mausz

Fix wrong datatype

ini_entry->modifiable is of type uint8_t and so should be the temp. variable. Especially important after 4b77a158.

Closes GH-6028

# fc765094 09-Jul-2020 Derick Rethans

Merge branch 'PHP-7.4'


# 972383fd 09-Jul-2020 Derick Rethans

Revert "Partial fixed bug #79649 (Altering disable_functions from module init corrupts memory)"

This reverts commit a297c09da5ad355d53a8e8ea72655a06d15b7bc7.

# 28b4761e 10-Jun-2020 Xinchen Hui

Merge branch 'PHP-7.4'

* PHP-7.4:
Partial fixed bug #79649 (Altering disable_functions from module init corrupts memory)


1234567