| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
| | |
| | |
| | | |
This makes it easier to compare mime data from different sources.
|
| | |
| | |
| | |
| | |
| | | |
The PHP file is space indented, but we need the C file to be tab
indented.
|
| | | |
|
| | |
| | |
| | |
| | | |
The error message changed here.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Formerly, this had to be enabled by passing the configuration flag
`--enable-crt-debug`; now it can be enabled by setting the environment
variable `PHP_WIN32_DEBUG_HEAP`. The advantage is that it is no longer
necessary to do separate builds, at the cost of a very minor
performance penalty during process startup.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This adds the following APIs:
void zend_call_known_function(
zend_function *fn, zend_object *object, zend_class_entry *called_scope,
zval *retval_ptr, int param_count, zval *params);
void zend_call_known_instance_method(
zend_function *fn, zend_object *object, zval *retval_ptr, int param_count, zval *params);
void zend_call_known_instance_method_with_0_params(
zend_function *fn, zend_object *object, zval *retval_ptr);
void zend_call_known_instance_method_with_1_params(
zend_function *fn, zend_object *object, zval *retval_ptr, zval *param);
void zend_call_known_instance_method_with_2_params(
zend_function *fn, zend_object *object, zval *retval_ptr, zval *param1, zval *param2);
These are used to perform a call if you already have the
zend_function you want to call. zend_call_known_function()
is the base API, the rest are just really thin wrappers around
it for the common case of instance method calls.
Closes GH-5692.
|
| | |
| | |
| | |
| | | |
Closes GH-5676.
|
| | |
| | |
| | |
| | | |
Close GH-5675.
|
| | |
| | |
| | |
| | | |
Closes GH-5673.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This makes the zend_error_cb API simpler, and avoid formatting
the same message in multiple places.
It should be noted that the passed zend_string is always
non-persistent, so if you want to store it persistently somewhere,
you may still need to duplicate it.
The last_error_message is cleared a bit more aggressive, to make
sure it doesn't hang around across allocator life-cycles.
Closes GH-5639.
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Fix #79650: php-win.exe 100% cpu lockup
|
| |\ \
| | |/
| | |
| | |
| | | |
* PHP-7.3:
Fix #79650: php-win.exe 100% cpu lockup
|
| | |
| | |
| | |
| | |
| | |
| | | |
As of PHP 7.3.0, `sapi_cli_single_write()` is supposed to return `< 0`
on failure, but `fwrite()` returns a `size_t`, and signals error by
setting the stream's error indicator. We have to cater to that.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Exception::$previous is a private property, so we can add a type:
private ?Throwable $previous = null;
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This is a private property, so we are allowed to add a type.
The new declaration of the property is:
private array $trace = [];
This ensures that Exception::getTrace() does indeed return an array.
Userland code that was modifying the property through refleciton
may have to be adjusted to assign an array (instead of null,
for example).
Closes GH-5636.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In some places, we need to make sure that no warnings are thrown
due to unknown encoding. The error reporting code tried to avoid
this by determining a "safe charset", but this introduces subtle
discrepancies in which charset is picked (normally
internal_encoding takes precedence). Avoid this by suppressing
the warning in the first place.
While here, use the fallback logic to print error messages with
substitution characters more consistently, to avoid skipping
parts of the error message entirely.
|
| | | |
|
| | |
| | |
| | |
| | | |
Closes GH-5459
|
| | |
| | |
| | |
| | | |
Unlike the hash apply functions, these do not return int.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Closes GH-5353. From now on, PHP will have reflection information
about default values of parameters of internal functions.
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Add php_cli_server_connect() helper
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
To encapsulate the repeated fsockopen() code.
This gives us a chance to control the timeout in one place:
Raise it to one second.
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Relax overly strict test expectation
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
There is no reason to expect a `1` after the PID; neither the session
ID nor the memory usage are required to contain one. Actually, we just
want to verify here, that the process with the $child_pid is running,
and is a php.exe process.
|
| | |
| | |
| | |
| | | |
Closes GH-5352
|
| | |
| | |
| | |
| | |
| | | |
This really doesn't add anything, and only makes for confusing
terminology. Only marking properties as dynamic is sufficient.
|
| | |
| | |
| | |
| | |
| | | |
Avoid performing the same casting dance inside each sort compare
function.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Provides the last PCRE error as a human-readable message, similar
to functionality existing in other extensions, such as
json_last_error_msg().
Closes GH-5185.
|
| | |
| | |
| | |
| | | |
This reverts commit c31029f335ca1b453af799805c43c37e959ad555.
|
| | | |
|
| | | |
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Apply tidy formatting
|
| | |
| | |
| | |
| | | |
Mostly reindent PHP scripts to spaces.
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Fix bug #78323: Code 0 is returned on invalid options
|
| |\ \
| | |/
| | |
| | |
| | | |
* PHP-7.3:
Fix bug #78323: Code 0 is returned on invalid options
|
| | |
| | |
| | |
| | |
| | | |
Set CLI exit code to 1 when invalid parameters are passed,
and print error to stderr.
|
| | |
| | |
| | |
| | |
| | |
| | | |
overhead and improves performance."
This reverts commit eef85229d0fe9f69d325aa0231e592f35c468afb.
|
| | |
| | |
| | |
| | | |
Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.
Closes GH-4872.
|
| | |
| | |
| | |
| | | |
Closes GH-4851.
|
| | |
| | |
| | |
| | |
| | |
| | | |
We also change `Generator::throw()` to expect a `Throwable` in the
first place, and we now throw a TypeError instead of returning `false`
from `Exception::getTraceAsString()`.
|
| | | |
|
|\ \ \
| |/ / |
|
| | | |
|
| | |
| | |
| | |
| | | |
and improves performance.
|