Nikita Popov
f3b61b706f
Merge branch 'PHP-7.0'
2016-03-11 22:45:52 +01:00
Nikita Popov
02743f43c2
Fixed bug #71806
2016-03-11 22:45:38 +01:00
Nikita Popov
d9f0c8429d
Merge branch 'PHP-7.0'
2016-03-11 22:28:50 +01:00
Grigorii Sokolik
ccc5150f15
Fix bug #71767
2016-03-11 22:27:48 +01:00
Dmitry Stogov
7f80514aa1
Added ability to avoid code generation for useless opcode handlers.
...
- SPEC(NO_CONST_CONST) may prevent codegeneration for handlers like ADD_SPEC_CONST_CONST. Compiler and optimizaer should care about constants folding.
- SPEC(COMMUTATIVE) generate only single handler instead of two eqivalents like ADD_SPEC_CONST_CV and ADD_SPEC_CV_CONST. Compiler and optimizer should care avout operands swapping.
2016-03-11 16:51:06 +03:00
Dmitry Stogov
afb80df631
Allow usage of "TMPVARCV" pattern for cases when there is no difference in handling for TMP, VAR and CV operands.
2016-03-11 13:38:53 +03:00
Dmitry Stogov
827a7a180b
Added possibility for extra specialization for SMART_BRANCH (e.g. IS_EQUAL+JMPZ superinstruction).
2016-03-11 12:17:03 +03:00
Anatol Belski
d5cf1a13b9
Merge branch 'PHP-7.0'
...
* PHP-7.0:
fix build with clang on Winodws
2016-03-10 17:11:42 +01:00
Anatol Belski
741bfe3932
fix build with clang on Winodws
2016-03-10 15:30:20 +01:00
Dmitry Stogov
ff8337b783
Merge branch 'PHP-7.0'
...
* PHP-7.0:
More effecient fix for bug #71756
2016-03-10 13:34:00 +03:00
Dmitry Stogov
f8506c062f
More effecient fix for bug #71756
2016-03-10 13:33:36 +03:00
Xinchen Hui
a468901e97
Merge branch 'PHP-7.0'
...
* PHP-7.0:
Improve the codes (FETCH_DIM_R/IS is read context, we should not expose IS_REFERENCE)
2016-03-10 15:10:26 +08:00
Xinchen Hui
675c295722
Improve the codes (FETCH_DIM_R/IS is read context, we should not expose IS_REFERENCE)
2016-03-10 15:09:51 +08:00
Xinchen Hui
4c388004d4
Merge branch 'PHP-7.0'
...
* PHP-7.0:
Fixed bug #71754 (Regression in PHP7.0: trivial script segfaults php-cgi)
Bug #71756 (Call-by-reference widens scope to uninvolved functions when used in switch)
tsrm_win32_get_path_sid_key might returns NULL (Partially fix bug #71752 )
2016-03-10 15:03:25 +08:00
Xinchen Hui
9833c76d3f
Bug #71756 (Call-by-reference widens scope to uninvolved functions when used in switch)
2016-03-10 14:58:10 +08:00
Xinchen Hui
7d5f71b0b1
tsrm_win32_get_path_sid_key might returns NULL (Partially fix bug #71752 )
2016-03-10 14:24:13 +08:00
Francois Laupretre
370b7039e4
Add support for negative string offsets (syntax)
2016-03-09 14:41:37 +01:00
Xinchen Hui
352456ed9a
Merge branch 'PHP-7.0'
...
* PHP-7.0:
Fixed bug #71729 (Possible crash in zend_bin_strtod, zend_oct_strtod, zend_hex_strtod)
2016-03-09 12:16:46 +08:00
Xinchen Hui
9aa73d3800
Fixed bug #71729 (Possible crash in zend_bin_strtod, zend_oct_strtod, zend_hex_strtod)
2016-03-09 12:16:24 +08:00
Nikita Popov
35b34d7235
Merge branch 'PHP-7.0'
...
Conflicts:
Zend/zend_language_scanner.c
2016-03-06 21:39:20 +01:00
Nikita Popov
860dc17ab7
Fixed bug #71724
2016-03-06 21:38:21 +01:00
Anatol Belski
b360ba651d
fix initializer for empty_fcall_info
2016-03-04 10:57:38 +01:00
Nikita Popov
1ce0187659
Bump API numbers
...
Otherwise can't distinguish 7.0 and 7.1. Gotta add those #if's for
the FCI change...
2016-03-03 17:02:51 +01:00
Nikita Popov
f57c0b3249
Merge branch 'PHP-7.0'
2016-03-03 16:50:47 +01:00
Nikita Popov
1ac152938c
Move semicolon into TSRMLS_CACHE_EXTERN/DEFINE
...
Also re bug #71575 .
2016-03-03 16:50:01 +01:00
Dmitry Stogov
c67c166f93
Removed zend_fcall_info.symbol_table
2016-03-02 17:50:55 +03:00
Dmitry Stogov
960b3755b3
Merge branch 'PHP-7.0'
...
* PHP-7.0:
PHP-7 zend_call_function() doesn't support symbol_table substitution
2016-03-02 16:57:08 +03:00
Dmitry Stogov
908b662f7f
PHP-7 zend_call_function() doesn't support symbol_table substitution
2016-03-02 16:56:39 +03:00
Dmitry Stogov
701edb8c82
Merge branch 'PHP-7.0'
...
* PHP-7.0:
Better fix for IS_INDIRECT support in zend_hash_merge()
2016-03-02 15:09:50 +03:00
Dmitry Stogov
b6bbe33f05
Better fix for IS_INDIRECT support in zend_hash_merge()
2016-03-02 15:09:04 +03:00
Dmitry Stogov
e66ac376cf
Merge branch 'PHP-7.0'
...
* PHP-7.0:
Introduce zend_symtable_exists_ind() for API consistency
2016-03-02 11:54:44 +03:00
Dmitry Stogov
ab800642df
Introduce zend_symtable_exists_ind() for API consistency
2016-03-02 11:53:47 +03:00
Xinchen Hui
f4f140c05d
Merge branch 'PHP-7.0'
...
* PHP-7.0:
Use hash_exists_ind in symbol table
2016-03-02 12:12:12 +08:00
Xinchen Hui
2d4186dde7
Use hash_exists_ind in symbol table
2016-03-02 12:11:13 +08:00
Xinchen Hui
b17d2ad5f6
Merge branch 'PHP-7.0'
...
* PHP-7.0:
Fixed bug #71695 (Global variables are reserved before execution).
2016-03-01 19:21:16 +08:00
Xinchen Hui
186844be92
Fixed bug #71695 (Global variables are reserved before execution).
...
Instead of slow down hash_merge, we may also check the array(whether it
contains INDIRECT) outside of the loop, however, consisdering hash_merge
is not widly used, I prefer fix this in the current way to keep the
codes simple
2016-03-01 19:19:07 +08:00
Dmitry Stogov
2e94cba430
Use quick check for first arguments
2016-02-26 21:44:28 +03:00
Nikita Popov
a1c9bd8803
Merge branch 'PHP-7.0'
2016-02-24 22:35:14 +01:00
Nikita Popov
b657554585
Fix typo in foreach_017.phpt
2016-02-24 22:34:50 +01:00
Nikita Popov
55c0de8f95
Merge branch 'PHP-7.0'
2016-02-24 17:44:33 +01:00
Nikita Popov
3ea877ca15
Fix "Call to member function on unknown"
...
Should be "on null".
2016-02-24 17:00:25 +01:00
Nikita Popov
9d137f37fc
Merge branch 'PHP-7.0'
2016-02-24 14:09:14 +01:00
Nikita Popov
d1057cc139
Fixed bug #71470
...
Don't report hashtable iterator leaks on unclean shutdown, those
are expected.
2016-02-24 14:09:03 +01:00
Dmitry Stogov
1481c61911
Merge branch 'PHP-7.0'
...
* PHP-7.0:
Fixed bug #71535 (Integer overflow in zend_mm_alloc_heap())
2016-02-24 11:05:58 +03:00
Dmitry Stogov
0b9c87a02b
Fixed bug #71535 (Integer overflow in zend_mm_alloc_heap())
2016-02-24 11:04:48 +03:00
Nikita Popov
37d1bbe456
Merge branch 'PHP-7.0'
2016-02-21 13:01:28 +01:00
Nikita Popov
0bd64b50b8
Fixed bug #71617
2016-02-21 13:00:37 +01:00
Dmitry Stogov
dc33c79a65
Evaluate ord(<string>), chr(<int>) and defined(<persistent-constant>) at compile time
2016-02-19 14:14:27 +03:00
Dmitry Stogov
0f39f080d1
Fixed incorrrect merge (regenrate zend_vm_execute.h)
2016-02-19 00:09:17 +03:00
Dmitry Stogov
8a6c5be106
Merge branch 'PHP-7.0'
...
* PHP-7.0:
Better fix for bug #71622 (Strings used in pass-as-reference cannot be used to invoke C::$callable())
2016-02-18 23:15:28 +03:00