Commit Graph

5683 Commits

Author SHA1 Message Date
Felipe Pena
6ff90104aa - New tests 2008-06-03 15:30:04 +00:00
Felipe Pena
402fb5285d - MFH: Fixed bug #44769 (declaring private magic methods should throw error) 2008-06-03 14:07:15 +00:00
Scott MacVicar
6b8b357bdc Back out the previous change as it broke the Windows builds. 2008-06-01 17:31:12 +00:00
Scott MacVicar
42fd9b4005 Fix unexported symbols. Patch by Greg 2008-06-01 16:03:17 +00:00
Matt Wilmas
87dca00a8e MFH: Fixed overflow crash (at least on Windows) in div_function with LONG_MIN / -1 2008-05-29 11:45:13 +00:00
Matt Wilmas
fc6fa44097 Fixed tests on Windows 2008-05-29 07:32:03 +00:00
Felipe Pena
125e897348 - Added XFAIL section in tests to issue under discussion 2008-05-28 11:54:36 +00:00
Matt Wilmas
7da75d81e7 MFH: Add array_init_size() and use it where array size is known at initialization 2008-05-27 10:29:33 +00:00
Antony Dovgal
ba4a9de042 fix tests (say hello to disk C:\) 2008-05-20 14:53:58 +00:00
Dmitry Stogov
a6ec1850e0 MFH: small CSE optimizations 2008-05-16 14:34:31 +00:00
Dmitry Stogov
23eb063f7a Make it backward compatibility 2008-05-16 14:33:52 +00:00
Antony Dovgal
b3b5126954 fix test names 2008-05-14 13:04:05 +00:00
Felipe Pena
e35c457913 - New tests 2008-05-12 17:57:21 +00:00
Felipe Pena
d9d47f3718 - New tests 2008-05-12 14:58:31 +00:00
Felipe Pena
5c2ff40433 - MFH: New tests 2008-05-12 13:31:36 +00:00
Felipe Pena
c5e80819ba - Fixed test 2008-05-12 11:15:32 +00:00
Dmitry Stogov
af1ed80274 Fixed bug #44952 (isset() does not checks correctly variable variable) 2008-05-12 09:09:05 +00:00
Dmitry Stogov
907fa66507 Added API to use namesapces in internal extensions 2008-05-12 07:11:55 +00:00
Felipe Pena
f6c57d1f6f - MFH: New tests 2008-05-11 22:44:56 +00:00
Matt Wilmas
2a8a4bd860 MFH: Fixed error message typo 2008-05-11 11:46:44 +00:00
Felipe Pena
e4c7664158 - MFH: New tests 2008-05-11 03:50:28 +00:00
Matt Wilmas
c83d916a98 MFH: Restore end check for "escape" strings 2008-05-10 09:17:29 +00:00
Felipe Pena
bcccfa6bf1 - New tests 2008-05-09 14:16:24 +00:00
Matt Wilmas
29cbfbd1e7 MFH: Test for loss of backslash at end of heredoc; For bug #44830 (Very minor issue with backslash in heredoc) 2008-05-09 11:06:29 +00:00
Matt Wilmas
c4e406d24d MFH: Fix loss of backslash at end of heredoc; For bug #44830 (Very minor issue with backslash in heredoc) 2008-05-09 10:27:51 +00:00
Matt Wilmas
805b6dd3b5 MFH: Fixed bug #44681 (Resources used as array keys get converted to 0) 2008-05-09 09:23:03 +00:00
Felipe Pena
1e650ca32d - MFH: Fixed detection of invalid class name 2008-05-08 18:51:28 +00:00
Felipe Pena
fd4e87c5d4 - New tests 2008-05-07 14:10:03 +00:00
Dmitry Stogov
5521912b15 Use IS_CV for dirrent access to $this variable 2008-05-07 12:04:39 +00:00
Dmitry Stogov
0639a847ce Use lazy symbol table initialization for op_arrays called from internal php functions 2008-05-06 17:00:56 +00:00
Dmitry Stogov
10aa1146ab Fixed possible memory leak 2008-05-06 16:59:38 +00:00
Dmitry Stogov
833e01343d GC fix 2008-05-06 16:03:16 +00:00
Dmitry Stogov
f852ae4985 Regenerate zend_vm_execute.h 2008-05-06 09:41:39 +00:00
Dmitry Stogov
1b317f1526 - Use ZEND_FREE() opcode instead of ZEND_SWITCH_FREE(IS_TMP_VAR)
- Fixed bug #44913 (Segfault when using return in combination with nested loops
and continue 2)
2008-05-05 11:03:35 +00:00
Dmitry Stogov
5a0253c14c Support for old-style constructors in namespaces 2008-05-05 09:44:39 +00:00
Felipe Pena
a578b0cbcc - MFH: Fixed bug #44899 (__isset usage changes behavior of empty()) (patch by Etienne Kneuss) 2008-05-03 00:38:55 +00:00
Dmitry Stogov
3adf158d79 IS_CONST operands are always have is_ref==1 and refcount==2, so we can eliminate unnecessary checks at specialization/compilation stage 2008-04-30 10:44:08 +00:00
Antony Dovgal
cacce6bc65 fix spelling 2008-04-29 13:50:27 +00:00
Dmitry Stogov
28b7529012 Fixed GC slowdown 2008-04-29 13:43:31 +00:00
Dmitry Stogov
3a86a06619 Added missing lazy initialization 2008-04-29 09:18:26 +00:00
Dmitry Stogov
2ecf4bb0a7 Lazy EG(active_symbol_table) initialization 2008-04-29 08:15:20 +00:00
Antony Dovgal
c75658c477 MFH 2008-04-29 08:08:21 +00:00
Dmitry Stogov
8fac72574d Optimized handlers for ZEND_RECV and ZEND_RECV_INIT opocdes 2008-04-24 15:45:46 +00:00
Dmitry Stogov
e4213bedb8 Optimized function call helper 2008-04-21 10:14:20 +00:00
Felipe Pena
3d2a5940a2 - New tests 2008-04-18 14:05:47 +00:00
Felipe Pena
8f2c31a171 - New test 2008-04-17 18:16:17 +00:00
Dmitry Stogov
fcaa1c6d86 Fixed bug #44226 (Throwing an exception causes crash in multithreaded SAPI) 2008-04-17 10:21:38 +00:00
Dmitry Stogov
e8b485d077 Selected better initial VM stack size 2008-04-15 15:52:36 +00:00
Ilia Alshanetsky
5cbecbe535 Kill unused var 2008-04-13 12:25:15 +00:00
Dmitry Stogov
ae3295e1b9 Speedup GC initialization 2008-04-11 17:31:53 +00:00
Dmitry Stogov
d9dd1b9e14 Optimized ZEND_RETURN opcode to not allocate and copy return value if it is not
used.
2008-04-11 09:43:28 +00:00
Nuno Lopes
7507ff326e fix heredoc+nowdoc
#patch by Matt Wilmas
2008-04-10 19:19:04 +00:00
Ilia Alshanetsky
4534cd6807 WS 2008-04-09 23:35:19 +00:00
Nuno Lopes
cfc1756221 fix the yyless() definition to match flex one and revert part of last patch (so that it remains similar with flex's scan) 2008-04-09 22:01:20 +00:00
Scott MacVicar
6f20cea6d8 Fixes to heredoc and cleanup of new re2c scanner. (Patch by Matt Wilmas) 2008-04-09 20:50:58 +00:00
Dmitry Stogov
dfacfae34a Bug #44653 (Invalid namespace name resolution) 2008-04-09 08:55:45 +00:00
Scott MacVicar
878230cfbb Fixed bug #44609 (Dollar in ini variables are not parsed correctly) 2008-04-07 11:39:14 +00:00
Marcus Boerger
8f670912a3 - MFH add new tests 2008-04-06 17:53:31 +00:00
Felipe Pena
b9d13d8f17 - Allow HEREDOC syntax with double quotes
(http://wiki.php.net/rfc/heredoc-with-double-quotes)
2008-04-05 22:29:08 +00:00
Nuno Lopes
b41fd6150c remove redundant test for file size 2008-04-04 15:34:39 +00:00
Nuno Lopes
bfcdbbcd33 add sanity checks for ZEND_MMAP_AHEAD and reduce the value from 32 to 16 (lowest safe value) 2008-04-04 15:01:23 +00:00
Felipe Pena
f8f26de7d5 Fix for segfault on 64bit platform 2008-03-29 11:52:10 +00:00
Felipe Pena
f66f55edc5 MFH: Implemented "jump label" operator (limited "goto")
[DOC]
2008-03-28 14:35:01 +00:00
Ilia Alshanetsky
44a6326b15 Removed unused variable 2008-03-25 20:19:04 +00:00
Felipe Pena
9e2894f5ff MFH:
- Renamed zend_do_fetch_class_name() to zend_do_build_full_name() (It is not used only for classes)
- Moved zend_resolve_class_name prototype to zend_compile.h
2008-03-25 18:08:37 +00:00
Dmitry Stogov
00346c2dbf Optimized detection of "__call" and "__callstatic" methods. 2008-03-25 13:04:03 +00:00
Marcus Boerger
3a74a6bec4 - MFH Add tests 2008-03-23 13:38:41 +00:00
Marcus Boerger
0893c3e2c9 - Another re2c version bump and scanner regeneration
# It appears no one has used re2c in the way we do
2008-03-22 17:59:52 +00:00
Marcus Boerger
07e3598762 - Fix YYFILL() 2008-03-21 18:47:26 +00:00
Marcus Boerger
51e9bd075f - Simplify 2008-03-21 18:20:07 +00:00
Marcus Boerger
adaf6daa3c - Fix streams handling logic, only real FPs can be mmaped here 2008-03-21 18:15:43 +00:00
Marcus Boerger
40bdb5df57 - Bugfix 44461 2008-03-21 15:29:34 +00:00
Nuno Lopes
35eb728a7c fix gcov build 2008-03-19 23:24:56 +00:00
Rasmus Lerdorf
ea790cef01 On Windows I guess there is no point starting the timeout thread until
we actually have a timeout value.
2008-03-19 15:30:49 +00:00
Rasmus Lerdorf
d2f23dbe64 Make sure we set the signal handler when reset_signals is true, regardless
of the actual timeout value.
2008-03-19 15:22:17 +00:00
Antony Dovgal
54482745ba MFH 2008-03-19 12:44:13 +00:00
Antony Dovgal
7b1bc753c6 MFH: add zend_atol() 2008-03-19 12:41:23 +00:00
Dmitry Stogov
5031528ec7 Disabled $GLOBALS' refcount modification 2008-03-19 11:46:10 +00:00
Rasmus Lerdorf
6c158374ba exit_on_timeout patch
After the sigsetjmp change, this is patch #2 in an effort to get some
sanity restored to signal handling in PHP.

This patch does two things.  First, it makes it possible to reset the
timeout without resetting the signal handlers.  This is important for
cases where an extension may have deferred signals in its MINIT in order
to implement critical sections. It also lays the groundwork for cleaning
up our signal handling and perhaps eventually implementing our own
signal deferring mechanism so we can have true critical sections.

The second thing this does is to make it possible to terminate the current
child process (only for Apache1 at the moment) on a timeout.  There are
a number of extensions that are unhappy about being longjmp'ed out of
and when this happens on a timeout they are left in an inconsistent state.
By turning on exit_on_timeout you can now force the process to terminate
on a timeout which will clean up any hanging locks and/or memory left
hanging after the longjmp.
2008-03-18 21:42:50 +00:00
Rasmus Lerdorf
10afe5d96b Make the sigsetjmp change more robust. On systems that don't have
sigsetjmp use setjmp.  Windows is of course weird in that it seems to
have sigsetjmp but not sigjmp_buf (??) so force it to use setjmp in
config.w32.h.in
2008-03-18 21:14:28 +00:00
Rasmus Lerdorf
c9e0781d2a Use sigsetjmp and siglongjmp instead of setjmp/longjmp in order to be
consistent in how we deal with the signal mask.  POSIX doesn't specify
what to do with the signal mask in setjmp/longjmp which has resulted in
the signal mask getting saved on *BSD and not getting saved on Linux.
Making the behaviour explicit via sigsetjmp/siglongjmp gives us
consistency and saves expensive sigprocmask() syscalls on *BSD.
2008-03-18 18:34:11 +00:00
Antony Dovgal
40a7a6005b remove ze1_compat tests 2008-03-18 14:50:14 +00:00
Felipe Pena
2b10c53ae1 MFH: Dropped zend.ze1_compatibility_mode
[DOC]
2008-03-18 14:10:45 +00:00
Dmitry Stogov
8b01532f64 Removed hack (we don't need to modify class name).
(the problem is covered by Zend/tests/ns_056.phpt)
2008-03-18 11:37:00 +00:00
Dmitry Stogov
8c885b8913 Implemented concept of "delayed early binding" that allows opcode caches to perform class declaration (early and/or run-time binding) in exactly the same order as vanila php.
The following pseudo-code explains how it should be used in opcode cache.

function cache_compile_file($filename) {
        if (!is_cached($filename)) {
                ...
                orig_compiler_options = CG(compiler_optins);
                CG(compiler_options) |= ZEND_COMPILE_IGNORE_INTERNAL_CLASSES |
                                        ZEND_COMPILE_DELAYED_BINDING;
                $op_array = orig_compile_file($filename);
                CG(compiler_options) = orig_copiler_options;
                ...
        } else {
                $op_array = restore_from_cache($filename);
        }
        zend_do_delayed_early_binding($op_array);
}
2008-03-18 08:36:30 +00:00
Nuno Lopes
e89b52f5ea remove leftovers 2008-03-17 16:21:49 +00:00
Antony Dovgal
7dd943ac5c MFH: fix #39127 (Old-style constructor fallbacks produce strange results) 2008-03-17 14:54:42 +00:00
Scott MacVicar
e6960e3ded Fix test 2008-03-17 10:29:17 +00:00
Marcus Boerger
00e236aa80 - Fix build 2008-03-16 21:42:42 +00:00
Marcus Boerger
0531ba8952 - Add files generated by re2c 2008-03-16 21:23:02 +00:00
Marcus Boerger
af316021e8 - Rewrite scanner to be based on re2c instead of flex
The full patch is available as:
  http://php.net/~helly/php-re2c-5.3-20080316.diff.txt
  This is against php-re2c repository version 98
  An older patch against version 97 is available under:
  http://php.net/~helly/php-re2c-97-20080316.diff.txt
2008-03-16 21:06:55 +00:00
Dmitry Stogov
7158425387 Improve GC to support garbage created in destructors during objects utilization 2008-03-14 18:36:34 +00:00
Dmitry Stogov
34003557ca Removed commented code and unnecessary inline function 2008-03-14 13:35:40 +00:00
Dmitry Stogov
e1a28ee945 Fixed GC bug 2008-03-14 13:21:04 +00:00
Ilia Alshanetsky
5ea77bc64f MFB: Fixed bug #43677 (Inconsistent behaviour of include_path set with
php_value). (Patch by: manuel at mausz dot at)
2008-03-13 16:01:31 +00:00
Dmitry Stogov
a564b2a939 Fixed test 2008-03-12 15:20:23 +00:00
Felipe Pena
ae0a15b7cf New test 2008-03-12 13:31:38 +00:00
Felipe Pena
5fa8f63a01 New tests 2008-03-12 12:58:12 +00:00
Dmitry Stogov
2564bdc73c Code simplification 2008-03-12 10:40:02 +00:00
Dmitry Stogov
be8daf1f47 Optimized ZEND_FETCH_CLASS + ZEND_ADD_INTERFACE into single ZEND_ADD_INTERFACE opcode 2008-03-12 10:32:12 +00:00
Dmitry Stogov
0f2247ae94 Fixed bug #44414 (Incomplete reporting about abstract methods) 2008-03-12 09:46:42 +00:00
Dmitry Stogov
c33db5c74e Fixed warning 2008-03-12 08:52:49 +00:00
Felipe Pena
fec00fd374 Add new test (bug reported in internals list by Robin) 2008-03-11 16:56:06 +00:00
Felipe Pena
7a9bfa9055 Add new test (bug reported in internals list by Robin) 2008-03-11 16:48:14 +00:00
Felipe Pena
4aebf04353 Missing a line 2008-03-11 15:26:24 +00:00
Felipe Pena
999d2e2294 New tests 2008-03-11 15:18:58 +00:00
Felipe Pena
f37f8d85d6 Fix test 2008-03-11 11:04:53 +00:00
Antony Dovgal
6204a10e79 some more tests 2008-03-11 10:40:37 +00:00
Felipe Pena
1db52c1c5f Fix tests (new error message for void parameters) 2008-03-10 23:14:11 +00:00
Felipe Pena
9324869ef5 Fix tests (new error message for void parameters) 2008-03-10 22:17:59 +00:00
Felipe Pena
cc2b17d51d MFH: Added new macro for check void parameters.
(deprecating ZEND_WRONG_PARAM_COUNT for this cases)
2008-03-10 22:02:41 +00:00
Felipe Pena
af8b8480d5 Improve the Darwin 9 hack considerably and switch to using dl*() instead of NS*() on Darwin 8+. (Patch by Gwynne) 2008-03-10 15:06:04 +00:00
Antony Dovgal
1f3b8cccc4 %v -> %s, this is 5_3 2008-03-09 20:52:29 +00:00
Felipe Pena
fd0d44f0a7 User error handlers no longer catch supressed errors (patch by Etienne Kneuss) 2008-03-08 21:54:03 +00:00
Felipe Pena
c7cb8551fe Fix tests (removed space on error message "Undefined index: ...") 2008-03-08 12:01:53 +00:00
Felipe Pena
579e46dd76 Cosmetics (removed space on error message) 2008-03-08 11:47:13 +00:00
Felipe Pena
ddc8a63168 Fixed bug #39018 (Error control operator '@' fails to suppress "Uninitialized string offset") 2008-03-08 11:35:12 +00:00
Antony Dovgal
cbdc4b9af8 fix segfault when trying to clone uncloneable object because of zend.ze1_compatibility_mode which we should have got rid of years ago 2008-03-06 17:28:26 +00:00
Dmitry Stogov
ab232458c7 Optimized require_once() and include_once() by eliminationg open() syscall on second usage. 2008-03-05 13:34:12 +00:00
Dmitry Stogov
430e54d457 Fixed shared memory corruption of opcode caches 2008-03-04 11:43:51 +00:00
Dmitry Stogov
8365e71cb9 Fixed wrong result of cascading assignment to string offset
Fixed memory corruption on cascading assignment of IS_TMP_VAR into string offset
Fixed opcode caches shared memory corruption on cascading assignment of IS_CONST
 into string offset
2008-03-04 10:06:52 +00:00
Robin Fernandes
0455ccb805 Remove inconsistent behaviour when a protected static prop is overridden by public static prop (details: http://turl.ca/phhhf ). 2008-03-03 15:07:04 +00:00
Johannes Schlüter
68de75f0b5 MFH: Allow implementation of abstract methods with optional parameters (Christian
Schneider)
2008-03-01 13:53:32 +00:00
Marcus Boerger
d3e5026564 - MFH Add E_DEPRECATED (Lars Strojny, Felipe Pena, Marcus)
[DOC] Finally added deprecation messages
2008-02-23 17:06:22 +00:00
Dmitry Stogov
18cc21c662 Fixed bug #43483 (get_class_methods() does not list all visible methods) 2008-02-21 15:14:27 +00:00
Dmitry Stogov
3e7e9d4af6 Fixed bug #44141 (private parent constructor callable through static function) 2008-02-21 13:55:45 +00:00
Dmitry Stogov
bb1ee6d14a Prevented recursive collector invocation 2008-02-21 10:42:14 +00:00
Dmitry Stogov
8c32f99c25 Fixed bug #44184 (Double free of loop-variable on exception) 2008-02-20 12:05:57 +00:00
Dmitry Stogov
edf53e2073 Added checks for destoied objects 2008-02-20 09:45:47 +00:00
Dmitry Stogov
caee59b856 everted (this part was committed by mistake) 2008-02-19 17:05:41 +00:00
Dmitry Stogov
cb714158af Fixed memory leaks 2008-02-19 16:39:18 +00:00
Dmitry Stogov
7dd164dcec Fixed GC bug 2008-02-19 15:55:57 +00:00
Dmitry Stogov
a4b872a6d8 iFixed memory leak 2008-02-19 12:00:53 +00:00
Sebastian Bergmann
1b03ecf1c7 MFH: Fugbix typo. 2008-02-19 06:52:43 +00:00
Dmitry Stogov
4cf7073a84 Removed redundant refcount manipulations 2008-02-18 12:11:47 +00:00
Dmitry Stogov
e563a6d979 Fixed bug #44069 (Huge memory usage with concatenation using . instead of .=) 2008-02-14 14:42:00 +00:00
Dmitry Stogov
fb50ef1aab Reverted memrchr() patch, because it is broken on linux 64-bit 2008-02-14 10:25:22 +00:00
Dmitry Stogov
9fdaddc56d Use memrchr() instead of zend_memrchr() if available. (Nuno) 2008-02-13 16:22:01 +00:00
Dmitry Stogov
ddcf7a2f49 Added NEWDOC 2008-02-12 09:27:45 +00:00
Dmitry Stogov
51278b6d22 Fixed ext/tokenizer test failures because of token renumbering 2008-02-12 08:49:08 +00:00
Stanislav Malyshev
bbc813d360 fix folding 2008-02-12 01:17:48 +00:00
Stanislav Malyshev
27d4a3f6c3 add tests for __DIR__ 2008-02-12 00:26:51 +00:00
Stanislav Malyshev
fd597dce1b [DOC] Add compile-time __DIR__ constant which implements dirname(__FILE__) 2008-02-12 00:21:15 +00:00
Hannes Magnusson
86c9b5e46c Fix segfaults when calling "ctors statically" 2008-02-11 15:46:10 +00:00
Marcus Boerger
da2a1799ca - MFH Windows build fix 2008-02-09 21:22:31 +00:00
Marcus Boerger
c7f71a7dd0 - MFH Simplify 2008-02-07 18:42:01 +00:00
Marcus Boerger
b7b41a6612 - MFH Fix missing check and tests 2008-02-06 20:40:19 +00:00
Marcus Boerger
0976a2646a - MFH Fix cross class tree reference issues with callbacks (colder,helly) 2008-02-05 19:08:24 +00:00
Hannes Magnusson
ed1bafe5d7 Fix test 2008-02-05 08:41:04 +00:00
Jani Taskinen
8a70a554d6 MFH: - Fixed bugs #43915, #43923 and #44019, a tiny performance issue fixed too 2008-02-04 20:45:20 +00:00
Marcus Boerger
1ecdaa3885 - Fix warnings 2008-02-03 14:32:48 +00:00
Antony Dovgal
4904889568 MFH: fix leak appearing when calling non-static protected or private methods as static 2008-02-02 22:29:41 +00:00
Marcus Boerger
da5b979f88 - MFH Add comment that explains why we need E_ERROR in those cases 2008-02-02 15:48:04 +00:00
Marcus Boerger
ac8e76c714 - Fix remaining issue (should be last one) 2008-02-02 15:18:30 +00:00
Marcus Boerger
7769fda15c - Drop useless TODO, this would need to be fixed in a generic way 2008-02-02 14:19:03 +00:00
Marcus Boerger
95a3cccf5f - Fix flag handling in message generation 2008-02-02 13:56:59 +00:00
Rasmus Lerdorf
539eaceddc What's the [0] for here? Looks wrong and causes stuff to segv 2008-02-02 01:12:01 +00:00
Rasmus Lerdorf
f48bd05482 Fix more tests (some of these were not broken by the recent changes) 2008-02-02 00:55:35 +00:00
Rasmus Lerdorf
45db15ad4e Small tweak. Need to make array and string callback syntax behave the
same way.  Also change "cannot" to "should not" since we obviously
"can" make the call.
2008-02-01 23:09:10 +00:00
Marcus Boerger
e8a8acdf39 [DOC]
- Fix callable/static mess, the following will now all result in a E_STRICT
  . binding a dynamic function as a static callback
  . static call of a dynamic function
  . is_callable() on a static binding to a dynamic function
# [marcus@frodo PHP_5_3]$ php -a -d error_reporting=8191
# make: `sapi/cli/php' is up to date.
# Interactive shell
#
# php > class t{ function f() { echo "Funny\n"; } }
# php > $c = array("t","f");
# php > call_user_func($c);
#
# Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method t::f() cannot be called statically in php shell code on line 1
# Funny
# php > var_dump(is_callable($c));
#
# Strict Standards: Non-static method t::f() cannot be called statically in php shell code on line 1
# bool(true)
# php > t::f();
#
# Strict Standards: Non-static method t::f() should not be called statically in php shell code on line 1
# Funny
# php >
2008-02-01 21:27:55 +00:00
Dmitry Stogov
240fa244c3 Improved PHP binary size and startup speed with GCC4 visibility control (Nuno) 2008-01-30 09:41:12 +00:00
Dmitry Stogov
9770b3cb00 Fixed bug #43323 (Wrong count abstract methods). (Felipe, Dmitry) 2008-01-29 11:12:57 +00:00
Dmitry Stogov
e0ca3b2424 Fixed types 2008-01-29 11:12:07 +00:00
Dmitry Stogov
58433c9b11 Fixed bug #43918 (Segmentation fault in garbage collector) 2008-01-29 09:59:42 +00:00
Antony Dovgal
4252942abd MFH: fix typo and bug #43646 2008-01-29 00:07:26 +00:00
Stanislav Malyshev
2cd551ffec fix type 2008-01-28 23:55:53 +00:00
Derick Rethans
13d75ce6e6 - MFH: Send the debug info to stderr instead of stdout. 2008-01-28 20:34:02 +00:00
Dmitry Stogov
d90ebc65a6 Fixed comilation warnings 2008-01-24 18:07:45 +00:00
Dmitry Stogov
2fd21da895 Increased Zend MM cache size 2008-01-24 12:21:32 +00:00
Dmitry Stogov
5a00207c6d Fixed possible GC failure because of EG(object_store).object_buckets reallocation 2008-01-24 11:48:54 +00:00
Dmitry Stogov
03c018d34e Fixed GC bug 2008-01-24 10:49:26 +00:00
Derick Rethans
3bd291e118 - MFH: Show GC statistics if GC benchmarking is enabled.
#- Discussed this with Dmitry.
2008-01-24 10:42:12 +00:00
Dmitry Stogov
f8297f6e37 Fixed bug #43426 (crash on nested call_user_func() calls) 2008-01-24 09:47:00 +00:00
Dmitry Stogov
0b6825102d Changed EG(argument_stack) implementation. 2008-01-24 09:41:39 +00:00
Dmitry Stogov
07000cc2ba Fixed error message 2008-01-24 08:51:38 +00:00
Stanislav Malyshev
529c17665f fix build 2008-01-23 19:55:37 +00:00
Dmitry Stogov
0095544c4d Additional executor specialization 2008-01-23 17:55:55 +00:00
Dmitry Stogov
71592cec06 Added garbage collector 2008-01-22 09:27:48 +00:00
Dmitry Stogov
fa47e900e2 Changed exception handling. Now each op_array doesn't contain ZEND_HANDLE_EXCEPTION opcode in the end 2008-01-21 19:39:55 +00:00
Dmitry Stogov
7390459e26 Yet another comparison optimisation for usual cases 2008-01-21 19:10:25 +00:00
Dmitry Stogov
48379d53e6 Eliminate unnecessary checks for INC/DEC IS_CV 2008-01-21 14:22:59 +00:00
Dmitry Stogov
e6588b6620 Fixed bug #43851 (Memory corrution on reuse of assigned value) 2008-01-15 11:52:45 +00:00
Marcus Boerger
ba8acfdfdf - Fix the fix 2008-01-15 11:47:05 +00:00
Antony Dovgal
06229e417f oops..
I didn't mean to commit this
2008-01-15 09:48:55 +00:00
Antony Dovgal
b101ee1a07 MFH: rename macros
patch by colder
2008-01-15 09:36:05 +00:00
Marcus Boerger
22221def71 - Fix memleak (found by colder) 2008-01-14 18:13:12 +00:00
Dmitry Stogov
059bc1d593 Simplified assignment to string offset 2008-01-11 15:10:24 +00:00
Dmitry Stogov
6be997dca9 Fixed unspecialized executor 2008-01-11 10:08:49 +00:00
Dmitry Stogov
ab5bddd976 Fixed bug #39346 (Unsetting a static variable inside a destructor causes segfault later on) 2008-01-11 08:42:06 +00:00
Dmitry Stogov
ed8e2fa031 Added missing warning message 2008-01-10 09:38:23 +00:00
Dmitry Stogov
b5c4244069 Fixed bug #43703 (Signature compatibility check broken) 2008-01-09 07:57:42 +00:00
Sebastian Bergmann
a5cf49b2d3 Leftover: Bump copyright year. 2007-12-31 07:24:44 +00:00
Sebastian Bergmann
d1dded8751 MFH: Bump copyright year, 2 of 2. 2007-12-31 07:17:19 +00:00
Dmitry Stogov
72de143266 Fixed possible memory corruption 2007-12-28 15:32:09 +00:00
Dmitry Stogov
5a3eb53723 Fixed bug #38469 (unexpected creation of cycle, json tests failed, leaks memory) 2007-12-28 13:22:00 +00:00
Dmitry Stogov
2fa0078a71 Initialize operand type 2007-12-28 09:46:52 +00:00
Dmitry Stogov
ba8dcae76d Use proper result type 2007-12-27 13:52:05 +00:00
Dmitry Stogov
43f6392e90 Fixed bug #43651 (is_callable() with one or more nonconsecutive colons crashes) 2007-12-25 10:58:30 +00:00
Dmitry Stogov
ed5a424b4f Additional fix for bug #42868 2007-12-24 18:09:50 +00:00
Johannes Schlüter
1b6100f4c1 - MFH: Fix #43450 (Memory leak on some functions with implicit object
__toString() call) (Davic C.)
2007-12-21 20:56:33 +00:00
Ilia Alshanetsky
11a93f62ac Fixed bug #43644 (is_callable(':') crashes) 2007-12-21 01:21:52 +00:00
Dmitry Stogov
1e5e110844 x86_64 assembler optimization (Brain Shire) 2007-12-20 12:58:46 +00:00
Robert Nicholson
d0bfef7f94 New test - Indexing - various special cases 2007-12-20 11:42:00 +00:00
Dmitry Stogov
f7f6de4dc2 Fixed test 2007-12-17 10:05:13 +00:00
Dmitry Stogov
2b981769a3 Fixed bug #42868 (Floats cast to integer produce unpredicatable results). (Zoe Slattery) 2007-12-17 10:02:13 +00:00
Dmitry Stogov
f817a1ce6a executor optimization 2007-12-14 14:14:50 +00:00
Antony Dovgal
2569b593f1 MFH: add new tests written by Felipe Pena 2007-12-13 13:51:15 +00:00
Dmitry Stogov
64e8f22355 Allowed import of global classes "use ::GlobalClassName;" 2007-12-13 10:02:03 +00:00
Dmitry Stogov
80e77c1366 Allowed multiple namespaces per file (Gregory) 2007-12-13 08:57:52 +00:00
Dmitry Stogov
6484b3c458 Fixed bug #43344 (Wrong error message for undefined namespace constant) 2007-12-07 17:11:24 +00:00
Dmitry Stogov
d161978c56 Fixed uninitialized value 2007-12-04 12:38:42 +00:00
Dmitry Stogov
0f59a01e4a Fixed bug #43332 (self and parent as type hint in namespace) 2007-12-03 14:15:43 +00:00
Dmitry Stogov
70bf5468de Fixed compilation on Windows 2007-11-23 15:03:03 +00:00
Dmitry Stogov
4ab8d46ddd Fixed definitions 2007-11-23 13:38:32 +00:00
Marcus Boerger
0846676471 # My editor somehow likes to convert to UTF-8 2007-11-23 13:27:41 +00:00
Marcus Boerger
c0802ee667 - Add another LSB test 2007-11-23 13:25:21 +00:00
Dmitry Stogov
4e0a8a0914 Fixed test 2007-11-22 13:33:36 +00:00
Dmitry Stogov
648fbe9d58 Fixed bug #43128 (Very long class name causes segfault) 2007-11-22 13:27:13 +00:00
Dmitry Stogov
1836daf7f9 Fixed bug #43318
The "const" statement is still allowed outside of namespaces but arrays are disabled.
2007-11-22 10:46:26 +00:00
Dmitry Stogov
ea0a1c09e9 Speed-up of ZEND_DO_FCALL and ZEND_INIT_FCALL_BY_NAME by lowercasing and calculating hash values at compile time. 2007-11-22 09:02:55 +00:00
Dmitry Stogov
caa15f0291 Macro definitions are moved to zend.h 2007-11-21 14:55:41 +00:00
Dmitry Stogov
e0ae3d22c1 Safe exit from executor() 2007-11-21 12:28:13 +00:00
Johannes Schlüter
45f6b4ce2f - MFH Improved version of ternary shortcut (Marcus) 2007-11-21 09:41:35 +00:00
Johannes Schlüter
4a8ed7ab68 - MFH ?: operator (Marcus)
[DOC] "expr1 ?: expr1" is a shortcut for: "expr1 ? expr1 : expr2" as
        exists in gcc and discussed some time back. Note that this is not
        an implementation ifsetor($var, default). While ifsetor would not
        generate any message for non existing variables or array indices
        the ternary shortcut does. Also the ternary shortcut does a boolean
        evaluation rather then checking for isset(). That way ther ternary
        shortcut can work on any expression while ifsetor can only work on
        variables. Also to be silent one has do do: "@$expr1 ?: $expr2".
2007-11-21 00:03:16 +00:00
Jani Taskinen
5e123ebef9 MFH: add ZEND_DEBUG_BUILD constant 2007-11-20 16:34:25 +00:00
Dmitry Stogov
a29a9d5a42 Optimization of zend_do_fcall_common_helper() 2007-11-20 13:53:08 +00:00
Dmitry Stogov
6a5a172795 MFH: math and comparison optimization + use macroses 2007-11-20 13:26:36 +00:00
Dmitry Stogov
de46d94589 ZEND_FETCH_DIM optimization 2007-11-20 11:01:28 +00:00
Dmitry Stogov
10f6cd5cb0 Fixed compilation on some systems (Wez) 2007-11-20 10:19:11 +00:00
Dmitry Stogov
c3ab6bd091 Fixed bug #43136 (possible crash on script execution timeout. The EG(function_state_ptr) is completely removed, EG(current_execute_data)->function_state must be used instead) 2007-11-20 09:51:12 +00:00
Dmitry Stogov
9f230a0d79 Added support for "namespace::" prefix that is resolved to current namespace name. 2007-11-20 08:53:02 +00:00
Dmitry Stogov
969dda1b51 Fixed tests 2007-11-19 08:19:31 +00:00
Derick Rethans
991f1d8d7a - MFH: Initialize the reserved resource bits so that they can be reliably used. 2007-11-18 21:29:55 +00:00
Sara Golemon
ee548c7bf3 MFH(r-1.192) Remove extraneous space in error/notice messages (felipe) 2007-11-17 21:52:02 +00:00
Antony Dovgal
714aad97e7 MFH: disallow multiple access modifiers and 'abstract abstract' methods (patch by Etienne Kneuss)
add tests
2007-11-13 16:52:14 +00:00
Dmitry Stogov
6d64218bc5 better error messages 2007-11-12 17:52:15 +00:00
Antony Dovgal
52e773740c MFH: fix error message (reported by Felipe Nascimento) 2007-11-12 16:55:44 +00:00
Dmitry Stogov
a90a0305b0 Fixed bug #43183 ("use" of the same class in difference scripts results in a fatal error) 2007-11-12 15:52:22 +00:00
Dmitry Stogov
dd3c04cea1 Fixed bug #42937 (__call() method not invoked when methods are called on parent from child class). 2007-11-12 09:12:06 +00:00
Johannes Schlüter
18a656de6f - MFH: static can't be used as type hint, fixes #43126 (Etienne Kneuss) 2007-11-11 22:11:25 +00:00
Dmitry Stogov
4d681d5660 new test 2007-11-09 13:34:58 +00:00
Dmitry Stogov
8646d9afce Fixed type-hint compatibility check in namespaces 2007-11-09 13:34:39 +00:00
Dmitry Stogov
98b3c247a8 Fixed implementation of internal interfaces in namesapces 2007-11-09 12:15:41 +00:00
Johannes Schlüter
e6dff0caa4 - MFH: Allow persistent zent_ptr_stacks (patch by Andrey Hristov) 2007-11-09 10:34:27 +00:00
Dmitry Stogov
b7d87bebc9 T_IMPORT -> T_USE 2007-11-07 09:13:50 +00:00
Dmitry Stogov
52f25f6132 Fixed bug #43175 (__destruct() throwing an exception with __call() causes segfault) 2007-11-06 14:56:14 +00:00
Dmitry Stogov
22db451fdd Fixed bug #43201 (Crash on using unitialized vals and __get/__set) 2007-11-06 14:11:59 +00:00
Dmitry Stogov
c3c5d27fbc Fixed windows build (Rob) 2007-11-06 12:06:05 +00:00
Dmitry Stogov
609aa052b3 Allow user defined malloc/realloc/free 2007-11-06 07:22:13 +00:00
Jani Taskinen
129c125f7f - Fix confusing logic (sync with HEAD) 2007-11-05 11:43:31 +00:00