Moriyoshi Koizumi
023211d8d2
- MFH: Constify read-only arguments
2008-07-24 20:39:48 +00:00
Felipe Pena
0fbe6a0c14
- MFH: Added TSRMLS_DC to apply_func_args_t and zend_hash_apply_with_arguments.
2008-07-24 19:52:24 +00:00
Dmitry Stogov
2cca3d0dd2
Optimized ZEND_SIGNED_MULTIPLY_LONG() (Matt)
2008-07-24 13:46:28 +00:00
Dmitry Stogov
44325e6473
Fixed bug #45178 (memory corruption on assignment result of "new" by reference)
2008-07-24 11:47:51 +00:00
Dmitry Stogov
feb8580166
LSB parent/self forwarding
2008-07-24 09:42:18 +00:00
Jani Taskinen
d10d4e48c3
ws
2008-07-22 07:44:41 +00:00
Dmitry Stogov
4d8bdd9d1b
Closure object cannot have properties
2008-07-22 07:29:31 +00:00
Derick Rethans
05d2ae4c9e
- This test works fine (patch by Lars Strojny)
2008-07-22 07:13:52 +00:00
Scott MacVicar
e19f52047c
Optimisation for zend_memnstr when the needle is only a single character. (Patch by Michal Dziemianko - GSoC08)
2008-07-21 18:47:02 +00:00
Dmitry Stogov
9d4064afc0
Added check for small ZEMD_MM_SEG_SIZE
2008-07-21 17:06:35 +00:00
Hannes Magnusson
ee40f557a7
Fix tests (patch by Lars)
2008-07-21 12:23:38 +00:00
Hannes Magnusson
d619b57efa
MFH: Add E_USER_DEPRECATED (patch by Lars Strojny)
2008-07-21 09:41:00 +00:00
Marcus Boerger
2b5e4d4553
- MFH Little debug hack to allow printing vm function
2008-07-21 08:14:24 +00:00
Moriyoshi Koizumi
579bb2a9dc
- Fix the header (thanks Johannes)
2008-07-20 15:10:24 +00:00
Moriyoshi Koizumi
91fba3893b
- WS fix
2008-07-20 12:47:34 +00:00
Felipe Pena
c3453925c5
- Deprecate ticks
2008-07-17 19:29:34 +00:00
Stanislav Malyshev
10e7231f2a
vc9 build fix
2008-07-17 17:48:50 +00:00
Felipe Pena
a142b6cd86
- New tests
2008-07-14 13:36:40 +00:00
Dmitry Stogov
0fa7fedfde
Fixed is_callable() to support closures and return appropriate function name
2008-07-14 12:18:23 +00:00
Felipe Pena
bc12bc69aa
- Fixed test titles
2008-07-14 11:57:44 +00:00
Dmitry Stogov
d5ef2f466c
Added support for lambda functions and closures
2008-07-14 09:49:03 +00:00
Marcus Boerger
2bf3bfc746
- MFH Exception handling
...
[DOC]
- Exceptions can be thrown while exceptions are pending, they are linked
- Exceptions can be handled in __destruct
- Add optional Exception $previous parameter to
. Exception::__construct
. ErrorException::__construct
2008-07-13 21:42:49 +00:00
Antony Dovgal
205ba532cf
apply correct fix
2008-07-13 09:32:46 +00:00
Antony Dovgal
68a61e9981
fix segfault in Exception::__toString()
2008-07-13 09:29:44 +00:00
Antony Dovgal
669a441bcd
fix test
2008-07-13 09:29:16 +00:00
Marcus Boerger
d34b08646d
- Missed one line in merge
2008-07-12 14:59:46 +00:00
Marcus Boerger
61a808dfa9
- MFH Add support for linking exceptions (implements TODO)
2008-07-12 14:57:14 +00:00
Antony Dovgal
cf0708dc88
remove UEXPECTF section
2008-07-09 11:14:20 +00:00
Nuno Lopes
620055c4c2
regenerate
2008-07-08 15:17:52 +00:00
Nuno Lopes
b8673e35a0
now really fix once and for all the #-style comments.
...
also remove some duplicated code in <?, <%, <%= handlers. this also has the side-effect of producing better bytecodes in some special cases
2008-07-08 15:16:35 +00:00
Dmitry Stogov
f7f74367df
Fixed bug #45434 (circular reference causes segfault in gc_collect_cycles())
2008-07-08 08:16:09 +00:00
Scott MacVicar
3bab7c18ac
Tweak last commit, should always return NULL when an entry doesn't exist.
2008-07-07 21:50:56 +00:00
Scott MacVicar
43e7784b0a
Add zend_ini_string_ex so that the you can differentiate between NULL as a value and its absence, this is important for ini_get. Related to bug #42657 and #43348
2008-07-07 21:37:46 +00:00
Felipe Pena
f61bd89b9c
- Removed zend_arg_defs.c
...
The first_arg_force_ref, second_arg_force_ref, third_arg_force_ref,
fourth_arg_force_ref, fifth_arg_force_ref and all_args_by_ref are not more used.
2008-07-07 14:22:02 +00:00
Nuno Lopes
35233302e1
regenerate
2008-07-06 16:21:15 +00:00
Nuno Lopes
ea11f6df43
fix last part of bug #44654
2008-07-06 16:20:51 +00:00
Nuno Lopes
25d8eb1e40
regenerate
2008-07-06 15:53:37 +00:00
Nuno Lopes
3ba706cc62
fix first part of bug #44654 : scan for opening tag <? after a # char
2008-07-06 15:53:23 +00:00
Rui Hirokawa
0686ad4313
improved zend-multibyte detection.
2008-07-06 15:36:19 +00:00
Rui Hirokawa
07ce850026
added test script for zend-multibyte
...
(moved/modified from ext/mbstring/tests/)
2008-07-06 02:01:39 +00:00
Felipe Pena
73d93df417
- Fixed arginfo
2008-07-06 01:57:39 +00:00
Felipe Pena
816e66a85a
- Added arginfo
...
- Removed #include "zend_arg_defs.c"
2008-07-05 23:30:22 +00:00
Dmitry Stogov
578cfc6088
Removed redundant code
2008-07-01 13:20:48 +00:00
Antony Dovgal
22b86e5d80
MFH
2008-07-01 07:23:00 +00:00
Rui Hirokawa
867d7241cc
touched zend_language_scanner.c
2008-06-29 11:37:35 +00:00
Rui Hirokawa
e59fb93765
update zend_language_scanner.l to maintain the dependencies.
2008-06-29 11:20:18 +00:00
Rui Hirokawa
c3286f32ef
implemented again zend-multibyte for PHP 5.3
2008-06-29 08:21:35 +00:00
Stanislav Malyshev
e59bfcffa0
deprecate zend_get_parameters_ex
2008-06-27 21:16:41 +00:00
Stanislav Malyshev
148463ccd3
enable on MSVC too
2008-06-27 18:44:39 +00:00
Stanislav Malyshev
019fd806a0
allow deprecating engine functions
2008-06-27 00:01:25 +00:00
Felipe Pena
d2faad9820
- Fixed test
2008-06-25 22:54:11 +00:00
Felipe Pena
d8bc2719d7
- Removed E_DEPRECATED on is_a()
...
(http://marc.info/?l=php-internals&m=121390431523970&w=2 )
[doc]
2008-06-25 22:35:31 +00:00
Dmitry Stogov
298087c74b
Allowed to override internal classaes with "use"
2008-06-20 17:17:05 +00:00
Dmitry Stogov
8b8f3599ad
Fixed #45307 (define() crashes because of uninitialized variable)
2008-06-19 11:27:41 +00:00
Stanislav Malyshev
58a673a909
Use new parameter parsing API for builtin functions
2008-06-18 23:38:37 +00:00
Felipe Pena
639d221df3
- Improved warning message to call-time pass-by-reference when used with internal function
...
(http://news.php.net/php.internals/38252 )
2008-06-15 18:27:37 +00:00
Matt Wilmas
0ff96ccc7c
MFH: Add pestrndup()
2008-06-13 04:16:58 +00:00
Felipe Pena
cda2b20ae9
- New test
2008-06-11 22:40:13 +00:00
Dmitry Stogov
76a9a42ee2
- Removed direct executor recursion.
...
- Use fastcall calling convention in executor on x86.
2008-06-11 13:18:41 +00:00
Felipe Pena
dc697bcea4
- Change E_COMPILE_ERROR to E_WARNING (for wrong visibility on magic methods)
2008-06-10 23:09:09 +00:00
Stanislav Malyshev
4f522eb576
allow aggregating use statements
2008-06-08 09:38:47 +00:00
Felipe Pena
0da88458e2
- Fixed bug #45186 (__call depends on __callstatic in class scope)
2008-06-05 18:53:06 +00:00
Felipe Pena
2af92fa836
- Fixed bug #45180 ('class::method' works differently than array('class', 'method'))
2008-06-05 18:50:29 +00:00
Felipe Pena
7ba0803964
- New tests
2008-06-05 18:33:00 +00:00
Felipe Pena
a1bbc5698c
- New test
2008-06-04 18:32:56 +00:00
Felipe Pena
cc23d3bade
- Fixed bug #45089 (__callStatic $name case sensitivity)
2008-06-03 18:11:12 +00:00
Felipe Pena
44b91c8b61
- Removed unnecessary XFAIL section
2008-06-03 17:10:21 +00:00
Felipe Pena
426a4cc2e6
- Fixed tests
2008-06-03 15:34:47 +00:00
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