History log of /php-src/ext/standard/array.c (Results 176 – 200 of 1117)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 77cf3d7b 16-May-2019 Dik Takken

Allow array_merge() / array_merge_recursive() without arguments

This allows writing

array_merge(...$arrays)

instead of

array_merge([], ...$arrays)

Allow array_merge() / array_merge_recursive() without arguments

This allows writing

array_merge(...$arrays)

instead of

array_merge([], ...$arrays)

and is in line with similar changes to array_push() and array_unshift()
in PHP 7.3.

Closes GH-4175.

show more ...

# 20e983d9 14-May-2019 Nikita Popov

Merge branch 'PHP-7.4'


# 3f19f511 14-May-2019 Nikita Popov

Add RETURN_EMPTY_ARRAY() / RETVAL_EMPTY_ARRAY()

The usual wrappers around ZVAL_EMPTY_ARRAY()...

# 15c0135d 23-Apr-2019 Nikita Popov

Merge branch 'PHP-7.4'


# a7a318d3 23-Apr-2019 Nikita Popov

Merge branch 'PHP-7.3' into PHP-7.4


# cedee440 23-Apr-2019 Nikita Popov

Fixed bug #77931

# 39724f46 16-Apr-2019 Nikita Popov

Merge branch 'PHP-7.4'


# 2bdd2128 16-Apr-2019 Nikita Popov

Merge branch 'PHP-7.3' into PHP-7.4


# f9a755d0 16-Apr-2019 Nikita Popov

Fix HT flags copying wrt iterator count

HT_FLAGS() includes the full flag word, including the iterator
count. When we're fully reassigning it, we need to make sure that
we either rea

Fix HT flags copying wrt iterator count

HT_FLAGS() includes the full flag word, including the iterator
count. When we're fully reassigning it, we need to make sure that
we either really do want to copy the iterator count (as in some
cases in array.c) or we need to mask only the actual flag byte.

Add an assert to hash_iterators_del() to make sure the iterator
count is non-zero (which is how I ran into this) and make sure that
the iterator count is correctly preserved during array splicing.

show more ...

# e97577ed 25-Mar-2019 Nikita Popov

Fixed bug #77793

By making sure that we always first increment the refcount of the
new value before we destroy the old one.

# e86cdce5 11-Mar-2019 rjhdby

Make zend_hash_sort() return void

This function always succeeds, so remove the success indicator
return value.

# 89717283 20-Mar-2019 Nikita Popov

Merge branch 'PHP-7.4'


# abc457fe 20-Mar-2019 Nikita Popov

Fixed bug #74345

Export zend_release_fcall_info_cache(). It is only necessary to
call it if the fcc may not have been used -- if it is passed to
zend_call_function() and friends, the

Fixed bug #74345

Export zend_release_fcall_info_cache(). It is only necessary to
call it if the fcc may not have been used -- if it is passed to
zend_call_function() and friends, then they will take care of
freeing trampolines.

show more ...

# 2968a1d7 06-Mar-2019 Peter Kokot

Merge branch 'PHP-7.4'

* PHP-7.4:
Remove legacy AC_CHECK_TYPE calls for uint and ulong


# bebcdcc7 02-Mar-2019 Peter Kokot

Remove legacy AC_CHECK_TYPE calls for uint and ulong

The AC_CHECK_TYPE was refactored in more recent versions of Autoconf
and the call with two arguments is obsolete and not recommended

Remove legacy AC_CHECK_TYPE calls for uint and ulong

The AC_CHECK_TYPE was refactored in more recent versions of Autoconf
and the call with two arguments is obsolete and not recommended anymore.

This patch also refactors some leftovers of using ulong and uint which
are not standard nor common usages of types in C.

The ulong can be used as zend_ulong and uint usage is actually
`unsigned int`.

The usage of HAVE_ULONG removed since it is not used in current code
base.

Legacy edgecase for some legacy HPUX systems removed:
- sys/stream.h header is not checked and the HAVE_SYS_STREAM_H is
not defined with current build system.

- flags are unsigned int
- max_allowed_packet changed to unsigned int

show more ...

# 7f262eda 01-Mar-2019 Nikita Popov

Convert extract() prefix to string zpp arg

# f198ae15 28-Feb-2019 Nikita Popov

Merge branch 'PHP-7.4'


# 5e6846ca 28-Feb-2019 Nikita Popov

Merge branch 'PHP-7.3' into PHP-7.4


# 019fd1d9 28-Feb-2019 Nikita Popov

Merge branch 'PHP-7.2' into PHP-7.3


# 9ad9cc71 28-Feb-2019 Nikita Popov

Fixed bug #77669

Revision tags: php-7.3.3RC1, php-7.2.16RC1, php-7.2.15, php-7.3.2, php-7.2.15RC1
# 67320282 29-Jan-2019 Pedro Magalhães

Implement the negative_array_index RFC

# 53d8fa5a 07-Feb-2019 Nikita Popov

Fix signedness in comparison in array_slice

# 91ef4124 31-Jan-2019 Dmitry Stogov

Refactor zend_object_handlers API to pass zend_object* and zend_string* insted of zval(s).

# 0476d558 04-Feb-2019 Nikita Popov

Make array_slice $length param a nullable integer

Instead of having custom parameter handling.

# 92ac598a 22-Jan-2019 Peter Kokot

Remove local variables

This patch removes the so called local variables defined per
file basis for certain editors to properly show tab width, and
similar settings. These are mainly

Remove local variables

This patch removes the so called local variables defined per
file basis for certain editors to properly show tab width, and
similar settings. These are mainly used by Vim and Emacs editors
yet with recent changes the once working definitions don't work
anymore in Vim without custom plugins or additional configuration.
Neither are these settings synced across the PHP code base.

A simpler and better approach is EditorConfig and fixing code
using some code style fixing tools in the future instead.

This patch also removes the so called modelines for Vim. Modelines
allow Vim editor specifically to set some editor configuration such as
syntax highlighting, indentation style and tab width to be set in the
first line or the last 5 lines per file basis. Since the php test
files have syntax highlighting already set in most editors properly and
EditorConfig takes care of the indentation settings, this patch removes
these as well for the Vim 6.0 and newer versions.

With the removal of local variables for certain editors such as
Emacs and Vim, the footer is also probably not needed anymore when
creating extensions using ext_skel.php script.

Additionally, Vim modelines for setting php syntax and some editor
settings has been removed from some *.phpt files. All these are
mostly not relevant for phpt files neither work properly in the
middle of the file.

show more ...

12345678910>>...45