]> granicus.if.org Git - php/log
php
9 years agoMerge branch 'pull-request/1239'
Stanislav Malyshev [Sun, 19 Apr 2015 03:45:16 +0000 (20:45 -0700)]
Merge branch 'pull-request/1239'

* pull-request/1239:
  fixes confusing SQLDescribeParam error message

9 years agoMerge branch 'pull-request/1238'
Stanislav Malyshev [Sun, 19 Apr 2015 02:51:22 +0000 (19:51 -0700)]
Merge branch 'pull-request/1238'

* pull-request/1238:
  apply a patch

9 years agoMerge branch 'pull-request/1235'
Stanislav Malyshev [Sun, 19 Apr 2015 02:34:52 +0000 (19:34 -0700)]
Merge branch 'pull-request/1235'

* pull-request/1235:
  modify skeleton confirm_extname_compiled
  modify skeleton.c function

9 years agoMerge branch 'pull-request/1203'
Stanislav Malyshev [Sun, 19 Apr 2015 02:32:14 +0000 (19:32 -0700)]
Merge branch 'pull-request/1203'

* pull-request/1203:
  Update openssl.c

9 years agoMerge branch 'PHP-5.6'
Stanislav Malyshev [Sun, 19 Apr 2015 00:57:18 +0000 (17:57 -0700)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Remove unused code from ext/json.

Conflicts:
ext/json/config.m4
ext/json/config.w32
ext/json/json.dsp
ext/json/package.xml

9 years agoMerge remote-tracking branch 'github/pr/637' into PHP-5.6
Stanislav Malyshev [Sun, 19 Apr 2015 00:51:42 +0000 (17:51 -0700)]
Merge remote-tracking branch 'github/pr/637' into PHP-5.6

* github/pr/637:
  Remove unused code from ext/json.

9 years agoRestore fix for bug #69337
Stanislav Malyshev [Fri, 17 Apr 2015 05:31:13 +0000 (22:31 -0700)]
Restore fix for bug #69337

9 years agoPartially enable leak reports for objects
Nikita Popov [Fri, 17 Apr 2015 10:37:51 +0000 (12:37 +0200)]
Partially enable leak reports for objects

Cycle leaks are currently not reported, because this needs further
work.

The last GC run has been moved to run earlier (before the object
store free), so that array cycles that hold references to objects
don't show up as leaks. Fingers crossed that this doesn't adversely
affect anything else.

9 years agoFix intdiv() test
Nikita Popov [Sat, 18 Apr 2015 15:30:28 +0000 (17:30 +0200)]
Fix intdiv() test

9 years agoBetter throw an exception in intdiv() for PHP_INT_MIN/-1
Bob Weinand [Sat, 18 Apr 2015 13:50:29 +0000 (15:50 +0200)]
Better throw an exception in intdiv() for PHP_INT_MIN/-1

9 years agoFix CALL_TRAMPOLINE without global regs
Nikita Popov [Sat, 18 Apr 2015 13:43:14 +0000 (15:43 +0200)]
Fix CALL_TRAMPOLINE without global regs

The opline needs to be loaded here in any case. However
LOAD_OPLINE() is a no-op if global VM registers are not used.

9 years agoMerge branch 'PHP-5.6'
Remi Collet [Sat, 18 Apr 2015 08:00:24 +0000 (10:00 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  relax tests with huge year (new zic)

9 years agorelax tests with huge year (new zic)
Remi Collet [Sat, 18 Apr 2015 08:00:15 +0000 (10:00 +0200)]
relax tests with huge year (new zic)

9 years agoMerge branch 'PHP-5.6'
Remi Collet [Sat, 18 Apr 2015 07:41:49 +0000 (09:41 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  ignore second value for huge timestamp test (new zic)

Conflicts:
ext/date/tests/getdate_variation7.phpt

9 years agoignore second value for huge timestamp test (new zic)
Remi Collet [Sat, 18 Apr 2015 07:37:06 +0000 (09:37 +0200)]
ignore second value for huge timestamp test (new zic)

9 years agoMerge branch 'PHP-5.6'
Remi Collet [Sat, 18 Apr 2015 07:28:39 +0000 (09:28 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  relax test for date < INT32_MIN (new zic)

9 years agorelax test for date < INT32_MIN (new zic)
Remi Collet [Sat, 18 Apr 2015 07:28:29 +0000 (09:28 +0200)]
relax test for date < INT32_MIN (new zic)

9 years agoMerge branch 'PHP-5.6'
Remi Collet [Sat, 18 Apr 2015 07:11:48 +0000 (09:11 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  relax bigbang content (new zic)

9 years agorelax bigbang content (new zic)
Remi Collet [Sat, 18 Apr 2015 07:11:39 +0000 (09:11 +0200)]
relax bigbang content (new zic)

9 years agoMerge branch 'PHP-5.6'
Remi Collet [Sat, 18 Apr 2015 05:50:31 +0000 (07:50 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Make date transitions tests more flexible

9 years agoMake date transitions tests more flexible
Remi Collet [Sat, 18 Apr 2015 05:47:47 +0000 (07:47 +0200)]
Make date transitions tests more flexible

zic in recent glibc (2.20) introduce a new transitionn
so use a range to avoid failure when total number
of transitions is different (243/244)

9 years agoFix memory error when throwing into a generator
Nikita Popov [Fri, 17 Apr 2015 20:19:41 +0000 (22:19 +0200)]
Fix memory error when throwing into a generator

throw_exception_internal will access opline+1, which is not always
defined at the current opline of the generator. To avoid this
decrement the opline before throwing (so the throw occurs at the
YIELD opcode instead of one after it).

9 years agoFix filter_var leak of object without __toString()
Nikita Popov [Fri, 17 Apr 2015 09:16:31 +0000 (11:16 +0200)]
Fix filter_var leak of object without __toString()

9 years agoInitialize VAR_FLAGS for generators
Nikita Popov [Fri, 17 Apr 2015 19:50:36 +0000 (21:50 +0200)]
Initialize VAR_FLAGS for generators

9 years agoMerge branch 'PHP-5.6'
Hannes Magnusson [Fri, 17 Apr 2015 17:14:31 +0000 (10:14 -0700)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  phpweb now publishes SHA256s -- and please don't cc php-announce@ - make it seperate mail
  Fixed res leak

9 years agoMerge branch 'PHP-5.5' into PHP-5.6
Hannes Magnusson [Fri, 17 Apr 2015 17:14:12 +0000 (10:14 -0700)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  phpweb now publishes SHA256s -- and please don't cc php-announce@ - make it seperate mail
  Fixed res leak

9 years agoMerge branch 'PHP-5.4' into PHP-5.5
Hannes Magnusson [Fri, 17 Apr 2015 17:06:31 +0000 (10:06 -0700)]
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  phpweb now publishes SHA256s -- and please don't cc php-announce@ - make it seperate mail
  Fixed res leak

9 years agophpweb now publishes SHA256s -- and please don't cc php-announce@ - make it seperate...
Hannes Magnusson [Fri, 17 Apr 2015 17:05:32 +0000 (10:05 -0700)]
phpweb now publishes SHA256s -- and please don't cc php-announce@ - make it seperate mail

9 years agoAdded test
Dmitry Stogov [Fri, 17 Apr 2015 15:45:46 +0000 (18:45 +0300)]
Added test

9 years agoMerge branch 'master' of git.php.net:php-src
Dmitry Stogov [Fri, 17 Apr 2015 15:38:03 +0000 (18:38 +0300)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  fix column name attribute with ODBC 3.0
  migrate SQLAllocStmt for ODBC 3.0 compliance

9 years agoChange the GC approach to inner-loops handling. Switch to less efficient but more...
Dmitry Stogov [Fri, 17 Apr 2015 15:35:57 +0000 (18:35 +0300)]
Change the GC approach to inner-loops handling. Switch to less efficient but more robust algorithm. Destructors handling is still not completely accurate.

9 years agoMerge branch 'PHP-5.6'
Anatol Belski [Fri, 17 Apr 2015 15:14:18 +0000 (17:14 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  fix column name attribute with ODBC 3.0
  migrate SQLAllocStmt for ODBC 3.0 compliance

9 years agoMerge branch 'PHP-5.5' into PHP-5.6
Anatol Belski [Fri, 17 Apr 2015 15:13:45 +0000 (17:13 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  fix column name attribute with ODBC 3.0
  migrate SQLAllocStmt for ODBC 3.0 compliance

9 years agofix column name attribute with ODBC 3.0
Anatol Belski [Fri, 17 Apr 2015 15:10:46 +0000 (17:10 +0200)]
fix column name attribute with ODBC 3.0

9 years agomigrate SQLAllocStmt for ODBC 3.0 compliance
Anatol Belski [Fri, 17 Apr 2015 14:09:35 +0000 (16:09 +0200)]
migrate SQLAllocStmt for ODBC 3.0 compliance

9 years agoMerge branch 'PHP-5.6'
Remi Collet [Fri, 17 Apr 2015 13:21:03 +0000 (15:21 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  skip test when xml not available

9 years agoskip test when xml not available
Remi Collet [Fri, 17 Apr 2015 13:20:22 +0000 (15:20 +0200)]
skip test when xml not available

9 years agoFix Intl constructor leaks
Nikita Popov [Fri, 17 Apr 2015 08:26:26 +0000 (10:26 +0200)]
Fix Intl constructor leaks

Drop the Z_OBJ(return_value) = NULL hack and return status code
from ctor function instead.

9 years agoFix leak in transliterator_transliterate()
Nikita Popov [Fri, 17 Apr 2015 07:56:48 +0000 (09:56 +0200)]
Fix leak in transliterator_transliterate()

9 years agoFix leak in IntlDateFormatter::getTimeZone()
Nikita Popov [Thu, 16 Apr 2015 19:51:47 +0000 (21:51 +0200)]
Fix leak in IntlDateFormatter::getTimeZone()

9 years agoFix leak in IntlCalendar::fromDateTime()
Nikita Popov [Thu, 16 Apr 2015 19:43:19 +0000 (21:43 +0200)]
Fix leak in IntlCalendar::fromDateTime()

9 years agoAdded GC checks and improvements
Dmitry Stogov [Fri, 17 Apr 2015 00:55:37 +0000 (03:55 +0300)]
Added GC checks and improvements

9 years agoFixed memory-leak
Dmitry Stogov [Thu, 16 Apr 2015 22:27:54 +0000 (01:27 +0300)]
Fixed memory-leak

9 years agoFix leak of Pdo object if query() fails
Nikita Popov [Thu, 16 Apr 2015 19:00:41 +0000 (21:00 +0200)]
Fix leak of Pdo object if query() fails

Decref the DBH object when storing the errored query statement --
the DBH owns the stmt, so it will live long enough.

9 years agoFix leak of FETCH_INTO object
Nikita Popov [Thu, 16 Apr 2015 16:21:59 +0000 (18:21 +0200)]
Fix leak of FETCH_INTO object

9 years agoFix PdoRow leak
Nikita Popov [Thu, 16 Apr 2015 16:04:09 +0000 (18:04 +0200)]
Fix PdoRow leak

PdoStatement should only hold a weakref to the PdoRow.

9 years agoSafe destruction (variables and arguments may need to be cuptured by exception)
Dmitry Stogov [Thu, 16 Apr 2015 18:45:40 +0000 (21:45 +0300)]
Safe destruction (variables and arguments may need to be cuptured by exception)

9 years ago"C" is the default locale
Dmitry Stogov [Thu, 16 Apr 2015 18:44:50 +0000 (21:44 +0300)]
"C" is the default locale

9 years agoMerge branch 'master' of https://git.php.net/push/php-src
Kalle Sommer Nielsen [Thu, 16 Apr 2015 14:37:56 +0000 (16:37 +0200)]
Merge branch 'master' of https://git.php.net/push/php-src

9 years agoFixed Windows build after Dmitry's smart_str change
Kalle Sommer Nielsen [Thu, 16 Apr 2015 14:37:00 +0000 (16:37 +0200)]
Fixed Windows build after Dmitry's smart_str change

9 years agoMerge branch 'PHP-5.6'
Nikita Popov [Thu, 16 Apr 2015 14:31:53 +0000 (16:31 +0200)]
Merge branch 'PHP-5.6'

Conflicts:
ext/gmp/gmp.c

9 years agoRun gmp_random tests more quickly
Nikita Popov [Thu, 16 Apr 2015 14:29:57 +0000 (16:29 +0200)]
Run gmp_random tests more quickly

9 years agoNormalize gmp_remroot() behavior to GMP 5.1
Nikita Popov [Thu, 16 Apr 2015 14:27:42 +0000 (16:27 +0200)]
Normalize gmp_remroot() behavior to GMP 5.1

9 years agoFix leak in gmp_pow()
Nikita Popov [Thu, 16 Apr 2015 14:00:31 +0000 (16:00 +0200)]
Fix leak in gmp_pow()

9 years agoFix leak in gmp_pow()
Nikita Popov [Thu, 16 Apr 2015 14:00:31 +0000 (16:00 +0200)]
Fix leak in gmp_pow()

9 years agoImplement GC for spl dll
Nikita Popov [Thu, 16 Apr 2015 13:13:15 +0000 (15:13 +0200)]
Implement GC for spl dll

As far as I can discern this should be safe, because the rc on the
linked list elements is only > 1 if an iterator points to it and
the iterator will also hold a reference to the list object.

The implementation for mangagement of the GC array is the same as
with the spl object storage.

9 years agoUse temporary debug_info for closures
Nikita Popov [Thu, 16 Apr 2015 08:01:55 +0000 (10:01 +0200)]
Use temporary debug_info for closures

9 years agoDrop unused is_self member
Nikita Popov [Thu, 16 Apr 2015 07:56:46 +0000 (09:56 +0200)]
Drop unused is_self member

9 years agoMicro optimizations for the more frequently paths
Dmitry Stogov [Thu, 16 Apr 2015 11:46:54 +0000 (14:46 +0300)]
Micro optimizations for the more frequently paths

9 years agoChanged zend_smart_str allocation granularity to do the better job together with...
Dmitry Stogov [Thu, 16 Apr 2015 11:45:08 +0000 (14:45 +0300)]
Changed zend_smart_str allocation granularity to do the better job together with Zend MM and avoid useless calls to erealloc().
The actual reallocation routiones are seprated from inlined code to reduce code size.

9 years agoRevert "Changed zend_smart_str allocation granularity to do the better job together...
Dmitry Stogov [Thu, 16 Apr 2015 10:11:54 +0000 (13:11 +0300)]
Revert "Changed zend_smart_str allocation granularity to do the better job together with Zend MM and avoid useless calls to erealloc()." That commit significantly increased the code size because of intensive inlining and more expensive reallocation code.

This reverts commit 5275e5560bb186bc3950a0dbf15fe0e54ee4c6ec.

9 years agoChanged zend_smart_str allocation granularity to do the better job together with...
Dmitry Stogov [Thu, 16 Apr 2015 09:32:56 +0000 (12:32 +0300)]
Changed zend_smart_str allocation granularity to do the better job together with Zend MM and avoid useless calls to erealloc().

9 years agoMark call frames to closures with ZEND_CALL_CLOSURE flag to avoid expensive check...
Dmitry Stogov [Thu, 16 Apr 2015 09:16:03 +0000 (12:16 +0300)]
Mark call frames to closures with ZEND_CALL_CLOSURE flag to avoid expensive check at zend_leave_helper()

9 years agoRemove duplicated assignment
Xinchen Hui [Thu, 16 Apr 2015 03:58:50 +0000 (11:58 +0800)]
Remove duplicated assignment

9 years agofixes confusing SQLDescribeParam error message
Christoph M. Becker [Thu, 16 Apr 2015 02:12:11 +0000 (04:12 +0200)]
fixes confusing SQLDescribeParam error message

9 years agoAdd list of reserved classes to UPGRADING
Nikita Popov [Wed, 15 Apr 2015 20:37:51 +0000 (22:37 +0200)]
Add list of reserved classes to UPGRADING

9 years agoAdd test for recursive __debugInfo()
Nikita Popov [Wed, 15 Apr 2015 20:32:19 +0000 (22:32 +0200)]
Add test for recursive __debugInfo()

This also got fixed by switching to object apply count.

9 years agoRemove some redundant exception checking/continuing VM instructions
Bob Weinand [Wed, 15 Apr 2015 20:17:12 +0000 (22:17 +0200)]
Remove some redundant exception checking/continuing VM instructions

9 years agoAdd GC support to SPL heap and PQ
Nikita Popov [Wed, 15 Apr 2015 19:40:41 +0000 (21:40 +0200)]
Add GC support to SPL heap and PQ

ctor/dtor are now no longer called for insert/delete_top operations,
only for cloning and freeing of the object. Otherwise elements will
have a minimum rc of 2 and GC won't be able to free them.

9 years agoUse object apply count in var_dump / print_r
Nikita Popov [Wed, 15 Apr 2015 19:07:34 +0000 (21:07 +0200)]
Use object apply count in var_dump / print_r

Instead of using the array apply count on the debug_info array, use
the object apply count for recursion detection when dumping. This
handles recursion in a more generic way and does not require each
debug_info handler to deal with this.

This allows returning a temporary debug_info array, instead of
having to store it in the object (thus delaying destruction of the
values).

Switch SPL debug_info handlers to use a temporary array.

9 years agoFix bug #69458
Bob Weinand [Wed, 15 Apr 2015 19:56:11 +0000 (21:56 +0200)]
Fix bug #69458

9 years agoFix object leak for yield from (added proper refcounting)
Bob Weinand [Wed, 15 Apr 2015 19:41:29 +0000 (21:41 +0200)]
Fix object leak for yield from (added proper refcounting)

9 years agoForgot to transform some errors to engine exceptions
Bob Weinand [Tue, 14 Apr 2015 17:53:16 +0000 (19:53 +0200)]
Forgot to transform some errors to engine exceptions

9 years agoReturn null on zpp failure in Array::exchangeArray()
Nikita Popov [Wed, 15 Apr 2015 18:43:41 +0000 (20:43 +0200)]
Return null on zpp failure in Array::exchangeArray()

Method was still returning a value despite zpp failing previously...

9 years agoRemove unnecessary retval members in SPL
Nikita Popov [Wed, 15 Apr 2015 18:26:23 +0000 (20:26 +0200)]
Remove unnecessary retval members in SPL

This is what the rv params are for. Avoid holding onto values
longer than necessary.

9 years agoMerge branch 'PHP-5.6'
Ferenc Kovacs [Wed, 15 Apr 2015 18:04:47 +0000 (20:04 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  this was reverted

9 years agothis was reverted
Ferenc Kovacs [Wed, 15 Apr 2015 18:04:03 +0000 (20:04 +0200)]
this was reverted

9 years agoFix leak in RecursiveRegexIterator::getChildren()
Nikita Popov [Wed, 15 Apr 2015 18:01:16 +0000 (20:01 +0200)]
Fix leak in RecursiveRegexIterator::getChildren()

9 years agoMerge branch 'PHP-5.6'
Ferenc Kovacs [Wed, 15 Apr 2015 18:01:13 +0000 (20:01 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  66550 will be part of 5.6.8
  66550 will be part of 5.5.24

9 years agoMerge branch 'master' of git.php.net:php-src
Dmitry Stogov [Wed, 15 Apr 2015 17:55:38 +0000 (20:55 +0300)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  Fix leaks in recursive iterator construction

9 years agoMerge branch 'PHP-5.5' into PHP-5.6
Ferenc Kovacs [Wed, 15 Apr 2015 17:54:30 +0000 (19:54 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  66550 will be part of 5.5.24

9 years ago66550 will be part of 5.6.8
Ferenc Kovacs [Wed, 15 Apr 2015 17:54:25 +0000 (19:54 +0200)]
66550 will be part of 5.6.8

9 years ago66550 will be part of 5.5.24
Ferenc Kovacs [Wed, 15 Apr 2015 17:53:38 +0000 (19:53 +0200)]
66550 will be part of 5.5.24

9 years agoeliminate unnecessary EX(opline) <-> opline reloading
Dmitry Stogov [Wed, 15 Apr 2015 17:53:27 +0000 (20:53 +0300)]
eliminate unnecessary EX(opline) <-> opline reloading

9 years agoFix leaks in recursive iterator construction
Nikita Popov [Wed, 15 Apr 2015 17:49:50 +0000 (19:49 +0200)]
Fix leaks in recursive iterator construction

9 years agoMerge branch 'PHP-5.6'
Ferenc Kovacs [Wed, 15 Apr 2015 16:53:39 +0000 (18:53 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  reorder entries, Core is always the first block

9 years agoreorder entries, Core is always the first block
Ferenc Kovacs [Wed, 15 Apr 2015 16:53:22 +0000 (18:53 +0200)]
reorder entries, Core is always the first block

9 years agoMerge branch 'PHP-5.6'
Ferenc Kovacs [Wed, 15 Apr 2015 16:39:30 +0000 (18:39 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  add missing NEWS entry
  add missing space to the NEWS entries to align properly

9 years agoadd missing NEWS entry
Ferenc Kovacs [Wed, 15 Apr 2015 16:39:16 +0000 (18:39 +0200)]
add missing NEWS entry

9 years agoadd missing space to the NEWS entries to align properly
Ferenc Kovacs [Wed, 15 Apr 2015 16:38:48 +0000 (18:38 +0200)]
add missing space to the NEWS entries to align properly

9 years agoMerge branch 'PHP-5.6'
Ferenc Kovacs [Wed, 15 Apr 2015 16:37:20 +0000 (18:37 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  add missing space to the NEWS entries to align properly

9 years agoadd missing space to the NEWS entries to align properly
Ferenc Kovacs [Wed, 15 Apr 2015 16:36:52 +0000 (18:36 +0200)]
add missing space to the NEWS entries to align properly

9 years agofix possible int overflow
Anatol Belski [Wed, 15 Apr 2015 14:11:35 +0000 (16:11 +0200)]
fix possible int overflow

9 years agofix datatype mismatches
Anatol Belski [Wed, 15 Apr 2015 14:06:46 +0000 (16:06 +0200)]
fix datatype mismatches

9 years agooptimize structs
Anatol Belski [Wed, 15 Apr 2015 14:02:15 +0000 (16:02 +0200)]
optimize structs

9 years agofix data type and 64-bit compat
Anatol Belski [Wed, 15 Apr 2015 11:44:12 +0000 (13:44 +0200)]
fix data type and 64-bit compat

9 years agoMerge branch 'PHP-5.6'
Remi Collet [Wed, 15 Apr 2015 15:38:01 +0000 (17:38 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  bump zip release to match pecl version

9 years agobump zip release to match pecl version
Remi Collet [Wed, 15 Apr 2015 15:37:12 +0000 (17:37 +0200)]
bump zip release to match pecl version

9 years agoOptimization of stack-frame construction
Dmitry Stogov [Wed, 15 Apr 2015 14:02:21 +0000 (17:02 +0300)]
Optimization of stack-frame construction

9 years agoMerge branch 'PHP-5.6'
Julien Pauli [Wed, 15 Apr 2015 12:41:41 +0000 (14:41 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Updated NEWS