History log of /PHP-7.4/Zend/zend_API.c (Results 201 – 225 of 947)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 122d7596 02-Apr-2015 Nikita Popov

Always throw TypeException on throwing zpp failures

Introduces a ZEND_PARSE_PARAMS_THROW flag for zpp, which forces to
report FAILURE errors using a TypeException instead of a Warning,

Always throw TypeException on throwing zpp failures

Introduces a ZEND_PARSE_PARAMS_THROW flag for zpp, which forces to
report FAILURE errors using a TypeException instead of a Warning,
like it would happen in strict mode.

Adds a zend_parse_parameters_throw() convenience function, which
invokes zpp with this flag.

Converts all cases I could identify, where we currently have
throwing zpp usage in constructors and replaces them with this API.
Error handling is still replaced to EH_THROW in some cases to handle
other, domain-specific errors in constructors.

show more ...


# f920f974 04-Apr-2015 Nikita Popov

Clarify that some zpp errors are just for debugging

These occur when the extension author messed up, not during normal
script execution.

Make these core errors and show them eve

Clarify that some zpp errors are just for debugging

These occur when the extension author messed up, not during normal
script execution.

Make these core errors and show them even with PARAMS_QUIET.

show more ...


# ad863c17 02-Apr-2015 Dmitry Stogov

Convert fatal errors into EngineException


# 53d20140 02-Apr-2015 Dmitry Stogov

Fixed performance degradation introduced with lateast EnfineException related changes.
Restore original errors order in executor.


# ea09a9fa 01-Apr-2015 Dmitry Stogov

Convert fatal errors into EngineExceptions
Make zval_update_constant_ex(), zval_update_constant(), zend_update_class_constants() and zend_ast_evaluate() return SUCCESS or FAILURE.


# ec760d8f 01-Apr-2015 Dmitry Stogov

Convert fatal errors into EngineExceptions


# 780a8123 01-Apr-2015 Dmitry Stogov

Convert fatal errors into EngineExceptions


# acfc31c0 01-Apr-2015 Dmitry Stogov

Use zend_error_noreturn() for fatal errors


# 08577499 01-Apr-2015 Nikita Popov

Drop support for static calls from incompatible context

Implemented by NULLing $this.


Revision tags: php-5.6.8RC1, php-5.5.24RC1, php-5.6.7, php-5.5.23, php-5.4.39
# 8d003858 15-Mar-2015 Nikita Popov

Reclassify E_STRICT notices

Per RFC https://wiki.php.net/rfc/reclassify_e_strict

While reviewing this, found that there are still three E_STRICTs
left in libraries - need to dis

Reclassify E_STRICT notices

Per RFC https://wiki.php.net/rfc/reclassify_e_strict

While reviewing this, found that there are still three E_STRICTs
left in libraries - need to discuss those.

show more ...


# 1018f462 30-Mar-2015 Dmitry Stogov

Patch improvement:

Removed the corresponding core code.
Fixed ext/com_dotnet and ext/date.
Refactored ext/intl changes.
Improved ext/fileinfo and ext/pdo changes.
Fixed tests.


# 02be73b5 25-Mar-2015 Kalle Sommer Nielsen

Constness to zend_get_object_type(), thanks Michael!


# 927d53fd 25-Mar-2015 Kalle Sommer Nielsen

Change "Cannot redeclare class X" into "Cannot redeclare class/interface/trait X", meaning that the following:

C:\> php -r "trait A { } trait A { }"

Will now properly print "Cannot

Change "Cannot redeclare class X" into "Cannot redeclare class/interface/trait X", meaning that the following:

C:\> php -r "trait A { } trait A { }"

Will now properly print "Cannot redeclare trait A" instead of "Cannot redeclare class A" to make error messages a tiny bit clearer. Admittedly, a better solution can most likely be made by actually telling what the colliding object is a type of.

Internally this adds a new function:
zend_get_object_type()

show more ...


# a50e9d87 22-Mar-2015 Nikita Popov

Partially revert "Fix uninitialized value condition"

This reverts commit e874f76096a346c5ee073c8aaf252d916f3be925,
which broke zpp quite mode.

Only the initialization of the "se

Partially revert "Fix uninitialized value condition"

This reverts commit e874f76096a346c5ee073c8aaf252d916f3be925,
which broke zpp quite mode.

Only the initialization of the "severity" variable is retained.

show more ...


# e874f760 21-Mar-2015 Bob Weinand

Fix uninitialized value condition


# 35f9b90b 20-Mar-2015 Dmitry Stogov

ZPP changed to lazely check for "strict/weak" only if it's really necessary.
Cleanup.


# 59356126 20-Mar-2015 Dmitry Stogov

Improved type hinting:

EX_PREV_USES_STRICT_TYPES() and family changed/renamed to fit with other macros
Optimized zend_verify_internal_arg_type() and family (they don't need "strict" argu

Improved type hinting:

EX_PREV_USES_STRICT_TYPES() and family changed/renamed to fit with other macros
Optimized zend_verify_internal_arg_type() and family (they don't need "strict" argument anymore)
Standerd ZPP is called from VM only for weak type check or strict exception (int -> double)
Fixed ZEND_RECV_VARIADIC
Fixed ZEND_STRLEN

TODO: should we accept IS_NULL for non-nullable arguments?

show more ...


# 44669e8f 20-Mar-2015 Dmitry Stogov

Fixed white spaces


# 7044f9c6 19-Mar-2015 Anthony Ferrara

Refactor as to not use call info, but add the flag to the op_array.


# 0ef80ac3 19-Mar-2015 Anthony Ferrara

Fix severity issues with callbacks, start work porting ZEND_STRLEN opcode to work with strict mode, more refactoring to come


# 78d23994 18-Mar-2015 Anthony Ferrara

Fix C89 compatibility by moving a misplaced if statement


# 579e7fa4 18-Mar-2015 Anthony Ferrara

Style cleanup, as well as fixing bug with missing argument for WRONG_PARAM_COUNT_WITH_RETVAL


# 8be4266f 18-Mar-2015 Anthony Ferrara

Clean up API renames for zend_wrong_param_count to maintain BC, introducing a zend_wrong_param_count_ex() function when you know strict value


# 7feebead 18-Mar-2015 Anthony Ferrara

Refactor error implementation significantly to centralize error mode behavior. Add zend_internal_type_error() function


Revision tags: php-5.6.7RC1, php-5.5.23RC1, POST_PHP7_EREG_MYSQL_REMOVALS, PRE_PHP7_EREG_MYSQL_REMOVALS
# aa63449b 03-Mar-2015 Xinchen Hui

Remove wrong commit committed by accident


12345678910>>...38