]>
granicus.if.org Git - php/log
Anatol Belski [Fri, 12 Sep 2014 22:03:42 +0000 (00:03 +0200)]
fix condition
A char array like val[1] would always be valid when checking like
!val. Probably better were to check for ->len, but actually ->val[0]
is fine as the actual zend_string should have been initalized
before.
Anatol Belski [Fri, 12 Sep 2014 21:27:55 +0000 (23:27 +0200)]
reduce the struct size by 8 byte on 64 bit
Anatol Belski [Fri, 12 Sep 2014 21:10:56 +0000 (23:10 +0200)]
reduce the struct size by 8 bytes on 64 bit
Anatol Belski [Fri, 12 Sep 2014 21:08:09 +0000 (23:08 +0200)]
reduce the struct size by 8 byte on x64
Anatol Belski [Fri, 12 Sep 2014 20:31:02 +0000 (22:31 +0200)]
fix possible null ptr deref
Anatol Belski [Fri, 12 Sep 2014 20:18:06 +0000 (22:18 +0200)]
fix possible nullptr derefrence
Anatol Belski [Fri, 12 Sep 2014 20:06:10 +0000 (22:06 +0200)]
reduce size by 8 byte on 64 bit
Anatol Belski [Fri, 12 Sep 2014 19:38:39 +0000 (21:38 +0200)]
fix ZTS build
Anatol Belski [Fri, 12 Sep 2014 19:31:25 +0000 (21:31 +0200)]
better align and reduce size by 8 byte on 64 bit
Anatol Belski [Fri, 12 Sep 2014 15:01:53 +0000 (17:01 +0200)]
fix test which fails if prevous run cleanup failed
Anatol Belski [Fri, 12 Sep 2014 14:43:05 +0000 (16:43 +0200)]
fix type
Anatol Belski [Fri, 12 Sep 2014 14:39:09 +0000 (16:39 +0200)]
fix type
Anatol Belski [Fri, 12 Sep 2014 14:37:55 +0000 (16:37 +0200)]
fix type
Anatol Belski [Fri, 12 Sep 2014 14:23:24 +0000 (16:23 +0200)]
reduce the struct size by 8 byte on 64 bit
Anatol Belski [Fri, 12 Sep 2014 14:22:42 +0000 (16:22 +0200)]
fix type
Anatol Belski [Fri, 12 Sep 2014 13:59:54 +0000 (15:59 +0200)]
better alignment, reduced the struct by 8 byte on 64 bit
Anatol Belski [Fri, 12 Sep 2014 13:51:39 +0000 (15:51 +0200)]
fix type
Xinchen Hui [Fri, 12 Sep 2014 18:00:15 +0000 (02:00 +0800)]
Forget to commit this part...
Xinchen Hui [Fri, 12 Sep 2014 17:52:47 +0000 (01:52 +0800)]
Finally!!! Fixed segfault in GC
this must not be the final fix, but let's stop the segfault first and
use this to indicate where the problem is.
reproduced by phpspec
Anatol Belski [Fri, 12 Sep 2014 12:03:06 +0000 (14:03 +0200)]
make this test a bit more tolerant when checking sleep time
Anatol Belski [Thu, 11 Sep 2014 11:12:54 +0000 (13:12 +0200)]
remove extra semicolon
Anatol Belski [Fri, 12 Sep 2014 12:37:54 +0000 (14:37 +0200)]
Merge branch 'PHP-5.6'
* PHP-5.6:
fixed the cast and incompatible pointer warning
Conflicts:
sapi/cgi/fastcgi.c
Anatol Belski [Fri, 12 Sep 2014 12:36:54 +0000 (14:36 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
fixed the cast and incompatible pointer warning
Anatol Belski [Fri, 12 Sep 2014 12:36:00 +0000 (14:36 +0200)]
fixed the cast and incompatible pointer warning
Anatol Belski [Thu, 11 Sep 2014 21:33:12 +0000 (23:33 +0200)]
Merge branch 'PHP-5.6'
* PHP-5.6:
reflect in the test that GSS-Negotiate is deprecated since libcurl 7.38.0
5.6.2 now
Conflicts:
configure.in
main/php_version.h
Anatol Belski [Thu, 11 Sep 2014 21:31:16 +0000 (23:31 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
reflect in the test that GSS-Negotiate is deprecated since libcurl 7.38.0
Anatol Belski [Thu, 11 Sep 2014 21:30:01 +0000 (23:30 +0200)]
reflect in the test that GSS-Negotiate is deprecated since libcurl 7.38.0
Julien Pauli [Thu, 11 Sep 2014 16:37:25 +0000 (18:37 +0200)]
5.6.2 now
Dmitry Stogov [Thu, 11 Sep 2014 15:12:12 +0000 (19:12 +0400)]
Fixed refcounting for references
Nikita Popov [Thu, 11 Sep 2014 14:27:53 +0000 (16:27 +0200)]
Don't show TEST line if SHOW_ONLY_GROUPS is used
Nikita Popov [Thu, 11 Sep 2014 14:05:39 +0000 (16:05 +0200)]
Fix ext/dba ini handling
Doing this change blindly based on gcov output
Dmitry Stogov [Thu, 11 Sep 2014 13:00:06 +0000 (17:00 +0400)]
Simplify ASSIGN code
Nikita Popov [Thu, 11 Sep 2014 12:51:02 +0000 (14:51 +0200)]
Fix yy_limit computation after encoding switch
The three assignments above this line are still broken - they assume
that byte offsets in one encoding directly map to byte offsets in
another encoding.
I'm fixing the length here because it is the one causing out-of-bounds
reads and is easy to fix. For the others we'd have to actually compute
new offsets.
Nikita Popov [Thu, 11 Sep 2014 12:04:15 +0000 (14:04 +0200)]
Remove self-contradictory zend multibyte assertion
Code that explicitly exists to handle an incompatible internal
encoding should not assert that the internal encoding is compatible.
Dmitry Stogov [Thu, 11 Sep 2014 08:29:54 +0000 (12:29 +0400)]
Removed ZEND_QM_ASSIGN_VAR and ZEND_JMP_SET_VAR opcodes (in PHPNG they did exacly the same as ZEND_QM_ASSIGN and ZEND_JMP_SET)
Dmitry Stogov [Thu, 11 Sep 2014 07:06:57 +0000 (11:06 +0400)]
Revert "Removing ext/ereg and dependencies"
This reverts commit
86de7963fe69638431c0aa8f413d25e01bf99d68 .
Dmitry Stogov [Thu, 11 Sep 2014 07:06:47 +0000 (11:06 +0400)]
Revert "Updated UPGRADING for ext/ereg removal"
This reverts commit
610ef5d7ecadb26a491aa9fc8ec7439e4016a3fc .
Tjerk Meesters [Wed, 10 Sep 2014 13:03:36 +0000 (21:03 +0800)]
Updated UPGRADING for ext/ereg removal
Tjerk Meesters [Thu, 28 Aug 2014 08:41:38 +0000 (16:41 +0800)]
Removing ext/ereg and dependencies
Affected extensions:
- opcache (use pcre)
- mbstring (removed ereg functions overloading)
- pgsql (use pcre)
- reflection (test cases using 'ereg')
SAPI:
- apache (header only)
- apache_hooks (header only)
Anatol Belski [Wed, 10 Sep 2014 17:32:25 +0000 (19:32 +0200)]
Merge branch 'PHP-5.6'
* PHP-5.6:
fix precision when fetching float through mysqlnd
Anatol Belski [Wed, 10 Sep 2014 17:31:59 +0000 (19:31 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
fix precision when fetching float through mysqlnd
Anatol Belski [Wed, 10 Sep 2014 17:29:11 +0000 (19:29 +0200)]
fix precision when fetching float through mysqlnd
fixes failing ext/mysqli/tests/010.phpt
Michael Wallner [Wed, 10 Sep 2014 11:31:39 +0000 (13:31 +0200)]
Merge branch 'PHP-5.6'
* PHP-5.6:
make LTP version check a blacklist
Michael Wallner [Wed, 10 Sep 2014 11:31:22 +0000 (13:31 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
make LTP version check a blacklist
Michael Wallner [Wed, 10 Sep 2014 11:30:52 +0000 (13:30 +0200)]
make LTP version check a blacklist
Anatol Belski [Wed, 10 Sep 2014 11:22:23 +0000 (13:22 +0200)]
replace zend_hash_find with zend_hash_str_find which fixes leaking the key
Anatol Belski [Wed, 10 Sep 2014 10:40:32 +0000 (12:40 +0200)]
second big shot on porting ext/oci8
still a lot to do, but most raw things done
Anatol Belski [Tue, 9 Sep 2014 19:50:26 +0000 (21:50 +0200)]
first shot on fixing ext/oci8
Anatol Belski [Tue, 9 Sep 2014 11:12:26 +0000 (13:12 +0200)]
basic datatype fixes for ext/oci8
Dmitry Stogov [Wed, 10 Sep 2014 09:02:01 +0000 (13:02 +0400)]
Don't miss warning messages
Matteo Beccati [Wed, 10 Sep 2014 05:32:36 +0000 (07:32 +0200)]
Merge branch 'PHP-5.6'
* PHP-5.6:
FR #67990 - Added nowait argument to sem_acquire
Matteo Beccati [Fri, 25 Jul 2014 09:21:47 +0000 (11:21 +0200)]
FR #67990 - Added nowait argument to sem_acquire
Stanislav Malyshev [Tue, 9 Sep 2014 23:20:20 +0000 (16:20 -0700)]
Merge branch 'PHP-5.6'
* PHP-5.6:
update NEWS
Stanislav Malyshev [Tue, 9 Sep 2014 23:11:32 +0000 (16:11 -0700)]
update NEWS
Daniel Lowrey [Tue, 9 Sep 2014 16:25:36 +0000 (10:25 -0600)]
Merge branch 'PHP-5.6'
* PHP-5.6:
Bug #41631: Fix regression from first attempt (
6569db8 )
Bug #67965: Fix blocking behavior in non-blocking crypto streams
Daniel Lowrey [Tue, 9 Sep 2014 16:24:40 +0000 (10:24 -0600)]
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
Bug #41631: Fix regression from first attempt (
6569db8 )
Bug #67965: Fix blocking behavior in non-blocking crypto streams
Daniel Lowrey [Tue, 9 Sep 2014 15:27:20 +0000 (09:27 -0600)]
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
Bug #41631: Fix regression from first attempt (
6569db8 )
Bug #67965: Fix blocking behavior in non-blocking crypto streams
Daniel Lowrey [Tue, 9 Sep 2014 13:50:15 +0000 (07:50 -0600)]
Bug #41631: Fix regression from first attempt (
6569db8 )
Daniel Lowrey [Tue, 9 Sep 2014 13:37:57 +0000 (07:37 -0600)]
Bug #67965: Fix blocking behavior in non-blocking crypto streams
Tjerk Meesters [Tue, 9 Sep 2014 11:32:09 +0000 (19:32 +0800)]
Merge branch 'PHP-5.6'
* PHP-5.6:
Fixed #67985 - Incorrect last used array index copied to new array after unset
Conflicts:
Zend/zend_variables.c
Tjerk Meesters [Tue, 9 Sep 2014 10:04:09 +0000 (18:04 +0800)]
Updated NEWS for #67985
Tjerk Meesters [Tue, 9 Sep 2014 10:03:10 +0000 (18:03 +0800)]
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
Fixed #67985 - Incorrect last used array index copied to new array after unset
Tjerk Meesters [Tue, 9 Sep 2014 10:02:45 +0000 (18:02 +0800)]
Updated NEWS for #67985
Tjerk Meesters [Tue, 9 Sep 2014 10:00:49 +0000 (18:00 +0800)]
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
Fixed #67985 - Incorrect last used array index copied to new array after unset
Tjerk Meesters [Tue, 9 Sep 2014 09:58:45 +0000 (17:58 +0800)]
Fixed #67985 - Incorrect last used array index copied to new array after unset
In master zend_array_dup() is used to do this properly; this is a workaround.
Michael Wallner [Tue, 9 Sep 2014 04:56:33 +0000 (06:56 +0200)]
Merge branch 'PHP-5.6'
* PHP-5.6:
duplicate value's string for the SAPI filter
Fine tuned the order of adding request variables.
Michael Wallner [Tue, 9 Sep 2014 04:54:23 +0000 (06:54 +0200)]
duplicate value's string for the SAPI filter
reported by sesser; tyrael, do you take care of the bug/NEWS?
George Wang [Tue, 9 Sep 2014 03:58:05 +0000 (23:58 -0400)]
Fine tuned the order of adding request variables.
George Wang [Tue, 9 Sep 2014 03:58:05 +0000 (23:58 -0400)]
Fine tuned the order of adding request variables.
George Wang [Tue, 9 Sep 2014 03:58:05 +0000 (23:58 -0400)]
Fine tuned the order of adding request variables.
George Wang [Tue, 9 Sep 2014 03:58:05 +0000 (23:58 -0400)]
Fine tuned the order of adding request variables.
Xinchen Hui [Tue, 9 Sep 2014 03:52:25 +0000 (11:52 +0800)]
Remove unnecessary branch/temp variable
Dmitry Stogov [Mon, 8 Sep 2014 20:50:44 +0000 (00:50 +0400)]
Don't anload zend extensions if ZEND_DONT_UNLOAD_MODULES environment variable is set
Dmitry Stogov [Mon, 8 Sep 2014 20:40:14 +0000 (00:40 +0400)]
We don't need to check for xlat entry twice
Dmitry Stogov [Mon, 8 Sep 2014 20:12:36 +0000 (00:12 +0400)]
Fixed GC problem (arrays may be recorded as possible root of garbage cycle. we have to clear this info before deleting array)
Adam Harvey [Mon, 8 Sep 2014 19:31:58 +0000 (19:31 +0000)]
Merge branch 'PHP-5.6'
* PHP-5.6:
Fix bug #67972 (SessionHandler Invalid memory read create_sid()).
Update LSAPI to 6.7, added support for 'filter_input'. Fixed a crash in CLI mode.
5.5.18 now
Adam Harvey [Mon, 8 Sep 2014 19:28:15 +0000 (19:28 +0000)]
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
Fix bug #67972 (SessionHandler Invalid memory read create_sid()).
Update LSAPI to 6.7, added support for 'filter_input'. Fixed a crash in CLI mode.
5.5.18 now
Conflicts:
configure.in
main/php_version.h
Adam Harvey [Mon, 8 Sep 2014 19:25:14 +0000 (19:25 +0000)]
Fix bug #67972 (SessionHandler Invalid memory read create_sid()).
SessionHandler::create_sid() didn't check if PS(default_mod) was initialised
before attempting to call its create_sid() handler.
Anatol Belski [Mon, 8 Sep 2014 18:34:26 +0000 (20:34 +0200)]
made Visual Studio to understand that zend_error_noreturn() will not return
- windows only, on linux gcc would cause a warning that the function returns,
as no noreturn functions are used
- ZEND_NORETURN works on windows as well now, using __declspec(noreturn),
which is useful for the other cases
- one more function call will be needed, which is not critical for the
error reporting
- the way is open to enable the same for gcc as soon as it's not causing a warning
Dmitry Stogov [Mon, 8 Sep 2014 12:24:46 +0000 (16:24 +0400)]
Added ability to make a number of "warmup" requests before an actual benchmark.
(php-cgi -T [<number-of-warmup-requests>,]<number-of-benchmark-requests> <file>)
Nikita Popov [Mon, 8 Sep 2014 11:50:53 +0000 (13:50 +0200)]
Fix parser stack destruction with dummy ENCAPSED_AND_WHITESPACE
T_ENCAPSED_AND_WHITESPACE is now specified to always hold a value,
so give it a NULL value in the dummy cases.
Dmitry Stogov [Mon, 8 Sep 2014 11:46:45 +0000 (15:46 +0400)]
Removed IS_STR_OFFSET type and corresponding macros. Optimized string offset handling in ASSIGN_DIM opcode.
Dmitry Stogov [Mon, 8 Sep 2014 07:08:05 +0000 (11:08 +0400)]
Fixed comments and removed useless code.
Anatol Belski [Sun, 7 Sep 2014 18:26:01 +0000 (20:26 +0200)]
fix null pointer deref
Anatol Belski [Sun, 7 Sep 2014 18:11:49 +0000 (20:11 +0200)]
fixed the tests, related to the basename behaviour, bug #66395
Anatol Belski [Sun, 7 Sep 2014 11:34:18 +0000 (13:34 +0200)]
fixed string index handling with references
Anatol Belski [Sat, 6 Sep 2014 22:54:47 +0000 (00:54 +0200)]
fix 64 bit string index usage
Nikita Popov [Sat, 6 Sep 2014 20:12:37 +0000 (22:12 +0200)]
Revert "Move safe_address into zend_multiply.h"
This reverts commit
43b02e169c718335a82b8c90c3252194f988659a .
I'm getting symbol resolution issues for zend_error_noreturn in the
opcache.so, so reverting this for now.
Nikita Popov [Sat, 6 Sep 2014 11:47:05 +0000 (13:47 +0200)]
Move safe_address into zend_multiply.h
This allows reuse in zend_arena_calloc.
Also renamed the function to zend_safe_address as it's no longer
private to the allocator.
Tjerk Meesters [Sat, 6 Sep 2014 11:14:43 +0000 (19:14 +0800)]
According to LSB 3.2, finite() has been deprecated with C99.
See: https://refspecs.linuxfoundation.org/LSB_3.2.0/LSB-Core-generic/LSB-Core-generic/baselib-finite.html
Changed the order in which we detect whether to use finite() or isfinite(), favouring the latter.
Tjerk Meesters [Sat, 6 Sep 2014 10:56:22 +0000 (18:56 +0800)]
Added test case to complement commit
29397f8
Nikita Popov [Sat, 6 Sep 2014 10:52:51 +0000 (12:52 +0200)]
Release memory for PDO Stmt ctor args
Nikita Popov [Sat, 6 Sep 2014 10:19:55 +0000 (12:19 +0200)]
Fix $x .= $x
Also add a nice comment pointing out that concat runs on magic.
Nikita Popov [Fri, 5 Sep 2014 18:29:50 +0000 (20:29 +0200)]
Fix ext/xml warnings
Dmitry Stogov [Fri, 5 Sep 2014 12:13:06 +0000 (16:13 +0400)]
Fixed overflow check
Nikita Popov [Fri, 5 Sep 2014 10:44:51 +0000 (12:44 +0200)]
Fix string increment
Dmitry Stogov [Fri, 5 Sep 2014 10:18:39 +0000 (14:18 +0400)]
Fixed support for C++
Nikita Popov [Fri, 5 Sep 2014 09:50:31 +0000 (11:50 +0200)]
Fix overflow check for string concatenation
Also do the overflow check for both branches, not just the realloc
one.
And clean up the code a bit - move common parts outside of the
realloc/alloc branches.
Nikita Popov [Fri, 5 Sep 2014 09:34:49 +0000 (11:34 +0200)]
Drop some unsafe-looking casting code from ext/socket
ZVAL_COPY before convert_to_string is probably not right.
Nikita Popov [Thu, 4 Sep 2014 23:03:29 +0000 (01:03 +0200)]
Remove old zend_string_to_double function