History log of /php-src/ext/standard/var.c (Results 51 – 75 of 539)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 8db2ae8f 10-Jul-2020 twosee

Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
Fixed bug #79821


# 150504e6 10-Jul-2020 twosee

Fixed bug #79821

HashTable was reallocated (zend_hash_packed_grow) during php_var_dump, so we should call GC_ADDREF to make SEPARATE_ARRAY work.

Closes GH-5837.

Revision tags: php-7.4.7, php-7.3.19
# d30cd7d7 26-May-2020 Máté Kocsis

Review the usage of apostrophes in error messages

Closes GH-5590

# 2b5de6f8 01-Jul-2020 Max Semenik

Remove proto comments from C files

Closes GH-5758

# 1314ccbf 26-Jun-2020 Nikita Popov

Cache __unserialize() instead of unserialize()

We should use these cache slots for the new object serialization
mechanism rather than the old one.

# 15846ff1 17-Jun-2020 Nikita Popov

Add ZVAL_OBJ_COPY macro

For the common ZVAL_OBJ + GC_ADDREF pattern.
This mirrors the existing ZVAL_STR_COPY API.

Revision tags: php-7.4.7RC1, php-7.3.19RC1, php-7.4.6, php-7.2.31, php-7.4.6RC1, php-7.3.18RC1, php-7.2.30, php-7.4.5, php-7.3.17, php-7.4.5RC1, php-7.3.17RC1, php-7.3.18, php-7.4.4, php-7.2.29, php-7.3.16, php-7.4.4RC1, php-7.3.16RC1
# 4a816584 29-Feb-2020 Máté Kocsis

Make float to string casts locale-independent

From now on, float to string casting will always behave locale-independently.
RFC: https://wiki.php.net/rfc/locale_independent_float_to_stri

Make float to string casts locale-independent

From now on, float to string casting will always behave locale-independently.
RFC: https://wiki.php.net/rfc/locale_independent_float_to_string
Closes GH-5224

Co-authored-by: George Peter Banyard <girgias@php.net>

show more ...

# d906eb23 28-Apr-2020 Xinchen Hui

Fixed bug #79526 (`__sleep` error message doesn't include the name of the class)

# baabb539 23-Apr-2020 Nikita Popov

Merge branch 'PHP-7.4'

* PHP-7.4:
Fix bug #79447


# 73d02c3b 15-Apr-2020 Nicolas Grekas

Fix bug #79447

Partially reverts 846b6479537a112d1ded725e6484e46462048b35: instead of
throwing, this skips uninitialized typed properties when serializing objects.

This makes se

Fix bug #79447

Partially reverts 846b6479537a112d1ded725e6484e46462048b35: instead of
throwing, this skips uninitialized typed properties when serializing objects.

This makes serialize with __sleep() behave the same as serialize()
without __sleep().

As in the non-__sleep() case, unserialize(serialize($x)) identity
may not be preserved due to replacement of uninitialized/unset
properties with default values. Fixing this will require changes to
the serialization format.

Closes GH-5396.

show more ...

# 657f756c 18-Apr-2020 Nicolas Grekas

Skip non-existing properties returned by __sleep()

# 1f48feeb 13-Apr-2020 Máté Kocsis

Improve some TypeError and ValueError messages

Closes GH-5377

Revision tags: php-7.4.3, php-7.2.28
# a9398056 12-Feb-2020 Nikita Popov

Use serialize_precision for var_dump()

var_dump() is debugging functionality, so it should print
floating-point numbers accurately. We do this by switching
to serialize_precision, wh

Use serialize_precision for var_dump()

var_dump() is debugging functionality, so it should print
floating-point numbers accurately. We do this by switching
to serialize_precision, which (by default) will print with
as much precision as necessary to preserve the exact value
of the float.

This also affects debug_zval_dump().

Closes GH-5172.

show more ...

# ae6f45ad 12-Feb-2020 Nikita Popov

var_dump(): Don't skip recursion detection on first level

This is confusing. The current output doesn't make it clear that
we're in fact recursing to the top-level structure.

Cl

var_dump(): Don't skip recursion detection on first level

This is confusing. The current output doesn't make it clear that
we're in fact recursing to the top-level structure.

Closes GH-5171.

show more ...

Revision tags: php-7.3.15RC1, php-7.4.3RC1
# 58b17906 03-Feb-2020 Nikita Popov

Apply tidy formatting

Mostly reindent PHP scripts to spaces.

Revision tags: php-7.3.15, php-7.2.27, php-7.4.2, php-7.3.14, php-7.3.14RC1, php-7.4.2RC1
# b22daa3a 06-Jan-2020 Nikita Popov

Merge branch 'PHP-7.4'

* PHP-7.4:
Throw Error when referencing uninit typed prop in __sleep


# 846b6479 03-Jan-2020 Nikita Popov

Throw Error when referencing uninit typed prop in __sleep

Previously this generated a notice, but would likely generate an
Error when unserializing.

Now we treat it with the sam

Throw Error when referencing uninit typed prop in __sleep

Previously this generated a notice, but would likely generate an
Error when unserializing.

Now we treat it with the same distinction as direct property
accesses, i.e. referencing an unset/undefined normal property
stays a notice, while a typed property becomes an Error exception.

This fixed bug #79002.

Closes GH-5050.

show more ...

# aadd3aae 03-Jan-2020 Máté Kocsis

Use RETURN_THROWS() in various places

# 0d35f8e3 02-Jan-2020 Nikita Popov

Merge branch 'PHP-7.4'

* PHP-7.4:
Populate hashtable of __sleep() properties
Deref names returned by __sleep()
Extract php_var_serialize_nested_data() function


# 90fea675 02-Jan-2020 Nikita Popov

Populate hashtable of __sleep() properties

Instead of populating a hashtable of property names and then
directly serializing.

This has the advantage of a) detecting duplicate pr

Populate hashtable of __sleep() properties

Instead of populating a hashtable of property names and then
directly serializing.

This has the advantage of a) detecting duplicate properties more
precisely and b) gives us the ability to discard values without
rewriting the serialization string after the fact for GH-5027.

show more ...

# de0ca473 02-Jan-2020 Nikita Popov

Deref names returned by __sleep()

# 701e8c66 02-Jan-2020 Nikita Popov

Extract php_var_serialize_nested_data() function

And split code-paths for arrays and objects based on it.

Revision tags: php-7.4.1, php-7.2.26, php-7.3.13
# 4782e8e2 11-Dec-2019 George Peter Banyard

Return empty string instead of NULL in serialize().

Modifiy its return type accordingly and arginfo.

# 3b0a1905 10-Dec-2019 Máté Kocsis

Promote warning to exception in unserialize()

Revision tags: php-7.4.1RC1, php-7.3.13RC1, php-7.2.26RC1, php-7.4.0
# 0e20220c 25-Nov-2019 Christoph M. Becker

Merge branch 'PHP-7.4'

* PHP-7.4:
Fix #77638: var_export'ing certain class instances segfaults


12345678910>>...22