Xinchen Hui
a666285bc2
Happy New Year
2013-01-01 16:37:09 +08:00
Dmitry Stogov
8e6bf9e5e5
spelling
2012-12-25 16:23:52 +04:00
Dmitry Stogov
ff1e1d7a8e
Removed redundand checks from release build
2012-12-13 14:46:44 +04:00
Dmitry Stogov
e3b2a5cf74
Generatirs are going to be used less than regular functions
2012-12-06 13:14:31 +04:00
Dmitry Stogov
27528b601f
Fixed comments
2012-12-05 16:02:47 +04:00
Dmitry Stogov
fa30e4754b
Slight performance improvement
2012-12-05 13:23:37 +04:00
Dmitry Stogov
61dbf35cfc
Moved zend_create_execute_data_from_op_array() implementation from zend_vm_execute.skl to zend_execute.c
2012-12-04 10:42:19 +04:00
Dmitry Stogov
7651d64556
Optimized access to temporary and compiled VM variables
2012-12-04 10:14:39 +04:00
Dmitry Stogov
70f83f35d0
. The VM stacks for passing function arguments and syntaticaly nested calls were merged into a single stack. The stack size needed for op_array execution is calculated at compile time and preallocated at once. As result all the stack push operatins don't require checks for stack overflow any more.
...
. Generators implementation was improved using the new VM stack. Now it's a bit more clear and faster.
2012-11-30 13:39:23 +04:00
Stanislav Malyshev
531e2533dd
Use zend_execute_internal always to call internal functions
2012-10-05 08:14:20 +02:00
Nikita Popov
f4ce364628
Merge remote-tracking branch 'php-src/master' into addGeneratorsSupport
...
This is just an intial merge. It does not yet make generators and finally
work together.
Conflicts:
Zend/zend_language_scanner.c
Zend/zend_language_scanner_defs.h
Zend/zend_vm_def.h
Zend/zend_vm_execute.h
Zend/zend_vm_execute.skl
Zend/zend_vm_opcodes.h
2012-08-13 16:54:53 +02:00
Marc Easen
896ac689c9
Fixed the common misspelling of the word occurred (occured -> occurred)
2012-06-30 16:54:03 -07:00
Nikita Popov
6233408a2a
Fix thread safe build
2012-06-20 21:31:23 +02:00
Nikita Popov
f169b26dd7
Fix backtraces and func_get_args()
...
To make the generator function show up in backtraces one has to insert an
additional execute_data into the chain, as prev_execute_data->function_state
is used to determine the called function.
Adding the additional stack frame is also required for func_get_args(), as
the arguments are fetched from there too. The arguments have to be copied
in order to keep them around. Due to the way they are saved doing so is
quite ugly, so I added another function zend_copy_arguments to zend_execute.c
which handles this.
2012-06-09 00:40:47 +02:00
Nikita Popov
4aab08b64c
Properly free resources when generator return value not used
...
To keep things clean two new functions are introduced:
zend_clean_and_cache_symbol_table(HashTable *symbol_table)
zend_free_compiled_variables(zval ***CVs, int num)
2012-05-28 06:43:18 +02:00
Nikita Popov
46fa26ab85
Make generator functions return a Generator object
...
Right now generator functions simply immediately return a new Generator
object (no suspension yet).
2012-05-20 14:45:01 +02:00
Xinchen Hui
6a5095582a
Merge branch 'PHP-5.3' into PHP-5.4
...
* PHP-5.3:
Fixed Bug #62005 (unexpected behavior when incrementally assigning to a member of a null object)
fix stack overflow in php_intlog10abs()
Conflicts:
Zend/zend_execute.c
2012-05-12 13:19:55 +08:00
Xinchen Hui
3332943c9d
Fixed Bug #62005 (unexpected behavior when incrementally assigning to a member of a null object)
2012-05-12 13:13:44 +08:00
Dmitry Stogov
49ce9b9bff
Added ability to reset user opcode handlers (Yoram)
2012-02-14 09:27:08 +00:00
Dmitry Stogov
e16ec62d20
Added ability to reset user opcode handlers (Yoram)
2012-02-14 09:27:08 +00:00
Felipe Pena
e4ca0ed09f
- Year++
2012-01-01 13:15:04 +00:00
Felipe Pena
8775a37559
- Year++
2012-01-01 13:15:04 +00:00
Felipe Pena
4e19825281
- Year++
2012-01-01 13:15:04 +00:00
Stanislav Malyshev
1f4f33afcf
implement the solution for isset/string offsets, fix bug #60362
2011-12-19 02:05:03 +00:00
Stanislav Malyshev
622412d8e6
implement the solution for isset/string offsets, fix bug #60362
2011-12-19 02:05:03 +00:00
Felipe Pena
0ebd2309b1
- Fixed bug #55705 (Omitting a callable typehinted argument causes a segfault)
...
patch by: laruence@php
2011-09-17 00:16:11 +00:00
Felipe Pena
5441cd1f0d
- Fixed bug #55705 (Omitting a callable typehinted argument causes a segfault)
...
patch by: laruence@php
2011-09-17 00:16:11 +00:00
Dmitry Stogov
4a25a7740d
Fixed ZE specific compile warnings (Bug #55629 )
2011-09-13 13:29:35 +00:00
Dmitry Stogov
e43ff1359e
Fixed ZE specific compile warnings (Bug #55629 )
2011-09-13 13:29:35 +00:00
Felipe Pena
35c9c4ed2d
- Fixed ZTS build
2011-08-16 12:01:36 +00:00
Felipe Pena
074c7e6a3a
- Fixed ZTS build
2011-08-16 12:01:36 +00:00
Hannes Magnusson
306c42023e
Callable typehint following the rules of is_callable($arg, false);
2011-08-16 10:44:47 +00:00
Hannes Magnusson
550980cfe5
Callable typehint following the rules of is_callable($arg, false);
2011-08-16 10:44:47 +00:00
Johannes Schlüter
07aa25b442
- Fixed bug #54265 (crash when variable gets reassigned in error handler)
...
(re-apply 309308, dmitry)
2011-03-17 11:49:18 +00:00
Johannes Schlüter
6f15da050e
- Revert r309308 temporarily to get 5.3.6 out
2011-03-17 07:46:57 +00:00
Dmitry Stogov
b60e4fe4f0
Fixed bug #54265 (crash when variable gets reassigned in error handler)
2011-03-16 15:21:38 +00:00
Dmitry Stogov
e90ac23f58
Fixed bug #54265 (crash when variable gets reassigned in error handler)
2011-03-16 15:21:38 +00:00
Stanislav Malyshev
a5b9eda06a
fix UMR when setting forward string offset
2011-03-16 05:41:50 +00:00
Dmitry Stogov
b84967d3e2
Fixed Bug #53971 (isset() and empty() produce apparently spurious runtime error)
2011-02-14 08:46:53 +00:00
Dmitry Stogov
ac057c610c
Fixed Bug #53971 (isset() and empty() produce apparently spurious runtime error)
2011-02-14 08:46:53 +00:00
Felipe Pena
927bf09c29
- Year++
2011-01-01 02:19:59 +00:00
Felipe Pena
0203cc3d44
- Year++
2011-01-01 02:17:06 +00:00
Scott MacVicar
6144da7e35
Silently casting an empty string, null or false into an object by adding a property
...
is pretty non-intuitive. If the same value was 1 or true you get a warning and it halts.
Since we can't break BC completely (yet) lets bump this from E_STRICT.
Also added a new section to UPGRADING for engine changes.
<?php
$x = '';
// $x = null;
// $x = false;
$x->baz = 1;
var_dump($x);
$y = 1;
$y->baz = 1;
var_dump($y);
2010-12-31 16:57:45 +00:00
Felipe Pena
965c30dc2e
- Removed unused variable
2010-11-24 20:50:07 +00:00
Dmitry Stogov
7628da98c4
Removed support for break/continue $var syntax
2010-11-24 12:19:56 +00:00
Dmitry Stogov
68e154b1bf
reduced size of temp_variariable
2010-10-22 14:51:07 +00:00
Dmitry Stogov
968bdc576c
Simplified foreach() handling, we don't have to inctrement/decrement refcount twice
2010-10-22 13:59:23 +00:00
Derick Rethans
0e24a7c400
- Strip out the typehint *checks* only. They are still parsed, and they are
...
still accessible through the reflection API.
2010-10-19 10:42:38 +00:00
Hartmut Holzgraefe
aaa2f1c30b
marked char pointer arguments as const in lots of
...
places where strings pointed to are not modified
to prevent compiler warnings about discarded qualifiers ...
2010-10-14 21:33:10 +00:00
Dmitry Stogov
fa3f0bb63f
Fixed bug #51008 (Zend/tests/bug45877.phpt fails)
2010-10-05 11:28:56 +00:00