Xinchen Hui
c081ce628f
Bump year
2014-01-03 11:08:10 +08:00
Nikita Popov
96b1c2145c
Provide more macros for handling of interned strings
...
* str_erealloc behaves like erealloc for normal strings, but will
use emalloc+memcpy for interned strings.
* str_estrndup behaves like estrndup for normal strings, but will
not copy interned strings.
* str_strndup behaves like zend_strndup for normal strings, but
will not copy interned strings.
* str_efree_rel behaves like efree_rel for normal strings, but
will not free interned strings.
* str_hash will return INTERNED_HASH for interned strings and
compute it using zend_hash_func for normal strings.
2013-09-13 19:42:10 +02:00
krakjoe
2c0d93bcbf
zend_register_null_constant
...
fixed zend_register_bool_constant usage in macros
use REGISTER_MAIN_* in zend_register_standard_constants
2013-04-15 20:47:13 +01:00
krakjoe
a49bb472a3
zend_API.h included
...
ZVAL_* family in use
2013-04-15 18:40:09 +01:00
krakjoe
2966e63faf
use Z_* family macros
2013-04-15 18:27:45 +01:00
krakjoe
f11d620cb6
zend_register_bool_constant patch
2013-04-15 18:13:09 +01:00
Xinchen Hui
a666285bc2
Happy New Year
2013-01-01 16:37:09 +08:00
Dmitry Stogov
032d140fd6
Improved traits implementation. Now to support __CLASS__ constant in traits php doesn't have to copy the complete compiled method, but can reuse the same code. The resolution of __CLASS__ constants in methods defined in traits are delayed till run-time. This approach also made possible to use __CLASS__ constant as default value for traits properties and method arguments.
2012-01-17 08:09:13 +00:00
Felipe Pena
8775a37559
- Year++
2012-01-01 13:15:04 +00:00
Dmitry Stogov
e43ff1359e
Fixed ZE specific compile warnings (Bug #55629 )
2011-09-13 13:29:35 +00:00
Felipe Pena
17a7fd0656
- Minor optimization taking the computed hash of interned strings
2011-07-10 12:37:42 +00:00
Scott MacVicar
453c954f8a
ZEND_THREAD_SAFE and ZEND_DEBUG_BUILD are not meant to be case insensitive
2011-05-17 22:24:44 +00:00
Stanislav Malyshev
b4dba12d34
Add options to debug_backtrace functions
2011-01-16 20:39:22 +00:00
Felipe Pena
0203cc3d44
- Year++
2011-01-01 02:17:06 +00:00
Felipe Pena
5f31c44509
- Add missing check
2010-11-14 01:38:52 +00:00
Felipe Pena
c95e919e3e
- Fix the constant detection
2010-11-13 19:50:55 +00:00
Felipe Pena
b5b0599398
- Fixed bug #53305 (E_NOTICE when defining a constant starts with __COMPILER_HALT_OFFSET__)
...
- Fixed a part of bug #53260 (the __COMPILER_HALT_OFFSET__ name is not shown in the E_NOTICE)
2010-11-13 18:46:11 +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
f7ce69585c
- Interned string related callbacks moved turned from compiler_globals into real globals
...
- Updated API version number
2010-05-25 09:00:20 +00:00
Dmitry Stogov
c58b131e29
- Reimplemented ZEND_INIT_FCALL_BY_NAME and ZEND_INIT_NS_FCALL_BY_NAME to use literals instead of additional operands
...
- Optimized access to global constants
2010-04-27 12:09:13 +00:00
Dmitry Stogov
e87d72002b
Optimized access to global constants using values with pre-calculated hash_values from litersls table
2010-04-22 15:03:17 +00:00
Dmitry Stogov
dd5c478be6
Added concept of interned strings. All strings constants known at compile time are allocated in a single copy and never changed.
2010-04-20 11:05:54 +00:00
Sebastian Bergmann
d2281d1dff
sed -i "s#1998-2009#1998-2010#g" **/*.c **/*.h **/*.php
2010-01-05 20:46:53 +00:00
Stanislav Malyshev
e2ad4e0178
fix #46304 : Defining namespaced constant using define() uses case sensitive match for namespace
2009-01-12 21:54:37 +00:00
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
2008-12-31 11:15:49 +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
Marcus Boerger
7126de4912
- Next step in namespaces, using / as namespace separator.
2008-11-04 15:58:55 +00:00
Nuno Lopes
8a77e55566
clean some dead code (with static analysis help)
2008-09-23 15:18:26 +00:00
Felipe Pena
cf7384aa40
- MFH: Constness (Added const qualifier to several function parameters)
2008-08-12 17:20:25 +00:00
Dmitry Stogov
44caafc62e
Fixed constant substitution (Matt)
2008-07-28 14:12:19 +00:00
Hannes Magnusson
d619b57efa
MFH: Add E_USER_DEPRECATED (patch by Lars Strojny)
2008-07-21 09:41:00 +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
a4b872a6d8
iFixed memory leak
2008-02-19 12:00:53 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Jani Taskinen
5e123ebef9
MFH: add ZEND_DEBUG_BUILD constant
2007-11-20 16:34:25 +00:00
Yiduo (David) Wang
4b4d634cb9
MFH: Added macros for managing zval refcounts and is_ref statuses
2007-10-07 05:22:07 +00:00
Dmitry Stogov
eb0c56ada1
Fixed bug #42820 (defined() on constant with namespace prefixes tries to load class).
2007-10-03 10:33:02 +00:00
Dmitry Stogov
3a3a7e7441
Fixed bug #42798 (__autoload() not triggered for classes used in method signature).
2007-10-01 09:32:48 +00:00
Dmitry Stogov
166266df68
Added support for Late Static Binding. (Dmitry, Etienne Kneuss)
2007-09-29 07:28:34 +00:00
Dmitry Stogov
f32ffe9b43
Namespaces
2007-09-28 19:52:53 +00:00
Dmitry Stogov
786621893e
Improved fix for bug #41633 (self:: doesn't work for constants) to support function define()
2007-07-27 16:29:12 +00:00
Antony Dovgal
91da96ba71
MFH: change E_NOTICE to E_ERROR when using a class constant from non-existent class
...
(noticed by Jani)
add tests
2007-06-07 08:37:40 +00:00
Ilia Alshanetsky
17c0c49a54
Addres limitation of __HALT_COMPILER() that allowed only one instance
...
per request.
# Patch by Greg Beaver
2007-04-04 00:42:42 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Johannes Schlüter
2193a77eed
- Here, too
2006-10-18 17:17:18 +00:00
Johannes Schlüter
dcf249004c
- MFH: Fix #38465 (ReflectionParameter fails if default value is an access to self::
2006-10-18 16:35:15 +00:00
Antony Dovgal
8a03fc5ef3
add missing parts of E_RECOVERABLE merge
2006-05-10 14:04:18 +00:00
Dmitry Stogov
79983ce0ce
Fix: incorrect string length passed
2006-03-15 14:12:26 +00:00
Dmitry Stogov
7865dfb5b8
Eliminated run-time constant fetching for TRUE, FALSE and NULL
2006-03-15 09:04:36 +00:00
Dmitry Stogov
161ae714ae
zend_hash_apply() doesn't use ZEND_HASH_APPLY_... macros
2006-03-14 11:24:45 +00:00