History log of /PHP-8.1/Zend/zend_builtin_functions.c (Results 51 – 75 of 879)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# d68dfaf0 15-Apr-2020 Nikita Popov

Remove return value from llist apply functions

Unlike the hash apply functions, these do not return int.

# e6458d67 09-Apr-2020 Christoph M. Becker

Fix #79462: method_exists and property_exists incoherent behavior

Both functions are closely related, so should behave the same for wrong
input types, i.e. both should throw a TypeError.

# 55a3e5b9 29-Mar-2020 George Peter Banyard

Promote some warnings to Errors in Zend basic functions

Closes GH-5325

# 8fd7f02e 31-Mar-2020 Nikita Popov

Make cast_object handler required

Avoid subtle differences in behavior depending on whether the
handler is absent or returns FAILURE.

If you previously set cast_object to NULL,

Make cast_object handler required

Avoid subtle differences in behavior depending on whether the
handler is absent or returns FAILURE.

If you previously set cast_object to NULL, create a handler that
always returns FAILURE instead.

show more ...

# fbe19a6e 30-Mar-2020 Nikita Popov

Clarify that return throws

# 29589534 30-Mar-2020 Nikita Popov

Remove unnecessary NULL check

This is a required zpp parameter, it cannot be null.

# 53efa1b0 02-Mar-2020 Nikita Popov

Store aliased name of trait method

Currently, trait methods are aliased will continue to use the
original function name. In a few places in the codebase, we will
try to look up the a

Store aliased name of trait method

Currently, trait methods are aliased will continue to use the
original function name. In a few places in the codebase, we will
try to look up the actual method name instead. However, this does
not work if an aliased method is used indirectly
(https://bugs.php.net/bug.php?id=69180).

I think it would be better to instead actually change the method
name to the alias. This is in principle easy: We have to allow
function_name to be changed even if op array is otherwise shared
(similar to static_variables). This means we need to addref/release
the function_name separately, but I don't think there is a
performance concern here (especially as everything is usually
interned).

There is a bit of complication in opcache, where we need to make
sure that the function name is released the correct number of times
(interning may overwrite the name in the original op_array, but we
need to release it as many times as the op_array is shared).

Fixes bug #69180.
Fixes bug #74939.
Closes GH-5226.

show more ...

# 960318ed 25-Feb-2020 Máté Kocsis

Change argument error message format

Closes GH-5211

# b4c74c54 25-Feb-2020 Nikita Popov

Merge branch 'PHP-7.4'

* PHP-7.4:
Fix #63206: Fully support error/exception_handler stacking, even with null or inside the handler


# 1e50c81f 25-Feb-2020 Nikita Popov

Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
Fix #63206: Fully support error/exception_handler stacking, even with null or inside the handler


# 8c6a7c33 24-Feb-2020 Mark Plomer

Fix #63206: Fully support error/exception_handler stacking, even with null or inside the handler

Always push the current user_error/exception_handler to the stack,
even when it is empty,

Fix #63206: Fully support error/exception_handler stacking, even with null or inside the handler

Always push the current user_error/exception_handler to the stack,
even when it is empty, so restore_error_handler() always works as
expected.

The user_error_handler is especially temporarily empty when we are inside
the error handler, which caused inconsistent behaviour before.

show more ...

# ac0853eb 29-Jan-2020 Máté Kocsis

Make type error messages more consistent

Closes GH-5092

# 8f4f1dea 03-Jan-2020 Máté Kocsis

Convert zend_parse_parameters_none() to fast ZPP

I've done the conversion in those extensions where fast ZPP is predominant.

# e1b57310 30-Dec-2019 Máté Kocsis

Use RETURN_THROWS() during ZPP in main, sapi, win32, and Zend

# 3f3c1ad8 24-Dec-2019 Xinchen Hui

Merge branch 'PHP-7.4'

* PHP-7.4:
Similar problem (#79022) also exists in Interfaces
Fixed bug #79022 (class_exists returns True for classes that are not ready to be used)


# f09b958e 24-Dec-2019 Xinchen Hui

Similar problem (#79022) also exists in Interfaces

# 153c9cc3 24-Dec-2019 Xinchen Hui

Fixed bug #79022 (class_exists returns True for classes that are not ready to be used)

# 0e807077 20-Dec-2019 Máté Kocsis

Make get_defined_vars() always return an array

GH-5025

# 2204dbde 31-Oct-2019 Máté Kocsis

Add missing ZPP checks

Closes GH-4878.

# fec0ff8c 04-Oct-2019 Nikita Popov

Merge branch 'PHP-7.4'


# ca652aaf 04-Oct-2019 Nikita Popov

Fixed bug #78632

I'm going for a very conservative fix here, where the previous
logic is restored for the case where an object is passed to
method_exists(). We might want to check ag

Fixed bug #78632

I'm going for a very conservative fix here, where the previous
logic is restored for the case where an object is passed to
method_exists(). We might want to check against EG(scope) instead,
but this seems like a safer choice.

This means that behavior in PHP 7.4 changes only for
method_exists('C', 'privateMethodNotOnC'), which should be sensible.

show more ...

# cc4af351 03-Sep-2019 Nikita Popov

Merge branch 'PHP-7.4'


# 62553086 03-Sep-2019 Nikita Popov

Report false for inherited private methods in method_exists()

These shadow methods only exist as internal implementation markers.
This mirrors the behavior of property_exists().

# d93b0945 27-Aug-2019 Nikita Popov

Throw TypeError from VM implementation of get_class()

The normal function already throws TypeError through the usual zpp
mechanism, but the VM implementation handles this manually and ha

Throw TypeError from VM implementation of get_class()

The normal function already throws TypeError through the usual zpp
mechanism, but the VM implementation handles this manually and has
not been updated.

show more ...

# 33886f71 18-Jun-2019 Nikita Popov

Generate arginfo from PHP stub files

Signature stubs for internal functions are specified in xyz.stub.php,
from which we generate actual arginfo structures in xyz_arginfo.h.
This fil

Generate arginfo from PHP stub files

Signature stubs for internal functions are specified in xyz.stub.php,
from which we generate actual arginfo structures in xyz_arginfo.h.
This file then needs to be included in the implementation appropriately.

Arginfo from stubs can be regenerated using scripts/dev/gen_stub.php.
However, this should also automatically happen when the stub file is
modified.

show more ...

12345678910>>...36