Commit Graph

836 Commits

Author SHA1 Message Date
Sascha Schumann
50a0ea7b8c separate properties of internal classes in ZTS mode fully,
otherwise multiple threads will modify the zvals' contents
without any synchronisation.
2010-08-12 07:58:14 +00:00
Dmitry Stogov
7d55780ca0 In ZTS mode default properties and constants of internal classes can't be modified in place and have to be separated 2010-08-11 09:38:41 +00:00
Felipe Pena
a8e80ec235 - Reverted fix for bug #51421 2010-06-28 16:37:57 +00:00
Felipe Pena
10a9634bc9 - Fixed bug #51421 (Abstract __construct constructor argument list not enforced) 2010-06-26 22:05:13 +00:00
Felipe Pena
eb5e97adf5 - Fixed bug #52160 (Invalid E_STRICT redefined constructor error) 2010-06-26 19:19:16 +00:00
Stanislav Malyshev
5f11cd5693 change namespaced ctors - only __construct would work 2010-04-04 23:28:20 +00:00
Sebastian Bergmann
d2281d1dff sed -i "s#1998-2009#1998-2010#g" **/*.c **/*.h **/*.php 2010-01-05 20:46:53 +00:00
Felipe Pena
81ad353ec2 - Fixed bug #50464 (declare encoding doesn't work with)
# The bug (BC) only happens in this branch.
2009-12-13 15:18:58 +00:00
Felipe Pena
7914d298b4 - Fixed bug #49472 (Constants defined in Interfaces can be overridden) 2009-12-03 12:34:50 +00:00
Felipe Pena
c8faf7e13b - Added CG(encoding_declared) initialization 2009-11-16 22:52:00 +00:00
Felipe Pena
fa2bb07a47 - Fixed bug #50174 (Incorrectly matched docComment) 2009-11-14 19:17:22 +00:00
Pierre Joye
b24e1609a1 - don't hide previous declaration 2009-09-05 21:16:05 +00:00
Dmitry Stogov
4016bfcd71 Fixed bug #46074 (Bus error during running PHP CLI under IRIX 6.5.30) 2009-09-03 14:33:11 +00:00
Felipe Pena
28add3cbf3 - MFH: Cosmetic changes 2009-07-27 14:11:53 +00:00
Matt Wilmas
2462fce244 MFH: Changed error messages to use "cannot" instead of "can not" (meaning "also can") 2009-06-07 15:46:54 +00:00
Matt Wilmas
b907aa4331 MFH:
Restored double->long conversion behavior to that of PHP 5.2 (on most platforms) and prior:
 * Out-of-range numbers overflow/preserve least significant bits (no LONG_MAX/MIN limit)
 * See bug #42868 (presumably-rare platform with different results in 5.2)
 * On 32-bit platforms with 64-bit long type, a zend_long64 cast has been added,
    otherwise it's the same as 5.2
 * Use this conversion method everywhere instead of some plain (long) casts

Added 'L' parameter parsing specifier to ensure a LONG_MAX/MIN limit:
 * Essentially what 5.3's new conversion was doing in most cases
 * Functions with "limit" or "length" type params could be updated to use this,
    and prevent confusing overflow behavior with huge numbers (*also* in 5.2)
  - See bug #47854, for example; or even #42868 again

# Test updates coming
2009-06-04 18:20:45 +00:00
Brian Shire
9e8a9e8bf1 MFH: fix DVAL_TO_LVAL conversion for static array indexes, related to bug #46701 2009-04-22 21:27:19 +00:00
Hannes Magnusson
0829cb89ee MFH: Fixed bug#47981 (error handler not called regardless) 2009-04-16 13:48:01 +00:00
Dmitry Stogov
0b6065e89a Removed deprecated code and fixed function name in error message 2009-04-08 13:17:09 +00:00
Arnaud Le Blanc
13061cf0a0 Removed deprecation warning for ticks 2009-03-27 02:32:57 +00:00
Dmitry Stogov
e2c3c7aa44 Clenaup deprecated namespace code 2009-03-10 10:01:44 +00:00
Christian Seiler
c6d89bd4a8 [DOC] Remove $this support in closures for PHP 5.3 beta 1
- Implementation notes here:
  http://wiki.php.net/rfc/closures/removal-of-this
2009-01-26 22:54:34 +00:00
Dmitry Stogov
666bf10d1a Removed wrong warning message 2009-01-20 13:21:52 +00:00
Dmitry Stogov
d1958eeea8 Fixed bug #47165 (Possible memory corruption when passing return value by reference) 2009-01-20 11:22:45 +00:00
Dmitry Stogov
f7abb84b43 Fixed bug #46755 (warning: use statement with non-compound name)
Fixed bug #46979 (use with non-compound name *has* effect)
2009-01-14 13:57:42 +00:00
Antony Dovgal
7670ad31e6 MFH: use correct check for constants and stop segfaulting
(5_2 doesn't need this)
2009-01-08 22:36:03 +00:00
Sebastian Bergmann
08659c2dcd MFH: Bump copyright year, 3 of 3. 2008-12-31 11:15:49 +00:00
Stanislav Malyshev
feb50cd762 initialize op1 2008-12-15 11:29:36 +00:00
Stanislav Malyshev
16dc391f1f cleanup from ::->\ change 2008-11-26 00:57:05 +00:00
Dmitry Stogov
ea45b713c8 Added support for namespaces with brackets. (Greg) 2008-11-25 09:56:32 +00:00
Arnaud Le Blanc
a23d168531 MFH: Fixed bug #46649 (Setting array element with that same array produces
inconsistent results)
2008-11-23 20:35:16 +00:00
Stanislav Malyshev
a51bbb2754 fix potential crash in zend_do_assign due to opcodes realloc 2008-11-12 00:44:56 +00:00
Stanislav Malyshev
6ebc2b21f1 fix crash - using old opline after realloc 2008-11-12 00:23:21 +00:00
Ilia Alshanetsky
681515b3df Removed unused vars 2008-11-12 00:10:24 +00:00
Stanislav Malyshev
1b4134c07b Namespace resolution streamlining patch
[DOC] new resolution rules should be documented soon
2008-11-11 19:45:29 +00:00
Felipe Pena
9b894e6e62 - Fixed bug #46546 (Segmentation fault when using declare statement with non-string value)
# This issue only happens in this branch
2008-11-11 16:15:53 +00:00
Marcus Boerger
7126de4912 - Next step in namespaces, using / as namespace separator. 2008-11-04 15:58:55 +00:00
Johannes Schlüter
850f9567b8 MFH: Use a better function name for closure related errors and debug_backtrace() 2008-11-03 19:28:32 +00:00
Dmitry Stogov
8bf32f28f2 Imporoved compile-time constant substitution (Matt) 2008-08-29 10:17:08 +00:00
Etienne Kneuss
cc9a8ee528 MFH:
- Copy custom callback to the child class if any
- Prevent overwriting valid parent callbacks when implementing Serializable
- Export zend_user_(un)serialize to be available for custom callbacks
2008-08-24 18:22:33 +00:00
Felipe Pena
9d5ab6e54f - MFH: Removed unused arguments 2008-08-22 15:54:21 +00:00
Felipe Pena
cf7384aa40 - MFH: Constness (Added const qualifier to several function parameters) 2008-08-12 17:20:25 +00:00
Jani Taskinen
47a2bad767 - No C++ comments in C files! 2008-08-03 11:48:20 +00:00
Dmitry Stogov
1f09a6b359 Fixed constant substitution in constant expression context 2008-07-31 14:27:43 +00:00
Dmitry Stogov
44caafc62e Fixed constant substitution (Matt) 2008-07-28 14:12:19 +00:00
Dmitry Stogov
478acfd8b4 . Added support for using static HEREDOCs to initialize static variables and class members or constants. (Matt)
. Improved syntax highlighting and consistency for variables in double-quoted strings and literal text in HEREDOCs and backticks. (Matt)
. Optimized interpolated strings to use one less opcode. (Matt)
2008-07-26 15:30:28 +00:00
Dmitry Stogov
ed2d3e4c7e Substitute persistent constants by their values at compile time. (Matt) 2008-07-25 04:54:08 +00:00
Moriyoshi Koizumi
4f42ed39c0 - Revived zend multibyte 2008-07-24 22:21:41 +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
44325e6473 Fixed bug #45178 (memory corruption on assignment result of "new" by reference) 2008-07-24 11:47:51 +00:00