Gwynne Raskind
0af1e412a4
Fix build under Clang 2.9 - see LLVM bug #9164 ( http://llvm.org/bugs/show_bug.cgi?id=9164 ). Tested with GCC and Clang on Darwin and Ubuntu.
2011-08-07 05:20:49 +00:00
Rasmus Lerdorf
80931fee0c
Since we have fci_cache = &fci_cache_local inside that block
...
and fci_cache is then later used outside the block, fci_cache_local
can't be block-scoped here
2011-08-07 00:50:46 +00:00
Rasmus Lerdorf
99cb211c6c
Use snprintf here instead to make the static analyzers happy.
2011-08-07 00:25:22 +00:00
Rasmus Lerdorf
e2315d295a
Use property_info.name here instead since *name might be free'ed at this point
...
@dmitry please review
2011-08-07 00:01:17 +00:00
Felipe Pena
707a8f70b8
- Added ZEND_MOD_END macro to use in the end of zend_module_dep[]
2011-08-06 14:47:44 +00:00
Felipe Pena
783b05326a
- Added missing PHP_FE_END/ZEND_FE_END
2011-08-06 01:22:27 +00:00
Rasmus Lerdorf
c1c2e18cb5
Another potential missing va_end() found by Coverity
2011-08-05 22:26:16 +00:00
Rasmus Lerdorf
22a5e73861
Fix missing va_end() found by Coverity
2011-08-05 22:18:42 +00:00
Dmitry Stogov
a550566ce9
Fixed bug #55339 (Segfault with allow_call_time_pass_reference = Off)
2011-08-02 07:38:23 +00:00
Dmitry Stogov
5e923d23b4
Fixed bug #55305 (ref lost: 1st ref instantiated in class def, 2nd ref made w/o instantiating)
2011-08-01 15:23:16 +00:00
Dmitry Stogov
ad4d6d1ce3
Added support for Class::{expr}() syntax (Pierrick)
2011-08-01 12:08:44 +00:00
Dmitry Stogov
2edd90100c
Fixed bug #50816 (Using class constants in array definition fails).
2011-08-01 11:21:23 +00:00
Felipe Pena
9ffc8b739f
- Fixed tests
2011-07-31 18:51:15 +00:00
Stefan Marr
65cbcb3be9
Fixed Bug #55214 use of __CLASS__ within trait returns trait name not class name [TRAITS] [DOC]
2011-07-31 18:18:56 +00:00
Stefan Marr
0158804a15
Added __TRAIT__ magic constant [TRAITS] [DOC]
...
# __TRAIT__ behaves like __CLASS__ more or less but is constraint to traits.
# Since traits are not types, there are not many valid use cases, and trying
# to use __TRAIT__ to make traits more like classes is discouraged.
2011-07-31 17:39:30 +00:00
Stefan Marr
858164624d
Fixed test which was assuming that E_STRICT is not on by default.
2011-07-31 16:15:40 +00:00
Felipe Pena
f52197815a
- Fixed bug #55326 (Trait method copying misindentifies serialization callbacks)
...
patch by: Gustavo Lopes (cataphract@php)
2011-07-31 12:27:47 +00:00
Dmitry Stogov
2b606e0a39
Reverted Gopal's patch that allowed plugable interned string check
...
1. It introduced a significant slowdown
2. It didn't fix the real problem in APC (I'm goint to commit the fix)
2011-07-28 12:01:42 +00:00
Gopal Vijayaraghavan
be217d08a4
Allow zend_is_interned_string to be pluggable
2011-07-27 23:34:49 +00:00
David Soria Parra
fa7c07b10c
Check if given string is long enough in zend_*_strtod
2011-07-27 14:17:45 +00:00
Pierre Joye
6e4435d628
- add binary suport, FR #50638 , as defined in RFC https://wiki.php.net/rfc/binnotation4ints , patch by Jonah Harris
2011-07-27 00:14:02 +00:00
Felipe Pena
68e5e29850
- Fix compiler warning
2011-07-25 11:51:43 +00:00
Felipe Pena
468d13513c
- Use ZEND_FE_END macro here
2011-07-25 11:50:10 +00:00
Felipe Pena
f1f2a649e2
- Added new macro to be used in the end of zend_function_entry declaration (Gwynne)
2011-07-25 11:30:53 +00:00
Stanislav Malyshev
4d926b1fa3
Change E_ALL to include E_STRICT
2011-07-23 22:07:22 +00:00
Pierre Joye
80496c9dc4
- add short array syntax as defined in https://wiki.php.net/rfc/shortsyntaxforarrays , 2nd solution using => only
2011-07-23 20:23:21 +00:00
Stefan Marr
9a483afa5b
Fixed incorrect initialization when copied op_array.vars was NULL (TRAITS)
2011-07-23 18:12:31 +00:00
Stefan Marr
9f66085649
Fixed bug in the handling of conflicting property initializers for traits.
...
# Bug was uncovered by discussion in http://news.php.net/php.internals/54129
# Forgot to check the actual value of the initializer comparison, only checked
# whether comparison was successful which is not enough.
2011-07-23 13:48:07 +00:00
Stefan Marr
52b81b8566
Added test case which was only added to trunk, bug seems to be fixed already.
2011-07-23 13:42:58 +00:00
Pierre Joye
9805e1674a
- remove magic quotes support, functions are kept (see the NEWS entry for the details) for BC reasons but do not allow to set enable MQ
2011-07-22 11:25:30 +00:00
Derick Rethans
4e5960ed88
- Added a check for an enviroment variable (ZEND_DONT_UNLOAD_MODULES) that, if
...
set, prevents PHP from dl_closing() modules on shutdown.
- This makes it possible to spot memory leaks with valgrind in shared modules.
2011-07-14 12:21:15 +00:00
Stanislav Malyshev
c6076da77c
remove warning for is_a() BC
2011-07-12 05:20:40 +00:00
Dmitry Stogov
a0974f2d59
Fixed bug #54305 (Crash in gc_remove_zval_from_buffer)
2011-07-11 10:31:49 +00:00
Dmitry Stogov
f214fd4f7d
Fixed bug #55150 (php -a segfaults)
2011-07-11 07:10:30 +00:00
Felipe Pena
c5901b64a7
- Added zend_is_auto_global_quick function
2011-07-10 15:03:38 +00:00
Felipe Pena
327a9d45c9
- Year++
2011-07-10 13:05:32 +00:00
Felipe Pena
9aa25d0938
- Minor optimization taking the computed hash of interned strings
2011-07-10 12:37:42 +00:00
Felipe Pena
ce211cf5e6
- Minor optimization, use the computed hash when available
2011-07-10 02:00:00 +00:00
Felipe Pena
70cacfd3a8
- Changed zend_resolve_class_name() prototype
...
# No needed to pass fetch_type as pointer here
2011-07-09 17:27:59 +00:00
Felipe Pena
644b5fdec0
- WS
2011-07-09 14:35:37 +00:00
Felipe Pena
32a4d68013
- Minor optimization and clean up
2011-07-09 12:06:11 +00:00
Felipe Pena
32f47f5c41
- CS and WS
2011-07-08 19:52:21 +00:00
Felipe Pena
09842e83ba
- Fixed bug #55156 (ReflectionClass::getDocComment() returns comment even though the class has none)
2011-07-07 23:07:14 +00:00
Dmitry Stogov
b7e124004f
Fixed bug #55135 (Array keys are no longer type casted in unset())
2011-07-06 12:04:02 +00:00
Felipe Pena
8953916314
- Fixed bug #55137 (Changing trait static method visibility)
2011-07-06 00:33:38 +00:00
Dmitry Stogov
adabdede5e
Fixed bug #53727 (Inconsistent behavior of is_subclass_of with interfaces)
2011-07-04 14:55:39 +00:00
Felipe Pena
3e6b211935
- Removed accidental offsetof definition
2011-07-03 01:29:23 +00:00
Felipe Pena
d8e8e68f07
- Fixed bug #55086 (Namespace alias does not work inside trait's use block)
...
patch by: Pierrick
2011-07-02 17:12:20 +00:00
Felipe Pena
e9ce400f8b
- Fixed build on Windows
2011-06-24 00:38:53 +00:00
Felipe Pena
0372e6ad80
- Improved parse error messages
2011-06-23 23:00:53 +00:00
Felipe Pena
5121f10926
- Fix ZTS build
2011-06-22 15:12:47 +00:00
Ilia Alshanetsky
34d93f0c06
Zend Signal Handling
2011-06-22 14:23:21 +00:00
Felipe Pena
dcccfc2267
- Fix broken code in 64bit
2011-06-20 22:59:55 +00:00
Patrick Allaert
b4a83a3eef
Fixed typo
2011-06-20 20:42:02 +00:00
Felipe Pena
b3a063643b
- Optimize property finding by zend_hash_quick_find
2011-06-20 02:04:13 +00:00
Felipe Pena
8a956399fe
- Simplify function code
2011-06-20 01:36:23 +00:00
Felipe Pena
864caa2de1
- Avoid re-hash here too
2011-06-20 01:21:47 +00:00
Felipe Pena
d6f5f3782b
- Minor optimization (avoid to re-hash already computed var name hash)
2011-06-19 21:56:09 +00:00
Felipe Pena
335cf2fc23
- Removed unnecessary TSRMLS_FETCH
2011-06-19 20:16:08 +00:00
Stanislav Malyshev
4b0e699051
fix test with floats - make it not produce different result
...
on 32 and 64 bit
2011-06-19 18:52:58 +00:00
Felipe Pena
772768f41c
- Fix test
2011-06-19 00:18:17 +00:00
Felipe Pena
72c4e72570
- Fixed compiler warning (redefinition of offsetof)
2011-06-18 18:11:27 +00:00
Felipe Pena
a5974fdba8
- New tests for new feature
2011-06-14 02:05:37 +00:00
Felipe Pena
a96426874a
- Fix build on Windows
2011-06-13 17:52:23 +00:00
Felipe Pena
5670174b66
- Fixed bug #54624 (class_alias and type hint)
2011-06-12 21:10:31 +00:00
Felipe Pena
0333b86f2d
- Added Bison 2.5 to bison_version_list
2011-06-12 17:26:45 +00:00
Felipe Pena
80d432ca62
- Avoid zend_do_ticks() call for each statement in parsing
2011-06-12 01:43:10 +00:00
Felipe Pena
0a0443f07c
- Missing fixes for grammar fix 's/valid path/a valid path/'
2011-06-09 00:23:43 +00:00
Felipe Pena
ddaddf6c2a
s/valid path/a valid path/
2011-06-08 00:53:55 +00:00
Felipe Pena
08b3d76cbf
- Fixed bug #55007 (compiler fail after previous fail)
2011-06-07 22:58:38 +00:00
Felipe Pena
66ac89a00b
- Added indirect method call through array variable (FR Bug #47160 )
2011-06-06 21:42:05 +00:00
Felipe Pena
32b5f8a1a3
- Added new parameter parsing option (p - for valid path (string without null byte in the middle))
...
# The tests will be fixed in the next commits
2011-06-06 21:28:16 +00:00
Hannes Magnusson
148120e1e9
Fix tests when running without mbstring
2011-06-05 09:35:49 +00:00
Hannes Magnusson
a1ae8af54c
Fix tests
...
#Note to self; do not rename tests just before committing
2011-06-03 17:38:37 +00:00
Hannes Magnusson
3837f1205b
Add tests for broken function arguments
2011-06-03 17:12:59 +00:00
Stanislav Malyshev
e18618905c
scalar types cleanup
2011-06-03 01:09:32 +00:00
Dmitry Stogov
c270347c0b
MFH: Arithmetic speedup. Inlined most probable code-paths for arithmetic operations directly into executor.
2011-05-31 12:05:25 +00:00
Dmitry Stogov
6fca028fc5
MFH: Fixed bug #54957 (Memleak in alloc_globals_ctor)
2011-05-31 11:38:31 +00:00
Dmitry Stogov
eaeb4537ec
MFH: Fixed bug #54910 (Crash when calling call_user_func with unknown function name)
2011-05-31 11:36:57 +00:00
Philip Olson
07e9cfe6a5
Fixed test
2011-05-24 23:49:04 +00:00
Felipe Pena
1101293b3f
- Fixed bug #54804 (__halt_compiler and imported namespaces) (Pierrick)
2011-05-19 23:20:47 +00:00
Rasmus Lerdorf
c24ef71e63
Decouple <?= from the short_tags setting and make it always enabled
2011-05-19 16:26:29 +00:00
Scott MacVicar
cfdd25d5c0
ZEND_THREAD_SAFE and ZEND_DEBUG_BUILD are not meant to be case insensitive
2011-05-17 22:24:44 +00:00
Pierre Joye
e6368659a7
- WS
2011-05-17 10:39:18 +00:00
Rasmus Lerdorf
a546b3207f
oops, can't use that macro here
2011-05-16 17:26:10 +00:00
Rasmus Lerdorf
a5eeecb13f
Suppress a dozen unused return value warnings in places where the return
...
value is really not useful to us.
2011-05-16 17:22:41 +00:00
Rasmus Lerdorf
353077d234
Get rid of autoconf warnings
2011-05-16 00:14:47 +00:00
Stanislav Malyshev
516c2f5920
removing scalar types in trunk
2011-05-15 00:36:13 +00:00
Stefan Marr
8ba00176f1
Fixed a inconsitent condition for aliasing traits.
...
- missed a failing Traits test, but is now fixed, and the bug covered by a dedicated test
# Should always comment conditions that go over more than two lines :-/
2011-05-13 20:28:34 +00:00
Dmitry Stogov
6eedfb9b3a
Fixed direct threaded executor (php zend_vm_gen.php --with-vm-kind=GOTO)
2011-05-05 16:02:11 +00:00
Dmitry Stogov
9fb4cd1a91
Fixed bug #54585 (track_errors causes segfault)
2011-04-25 07:50:07 +00:00
Dmitry Stogov
821d7169d9
Fixed bug #54367 (Use of closure causes problem in ArrayAccess).
2011-04-20 12:59:18 +00:00
Felipe Pena
b57d9f41cf
- Fixed ZTS build
2011-04-17 22:06:27 +00:00
Dmitry Stogov
50ce16deff
Fixed bug #54268 (Double free when destroy_zend_class fails)
2011-04-15 12:43:20 +00:00
Dmitry Stogov
8fe3ea75cb
Changed initialization order to workaround against crashes after memory overflow
2011-04-15 09:59:42 +00:00
Dmitry Stogov
e623543452
Improved GC to avaid reconstruction of HashTables for object properties
2011-04-15 09:57:43 +00:00
Sebastian Bergmann
6f3148db81
Add optional argument to debug_backtrace() and debug_print_backtrace() to limit the amount of stack frames returned.
2011-04-09 09:52:24 +00:00
Dmitry Stogov
efcb9a71cd
- Fixed bug #54358 (Closure, use and reference)
...
- Fixed bug #54039 (use() of static variables in lambda functions can break staticness)
2011-04-08 10:02:07 +00:00
Dmitry Stogov
d3274b7f20
Missed tests
2011-04-07 14:34:07 +00:00
Dmitry Stogov
2e25ec9eb7
Fixed bug #54372 (Crash accessing global object itself returned from its __get() handle)
2011-04-07 13:35:27 +00:00
Felipe Pena
9e05a9ad13
- Removed unused variable (Pierrick)
2011-04-03 17:20:34 +00:00
Pierre Joye
6aed81764e
- fix bug #54423 , fix build in trunk, introduce by previous related commit
2011-03-31 23:58:06 +00:00
Antony Dovgal
6e7a3015e5
fix bug #54423 (classes from dl()'ed extensions are not destroyed)
2011-03-31 11:59:34 +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
8c06867e11
Fixed bug #54262 (Crash when assigning value to a dimension in a non-array)
2011-03-16 11:14:33 +00:00
Stanislav Malyshev
a5b9eda06a
fix UMR when setting forward string offset
2011-03-16 05:41:50 +00:00
Stanislav Malyshev
8efa208e0b
fix UMR when variable name is an object and __toString is used
...
# zend_call_function checks IS_REF on This
2011-03-16 05:25:02 +00:00
Dmitry Stogov
4c7c9df815
Fixed multibyte related issues
2011-03-14 16:02:04 +00:00
Dmitry Stogov
bbc879b587
Fixed multibyte related issues
2011-03-14 16:00:59 +00:00
Sebastian Bergmann
2a94e04aeb
Fix prototype of zend_fetch_debug_backtrace().
2011-03-11 03:52:39 +00:00
Moriyoshi Koizumi
cdb9ee0d1a
Fix zend.multibyte oddities. Hope this will address all the known problems.
2011-03-06 07:00:30 +00:00
Felipe Pena
3510be42b7
- Fixed bug #43512 (same parameter name can be used multiple times in method/function definition)
2011-02-17 23:24:50 +00:00
Dmitry Stogov
64351b7add
Fixed Bug #53958 (Closures can't 'use' shared variables by value and by reference)
2011-02-14 10:52:16 +00:00
Dmitry Stogov
b84967d3e2
Fixed Bug #53971 (isset() and empty() produce apparently spurious runtime error)
2011-02-14 08:46:53 +00:00
Pierre Joye
a0a603d16b
- null deref fix
2011-02-07 10:25:34 +00:00
Felipe Pena
f6a3cd6f57
- Fixed bug #53748 (Using traits lead to a segmentation fault)
2011-01-28 21:19:09 +00:00
Pierre Joye
9885f30873
- fix warning about undefined zend_multibyte_set_filter and zend_multibyte_yyinput_again, why are they not in zend_multibyte.h btw?
2011-01-19 21:40:15 +00:00
Pierre Joye
a27baa7161
- WS
2011-01-19 17:17:52 +00:00
Pierre Joye
3584bbee3b
- avoid local redeclaration
2011-01-19 17:06:50 +00:00
Stanislav Malyshev
0c1ba13d3b
Fix bug #47143 , bug #51458 - provide more useful info in bad exception cases
2011-01-16 21:24:43 +00:00
Stanislav Malyshev
b4dba12d34
Add options to debug_backtrace functions
2011-01-16 20:39:22 +00:00
Felipe Pena
c6544fad1a
- Fixed bug #53717 (checking the number of arguments is wrong in zend_parse_method_parameters_ex())
...
patch by: klaus at triendl dot eu
2011-01-12 22:17:10 +00:00
Stefan Marr
478e5d1dd0
Added trait_exists() [TRAITS] [DOC]
...
- also changed class_exists() to return false for traits
- added related tests, and get_declared_traits() tests in ext/s/t/co
2011-01-09 19:57:41 +00:00
Rasmus Lerdorf
dc444e8a37
Fix bug #53682
2011-01-06 22:48:20 +00:00
Scott MacVicar
8634d8ca2b
Add test for bug #53632
2011-01-04 23:36:56 +00:00
Scott MacVicar
bb08994d71
Fix bug #53632 with x87 fpu
2011-01-04 22:36:23 +00:00
Felipe Pena
8d8f6552ca
- Fixed tests
2011-01-04 22:01:09 +00:00
Ilia Alshanetsky
7a2157cf37
Fixed Bug #53629 (memory leak inside highlight_string()).
2011-01-03 14:39:48 +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
Antony Dovgal
ae0e5a0c8c
initialize script_encoding_list (reported by Gustavo Lopes)
2010-12-27 20:25:34 +00:00
Felipe Pena
d88a9a3f80
- Fixed INI test section
2010-12-25 01:42:45 +00:00
Moriyoshi Koizumi
e540cb0c45
- Fix startup warnings.
2010-12-24 08:42:21 +00:00
Felipe Pena
7c9fb17d00
- Fix build
2010-12-20 12:41:35 +00:00
Stefan Marr
d6ac811e5d
Removed dead code.
...
# should not have been commited in the first place.
2010-12-20 08:49:59 +00:00
Moriyoshi Koizumi
a304a0fc04
- Avoid allocating extra buffers. This makes parsing with zend.multibyte enabled as fast as with it disabled.
2010-12-20 03:16:09 +00:00
Moriyoshi Koizumi
b09bb21292
- Fix a bug that the script gets wrongly converted into UTF-8 when the script encoding is not GL-safe.
2010-12-20 03:11:41 +00:00
Felipe Pena
3e3d7c52f0
- Fix build
2010-12-20 01:42:25 +00:00
Stefan Marr
7357867bac
Added strict handling of properties in traits.
...
# This is the first attempt to implement the properties as discussed on the mailinglist.
# RFC is not updated to reflect this changes, yet.
2010-12-20 00:52:40 +00:00
Stefan Marr
d88515e1b8
Fixed naming of parameters, was inconsistent with implementation.
2010-12-19 22:13:41 +00:00
Moriyoshi Koizumi
a57e59ed6c
WS
2010-12-19 17:29:21 +00:00
Moriyoshi Koizumi
bbf3d43c1e
* Refactor zend_multibyte facility.
...
Now mbstring.script_encoding is superseded by zend.script_encoding.
2010-12-19 16:36:37 +00:00
Stefan Marr
d7c3c627e8
Changed E_ERROR to E_COMPILE_ERROR for Trait compilation errors.
...
#Thanks for catching this Kalle.
2010-12-12 17:12:29 +00:00
Stefan Marr
1d2a63da5f
Changed collision warning for Traits to fatal error.
...
#This change is made to have all possible cases of collisions consistently handled as fatal errors.
#The reason to have it fatal is that most likely something changed unexpectedly and needs urgent attention by the developer, since it will fail eventually anyway for instance because the expected method is missing in the class.
#Discussed in this thread: http://marc.info/?l=php-internals&m=129155790226876
2010-12-12 16:48:02 +00:00
Dmitry Stogov
c35fc78890
Fixed bug #53511 (Exceptions are lost in case an exception is thrown in catch operator)
2010-12-09 16:38:37 +00:00
Dmitry Stogov
5f8ff99a05
Fixed startup errors if ext/exif is loaded without ext/mbstring
2010-12-08 14:49:26 +00:00
Dmitry Stogov
755c2cd0d8
Removed compile time dependency from ext/mbstring
2010-12-08 11:27:34 +00:00
Pierre Joye
e72e27eecc
- fix ts build
2010-12-01 16:48:53 +00:00
Stefan Marr
d0c144d732
Removed old commented function prototypes.
...
# Was referring to old trait-related code that is long gone
2010-12-01 15:20:11 +00:00
Dmitry Stogov
a45631d966
Allowed indirect $this access (Scott)
2010-12-01 13:33:49 +00:00