| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.
C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."
Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines.
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.
C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."
Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
|
| |
|
|\ |
|
| |
| |
| |
| |
| | |
It doesn't matter how the parameters are provided, we always have
to copy the trampoline invoke function.
|
| | |
|
| | |
|
|\ \
| |/
| |
| |
| | |
* PHP-7.1:
Fix #74454: Wrong exception being thrown when using ReflectionMethod
|
| |
| |
| |
| |
| | |
If zend_throw_exception_ex() already threw an exception, we should not
throw again.
|
|\ \
| |/ |
|
| |
| |
| |
| | |
The behavior is now consistent with ReflectionMethod.
|
|\ \
| |/
| |
| |
| | |
* PHP-7.1:
Fixed bug #76536 (PHP crashes with core dump when throwing exception in error handler). (Laruence)
|
| |
| |
| |
| | |
error handler). (Laruence)
|
| | |
|
| | |
|
| |
| |
| |
| | |
This reverts commit 9ffc6ca62f53431a4b32b30cdda8180142f47cdb.
|
|\ \
| |/ |
|
| |\ |
|
| | | |
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.1:
Fixed test
|
| |\ \
| | |/
| | |
| | |
| | | |
* PHP-7.0:
Fixed test
|
| | | |
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | | |
* PHP-7.1:
Update NEWS
Fixed bug #74949 (null pointer dereference in _function_string)
|
| |\ \
| | |/
| | |
| | |
| | | |
* PHP-7.0:
Fixed bug #74949 (null pointer dereference in _function_string)
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
RFC: https://wiki.php.net/rfc/object-typehint
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
ReflectionNamedType::getName
This code duplication introduce an inconsistency in displayed type name
- bool (reflection) vs boolean
- int (reflection) vs integer
And reflection already use zend_get_type_by_const in other methods...
Inconsistenty is kept for BC reason.
Could be fixed in 8.0
|
| | |
| | |
| | |
| | |
| | | |
Current behavior is essentially "Is an INTERNAL iterable class".
This change allows isIterable() to return true for userspace classes as well.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Iterateable is not a word.
Add the correct spelling, but keep the original one around
for BC purposes.
Perhaps we can add ZEND_ACC_DEPRECATED at some later date
and even remove it from PHP 8.
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* PHP-7.1:
Update NEWS
Fixed bug #74673 (Segfault when cast Reflection object to string with undefined constant)
Conflicts:
ext/reflection/php_reflection.c
|
| |\ \
| | |/
| | |
| | |
| | |
| | |
| | |
| | | |
* PHP-7.0:
Fixed bug #74673 (Segfault when cast Reflection object to string with undefined constant)
Conflicts:
ext/reflection/php_reflection.c
|
| | |
| | |
| | |
| | | |
undefined constant)
|
| | | |
|
| |\ \
| | |/ |
|
| | |
| | |
| | |
| | | |
This reverts commit 9ffc6ca62f53431a4b32b30cdda8180142f47cdb.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
If someone complains, we may re-expose specific flags while also
adding corresponding class constants for them.
|
| | |
| | |
| | |
| | | |
Reflection is leaking internal flags...
|
| | | |
|
| | | |
|
|\ \ \
| |/ / |
|
| |\ \
| | |/ |
|
| | | |
|
| | | |
|