| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
Voidification of Zend API which always succeeded
Use bool argument types instead of int for boolean arguments
Use bool return type for functions which return true/false (1/0)
Use zend_result return type for functions which return SUCCESS/FAILURE as they don't follow normal boolean semantics
Closes GH-6002
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The $Id$ keywords were used in Subversion where they can be substituted
with filename, last revision number change, last changed date, and last
user who changed it.
In Git this functionality is different and can be done with Git attribute
ident. These need to be defined manually for each file in the
.gitattributes file and are afterwards replaced with 40-character
hexadecimal blob object name which is based only on the particular file
contents.
This patch simplifies handling of $Id$ keywords by removing them since
they are not used anymore.
|
| |
|
| |
|
| |
|
|
|
|
| |
Register operands are required in this context.
|
| |
|
| |
|
| |
|
|
|
|
| |
Thanks Bob for the spot.
|
|\
| |
| |
| |
| | |
* PHP-7.1:
More int->size_t and string overflow fixes
|
| | |
|
|\ \
| |/
| |
| |
| | |
* PHP-7.0:
rename publicly exposed symbol to avoid name conflicts
|
| | |
|
|\ \
| |/
| |
| |
| |
| |
| | |
* PHP-7.0:
Fix outlen for openssl function
Syncronize with 5.6 - __toString should return ""
Fix potential overflows in php_pcre_replace_impl
|
| | |
|
| | |
|
|/ |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Detecting overflow with the XER is slow, partially because we have to
clear it before use. We can do better by using a trick where we compare
the high 64 bits of the result with the low 64 bits shifted right
63 bits.
This is 7% faster on a POWER8 running a simple testcase:
<?php
function testcase($count = 100000000) {
for ($i = 0; $i < $count; $i++) {
$x = 1;
$x = $x * 2;
$x = $x * 2;
$x = $x * 2;
$x = $x * 2;
}
}
testcase();
?>
|
|
|
|
|
| |
as the definitions are identical
refs b7eb3c1c5a858e98985adc2335df9b4a021ade51
|
| |
|
|
|
|
|
| |
Add a ppc64-specific implementation of the safe_address
function with overflow checking.
|
|
|
|
|
|
| |
In long integer multiplications, avoid casting
both operands to long double and use an inline
assembly-based overflow checking function instead.
|
| |
|
|
|
|
|
| |
Also drop ZEND_HAVE_LONG64, because we already require the
presence of a int64_t type.
|
| |
|
|
|
|
|
|
|
| |
This reverts commit 43b02e169c718335a82b8c90c3252194f988659a.
I'm getting symbol resolution issues for zend_error_noreturn in the
opcache.so, so reverting this for now.
|
|
|
|
|
|
|
| |
This allows reuse in zend_arena_calloc.
Also renamed the function to zend_safe_address as it's no longer
private to the allocator.
|
|
|
|
|
| |
Conflicts:
Zend/zend_multiply.h
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| | |
* PHP-5.4:
Fix bug #64729: compilation failure on x32
Conflicts:
Zend/zend_alloc.c
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
operations directly into executor.
|
| |
| |
| |
| |
| | |
- added ARM versions of zend_mm_high_bit()/zend_mm_low_bit()
- improved safe_address()
|
| | |
|
| | |
|
|/
|
|
| |
operations directly into executor.
|
| |
|
| |
|
| |
|
| |
|