Commit Graph
92638 Commits
Author SHA1 Message Date
Bob Weinand 9c02e83d4c Merge branch 'PHP-7.0' 2015-10-05 21:17:50 +02:00
Bob Weinand 8c33bdb976 Speed up self::method() calls (no ZEND_FETCH_CLASS) 2015-10-05 21:16:52 +02:00
Bob Weinand 2d4e8c44dd Merge branch 'PHP-7.0' 2015-10-05 17:54:14 +02:00
Bob Weinand 35d0405c47 Allow random $this on non-internal Closures again
As it turns out, there is actually no reason to prevent this, it even was a bigger BC break than expected...

Also fixes a memory leak (the Closure leaks) when calling internal functions via Closure by moving it out of leave helper onto caller side for TOP_CODE:

$z = new SplStack; $z->push(20);
$x = (new ReflectionMethod("SplStack", "pop"))->getClosure($z);
var_dump($x());
2015-10-05 17:49:32 +02:00
Bob Weinand b7826170dd Merge branch 'PHP-7.0'
Previous commit was a merge to the wrong branch... Cherry-Picked into PHP-7.0 and empty merge here
2015-10-05 14:50:52 +02:00
Bob Weinand a6be0f3fd6 Merge branch 'array_keys_strict_refs' of https://github.com/tony2001/php-src 2015-10-05 14:50:04 +02:00
Bob Weinand e57add0100 Merge branch 'array_keys_strict_refs' of https://github.com/tony2001/php-src 2015-10-05 14:45:15 +02:00
Antony Dovgal 9ac0a83101 add new tests for array_keys() function 2015-10-05 12:52:22 +03:00
Antony Dovgal d0c23bf03b fix array keys being too strict to refs
and add tests
2015-10-05 12:49:34 +03:00
Bob Weinand 746b37e2d5 Merge branch 'PHP-7.0' 2015-10-05 00:57:30 +02:00
Bob Weinand 881c502520 Improve 517b55362 (scope rebinding on method Closures)
Now it is completely impossible to rebind a scoped method Closure (only the kind you get from ReflectionMethod::getClosure()) to a foreign scope
Adding a lot of tests to ensure this...
Also, properly return NULL in case the Closure could not be created instead of some crippled unbound Closure
2015-10-05 00:56:55 +02:00
Anatol Belski 872e6666d0 Merge branch 'PHP-7.0'
* PHP-7.0:
  improve error message
2015-10-04 16:38:00 +02:00
Anatol Belski a549a3ac17 improve error message 2015-10-04 16:36:53 +02:00
Anatol Belski b4f08e50e8 Merge branch 'PHP-7.0'
* PHP-7.0:
  fix incrementing on 32-bit
  fix coverage report for datelib
2015-10-04 12:19:41 +02:00
Anatol Belski c97198e181 fix incrementing on 32-bit 2015-10-04 12:19:16 +02:00
Anatol Belski ee196c1527 Merge branch 'PHP-7.0'
* PHP-7.0:
  fix incrementing on 32-bit
2015-10-04 12:17:50 +02:00
Anatol Belski 96ac357581 fix incrementing on 32-bit 2015-10-04 12:16:54 +02:00
Nuno Lopes ba4a85b012 fix coverage report for datelib 2015-10-04 05:39:01 -04:00
Nuno Lopes 6709006457 fix coverage report for datelib 2015-10-04 05:36:47 -04:00
Xinchen Hui 050ce295a4 Merge branch 'PHP-7.0' 2015-10-03 23:16:56 -07:00
Xinchen Hui 2a54b02257 Merge branch 'PHP-5.6' into PHP-7.0 2015-10-03 23:16:38 -07:00
Xinchen Hui 2fb8bb1157 Fixed bug #70632 (Third one of segfault in gc_remove_from_buffer) 2015-10-03 20:33:24 -07:00
Xinchen Hui 6876112c89 Fixed the third one of (segfault in gc_remove_from_buffer())
This one maybe only used in debug mode, so no bug report and no test
script provided
2015-10-03 20:15:35 -07:00
Xinchen Hui 4744eec753 Fixed bug #70631 (Another Segfault in gc_remove_from_buffer()) 2015-10-03 20:08:21 -07:00
Xinchen Hui 925412ee1c Do not edit the zval cause it might be in shared memory 2015-10-03 19:50:38 -07:00
Xinchen Hui c147d90dbf Fixed bug #70601 (Segfault in gc_remove_from_buffer()) 2015-10-03 19:38:56 -07:00
Bob Weinand 5318c99411 Merge branch 'PHP-7.0' 2015-10-04 01:44:05 +02:00
Bob Weinand 517b553625 Fixed bug #70630 (Closure::call/bind() crash with ReflectionFunction->getClosure())
This additionally removes support for binding to an unknown (not in parent hierarchy) scope.
Removing support for cross-scope is necessary for certain compile-time assumptions (like class constants) to prevent unexpected results
2015-10-04 01:38:59 +02:00
Anatol Belski fc4687242b Merge branch 'PHP-7.0'
* PHP-7.0:
  remove useless checks
