- Core:
. Fixed bug #70012 (Exception lost with nested finally block). (Laruence)
++- Standard:
++ . Fixed bug #70018 (exec does not strip all whitespace). (Laruence)
++
+09 Jul 2015, PHP 7.0.0 Beta 1
+
+- Core:
+ . Fixed bug #70006 (cli - function with default arg = STDOUT crash output).
+ (Laruence)
+ . Fixed bug #69521 (Segfault in gc_collect_cycles()).
+ (arjen at react dot com, Laruence)
+ . Improved zend_string API (Francois Laupretre)
+ . Fixed bug #69955 (Segfault when trying to combine [] and assign-op on
+ ArrayAccess object). (Laruence)
+ . Fixed bug #69957 (Different ways of handling div/mod/intdiv). (Bob)
+ . Fixed bug #69900 (Too long timeout on pipes). (Anatol)
+ . Fixed bug #62210 (Exceptions can leak temporary variables. As a part of
+ the fix serious refactoring was done. op_array->brk_cont_array was removed,
+ and replaced with more general and speed efficient op_array->T_liveliness.
+ ZEND_GOTO opcode is always replaced by ZEND_JMP at compile time).
+ (Bob, Dmitry, Laruence)
+
- CLI server:
. Fixed bug #69655 (php -S changes MKCALENDAR request method to MKCOL). (cmb)
. Fixed bug #64878 (304 responses return Content-Type header). (cmb)
} else if (type == 2) {
/* strip trailing whitespaces */
l = bufl;
- while (l >= 1 && l-- && isspace(((unsigned char *)buf)[l]));
- while (--l >= 0 && isspace(((unsigned char *)buf)[l]));
- if (l != (int)(bufl - 1)) {
++ while (l-- > 0 && isspace(((unsigned char *)buf)[l]));
+ if (l != (bufl - 1)) {
bufl = l + 1;
buf[bufl] = '\0';
}
/* strip trailing whitespaces if we have not done so already */
if ((type == 2 && buf != b) || type != 2) {
l = bufl;
- while (l >= 1 && l-- && isspace(((unsigned char *)buf)[l]));
- while (--l >= 0 && isspace(((unsigned char *)buf)[l]));
- if (l != (int)(bufl - 1)) {
++ while (l-- > 0 && isspace(((unsigned char *)buf)[l]));
+ if (l != (bufl - 1)) {
bufl = l + 1;
buf[bufl] = '\0';
}