2015-10-03 11:00:24 +02:00
Anatol Belski 4cb6342426 remove useless checks
Other platforms than listed in the checks are not supported since
PHP 5.5. We also won't need these checks for a while, so can simplify.
2015-10-03 10:57:32 +02:00
Anatol Belski a551c9df3b Merge branch 'PHP-7.0'
* PHP-7.0:
  fix win10 support
2015-10-03 10:46:32 +02:00
Anatol Belski 96fe3be7f2 Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
  fix win10 support
2015-10-03 10:46:10 +02:00
Anatol Belski 83bef0ef83 fix win10 support
dwMajorVersion == 10 there, and generally this check is obsolete
as we don't support dwMajorVersion < 6 since 5.5
2015-10-03 10:44:43 +02:00
Nikita Popov cc5bb8cb8d Merge branch 'PHP-7.0' 2015-10-03 10:14:17 +02:00
Nikita Popov e892e2e253 Merge branch 'PHP-5.6' into PHP-7.0 2015-10-03 10:13:44 +02:00
Nikita Popov fe1933aae2 Fixed bug #70625 2015-10-03 10:12:11 +02:00
Ferenc Kovacs f39229a6b0 Merge branch 'PHP-7.0'
* PHP-7.0:
  Update NEWS file with LDAP fixes
2015-10-02 21:51:56 +02:00
Ferenc Kovacs b2988714aa Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
  Update NEWS file with LDAP fixes
2015-10-02 21:51:13 +02:00
Ferenc Kovacs 6f895a29c9 Merge branch 'pr-1544' into PHP-5.6
* pr-1544:
  Update NEWS file with LDAP fixes
2015-10-02 21:48:33 +02:00
Derick Rethans 5bcb171a71 Updated to version 2015.7 (2015g) 2015-10-02 18:12:19 +01:00
Derick Rethans f96d9370fb Empty merge 2015-10-02 18:12:19 +01:00
Derick Rethans a2f5619303 Updated to version 2015.7 (2015g) 2015-10-02 18:12:18 +01:00
Derick Rethans 60b5487897 Empty merge 2015-10-02 18:12:18 +01:00
Derick Rethans c08824fd72 Updated to version 2015.7 (2015g) 2015-10-02 18:12:16 +01:00
Xinchen Hui eb6ffde023 Merge branch 'PHP-7.0' 2015-10-02 07:26:17 -07:00
Xinchen Hui d6c9dc719e PHP7 is not affected 2015-10-02 07:26:04 -07:00
Xinchen Hui 340517e376 Merge branch 'PHP-7.0' 2015-10-02 07:21:52 -07:00
Xinchen Hui 83fea9461e Merge branch 'PHP-5.6' into PHP-7.0
Conflicts:
	ext/date/php_date.c
2015-10-02 07:21:07 -07:00
Xinchen Hui c98ea8465b Fixed bug #70619 (DateTimeImmutable segfault) 2015-10-02 07:19:21 -07:00
Bob Weinand f174b7de8b Merge branch 'PHP-7.0' 2015-10-02 12:51:45 +02:00