Commit Graph

5918 Commits

Author SHA1 Message Date
David Soria Parra
8af2635eab MFH: Adjust tests. The order in which notices appear is platform dependend as the function call ordering in parameter lists is not defined in C. 2009-07-07 12:11:53 +00:00
andy wharmby
6e96ae79a3 Fix test 2009-07-06 19:35:01 +00:00
Felipe Pena
aafaa9c019 - New test 2009-06-30 11:37:42 +00:00
Felipe Pena
5a8169902a - MFH: Fixed bug #48709 (metaphone and 'wh') 2009-06-30 11:34:31 +00:00
Pierre Joye
25c47a2522 - MF52: calloc must actually clear the requested size (Andrei) 2009-06-28 09:48:48 +00:00
Johannes Schlüter
4b4283bdc0 Bump version to 5.3.0 and API Nos. up 2009-06-26 15:44:19 +00:00
Scott MacVicar
d976be4bda Make the check case sensitive, and since we can only have a constructor that matches the class name or is __construct
its probably safe to just check for __. This means we can skip lowering the function_name, which is hard to be binary
safe sine we don't store the length.

If we just did a zend_hash_exists lookup we'd be fine since its stored lowercased already :)
2009-06-19 03:29:47 +00:00
Scott MacVicar
8e3aebd550 Fix bug #48215 - Calling a method with the same name as the parent class calls the constructor instead. 2009-06-18 13:46:16 +00:00
Rasmus Lerdorf
a7cc9e7274 Need the gcc version check here too 2009-06-17 08:55:23 +00:00
Rasmus Lerdorf
f90425316a Tweak to make this compile with gcc2 2009-06-16 16:10:15 +00:00
Felipe Pena
f9bb99055e - MFH: Fixed build (removed trailing comma) patch by Seiji Masugata <s.masugata at digicom.dnp.co.jp> 2009-06-16 14:33:33 +00:00
andy wharmby
ceca4f3615 Basic tests for function_exists() and get_defined_functions(). Tested on Windows, Linux and Linux 64 bit. 2009-06-14 13:49:16 +00:00
Felipe Pena
2cb9fe1f89 - Constified method_name arg. in zend_get_user_call_function() and zend_get_user_callstatic_function() 2009-06-12 21:36:53 +00:00
Felipe Pena
5f8ca6da95 MFH: Fixed bug #48533 (__callStatic is not invoked for private/protected methods) 2009-06-12 01:05:25 +00:00
Pierre Joye
ba79cd5a23 - fix build (void alarm) 2009-06-09 09:26:02 +00:00
Pierre Joye
c59a4a0173 - typo 2009-06-08 21:27:05 +00:00
Ilia Alshanetsky
5289261baa Fixed bug #44827 (define() is missing error checks for class constants) 2009-06-08 01:26:03 +00:00
Matt Wilmas
dca18b68d1 MFH: Fixed bug #47836 (array operator [] inconsistency when the array has PHP_INT_MAX index value)
Also simplified related array_push() test
2009-06-07 19:28:15 +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
Brian Shire
cb7a21a42b MFH: Make pass_two visible to extensions with ZEND_API (required for optimizer). 2009-06-05 23:20:59 +00:00
Rasmus Lerdorf
04f5d7c909 There is no always_inline attribute in gcc2 2009-06-05 22:14:21 +00:00
Matt Wilmas
d55300298e MFH: Added zend_eval_stringl and made create_function(), etc. binary-safe 2009-06-05 18:50:32 +00:00
Arnaud Le Blanc
85b9327836 MFH: better fix for #48409 , #48428 , #48228 2009-06-05 11:21:31 +00:00
Matt Wilmas
26cde1ee2f MFH: Updated tests after double->long conversion change (basically to match 5.2)
# Let me know about other failing tests I missed
2009-06-04 18:25:06 +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
Jani Taskinen
c7172ee172 fix test 2009-06-02 08:03:07 +00:00
Nuno Lopes
95ef46c034 fix compiler warnings by moving all std includes after include of zend_config.h.
this also fixes the build with stricter compilers than gcc (like clang)
2009-06-01 17:51:53 +00:00
Arnaud Le Blanc
a197c0b751 MFH: New tests
# These tests were failing on different configurations, so adding them
# all to get more chances of seeing one failing in case of problem.
2009-06-01 16:10:35 +00:00
Arnaud Le Blanc
2403a58011 MFH: better fix for #48409 , #48428 , #48228 2009-06-01 15:07:42 +00:00
Arnaud Le Blanc
b4d9c79162 MFH: Take small blocks cache into account in memory_get_usage() 2009-05-30 16:42:13 +00:00
Arnaud Le Blanc
bed00e15d1 MFH: Fix aliasing issue (fixes #48409 , #48428 , #48228) 2009-05-30 16:31:12 +00:00
Pierre Joye
469d4938fc - MF52: #42143, the constant NAN is reported as 0 on Windows 2009-05-29 08:11:36 +00:00
Sara Golemon
00a554b4a3 MFH(r-1.103) Expand zend_symtable_update_current_key to allow specifying HashPosition 2009-05-25 01:18:00 +00:00
Arnaud Le Blanc
b33c51693b MFH: Use zend_get_property_info() in get_class_vars() (fixes #46812) 2009-05-22 11:19:30 +00:00
Brian Shire
c80f0bf769 MFH: Fix bug #47859 parse_ini_file() does not like asterisk (*) in key in the beginning, and allow [*_-] chars at start of ini labels 2009-05-19 15:59:36 +00:00
Zoe Slattery
e5348b9152 Removing redundant UEXPECT 2009-05-18 19:16:30 +00:00
Jani Taskinen
1033af1cb3 MFH: Fixed module loading order and made request shutdown functions also to
be loaded in reverse like all other shutdowns are.
2009-05-13 18:48:20 +00:00
Felipe Pena
db1eafa8d0 - MFH: Fixed bug #48248 (SIGSEGV when access to private property via &__get) 2009-05-12 22:55:05 +00:00
Felipe Pena
4f068cc23b - MFH: Fix code && new test 2009-05-11 15:03:47 +00:00
Felipe Pena
85bcfa89ad - Added missing param checks 2009-05-11 14:14:52 +00:00
Jani Taskinen
2a31dbbadf MFH:- Removed unnecessary TSRMLS_FETCH() calls 2009-05-11 08:31:15 +00:00
Jani Taskinen
daae8fb6fc MFH: cs + ws 2009-05-11 07:52:49 +00:00
Jani Taskinen
f3bd837434 MFH: sync 2009-05-10 23:08:52 +00:00
Jani Taskinen
1338aa26be sync with HEAD 2009-05-10 22:39:33 +00:00
Felipe Pena
a2516cd273 - Missing title 2009-05-07 12:15:40 +00:00
Felipe Pena
dcfe5d7140 - MFH: Parameter parsing changes for get_defined_constants() (Kalle) 2009-05-07 12:08:09 +00:00
Zoe Slattery
56e61fb2a5 Fixed tests - thanks mgdm 2009-05-05 13:53:11 +00:00
Matt Wilmas
e7c5f3cfa4 Regenerate 2009-05-05 01:44:52 +00:00
Matt Wilmas
09034cf3f4 MFH: Implemented manual scanning for strings/comments, plus misc. fixes 2009-05-05 01:35:44 +00:00
Jani Taskinen
adb22f71c1 MFH:- Fix compile warning in debug mode 2009-05-01 21:46:53 +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
Dmitry Stogov
197a950b49 Fixed bug #48004 (Error handler prevents creation of default object) 2009-04-21 09:40:13 +00:00
Dmitry Stogov
fb3c73daef Fixed bug #48004 (Error handler prevents creation of default object) 2009-04-21 08:12:07 +00:00
Hannes Magnusson
0829cb89ee MFH: Fixed bug#47981 (error handler not called regardless) 2009-04-16 13:48:01 +00:00
Stanislav Malyshev
e27be1e76c add utility macro 2009-04-08 23:06:16 +00:00
Matt Wilmas
12805abff7 MFH: Changed spelling from "build" to "built" 2009-04-08 13:26:35 +00:00
Dmitry Stogov
ae2226133a Improved specialization (IS_CONST can't be IS_OBJECT) 2009-04-08 13:19:34 +00:00
Dmitry Stogov
c8e5bc5988 Calculate hash value once 2009-04-08 13:17:58 +00:00
Dmitry Stogov
0b6065e89a Removed deprecated code and fixed function name in error message 2009-04-08 13:17:09 +00:00
Dmitry Stogov
7a1cca3f08 Added ability to check build_id by extension 2009-04-08 12:19:01 +00:00
Felipe Pena
9472026f12 - Added test 2009-04-08 00:28:39 +00:00
Dmitry Stogov
82b86c1c38 Bug #47880 (crashes in call_user_func_array()) 2009-04-06 11:10:32 +00:00
Dmitry Stogov
0f5c395ba1 Improved GC speed and reduced stack usage 2009-04-03 18:52:21 +00:00
Dmitry Stogov
875a27b7ed Fixed bug #47851 (is_callable throws fatal error) 2009-04-02 09:56:33 +00:00
Felipe Pena
dc683c85f4 - MFH: Fixed bug #47852 (Compilation failure in zend_alloc.c) (Matteo) 2009-04-01 16:55:47 +00:00
Arnaud Le Blanc
13061cf0a0 Removed deprecation warning for ticks 2009-03-27 02:32:57 +00:00
Dmitry Stogov
f2b7adffb5 Fixed bug #47596 (Bus error on parsing file) 2009-03-26 17:28:49 +00:00
Dmitry Stogov
7ef3db0e4e Fixed bug #47516 (nowdoc can not be embed in heredoc but can be embed in double quote) 2009-03-26 12:37:54 +00:00
Dmitry Stogov
da9405de72 Fixed bug #47714 (autoloading classes inside exception_handler leads to crashes) 2009-03-26 10:56:45 +00:00
Dmitry Stogov
ab7f6d88e0 Fixed bug #47771 (Exception during object construction from arg call calls object's destructor) 2009-03-26 10:17:30 +00:00
Dmitry Stogov
bcd9099b28 Fixed bug #47038 (Memory leak in include) 2009-03-25 15:23:58 +00:00
Dmitry Stogov
4a4d739e49 Fixed bug #47699 (autoload and late static binding) 2009-03-25 10:39:26 +00:00
Dmitry Stogov
343bcc26ab Fixed double efree() 2009-03-24 16:35:53 +00:00
Dmitry Stogov
4658d9408b Fixed "-0" parsing and optimized overflow check (Matt) 2009-03-24 16:02:50 +00:00
Dmitry Stogov
8f14aed31b Fixed warning 2009-03-20 11:23:00 +00:00
Matt Wilmas
021e5d168f MFH: Removed extra space from eval string 2009-03-19 18:34:16 +00:00
Dmitry Stogov
9f32cb2d39 Fixed check for long integer overflow 2009-03-19 15:16:10 +00:00
Dmitry Stogov
3a30cfe1e0 Removed unnecassary checks 2009-03-18 18:49:27 +00:00
Moriyoshi Koizumi
8ae17615d7 - Add support for CP850 encoding (patch by Denis Giffeler) 2009-03-18 17:44:25 +00:00
Moriyoshi Koizumi
5f863af8be - Typo. 2009-03-18 17:06:40 +00:00
Moriyoshi Koizumi
a9a9e75b0b - Add entries for the encodings that are already supported by mbstring but
not listed here.
2009-03-18 17:03:38 +00:00
Moriyoshi Koizumi
f1d24dfcb7 - staticise private symbols. 2009-03-18 16:51:15 +00:00
Matt Wilmas
56ee50ac62 MFH: Fixed test on 64-bit 2009-03-18 16:30:21 +00:00
Dmitry Stogov
daac1a6273 Improved speed of conditional jump instructions by checking for most useful case (conditional expression) 2009-03-18 14:17:15 +00:00
Dmitry Stogov
e66bd02bc6 Inline only the most useful code 2009-03-18 14:15:28 +00:00
Dmitry Stogov
ff5620524c Fixed bug #47704 (crashes on some "bad" operations with string offsets)
Removed unnecessary checks
2009-03-18 12:53:17 +00:00
Dmitry Stogov
15de25b228 Forgotten file (sorry) 2009-03-18 11:53:10 +00:00
Dmitry Stogov
69ce7ea442 optimization 2009-03-18 11:25:37 +00:00
Dmitry Stogov
c6e55db534 Forgotten include 2009-03-18 10:41:39 +00:00
Dmitry Stogov
31c0af245e Fixed floating point mathematic speed degradation (Christian) 2009-03-18 10:18:10 +00:00
Dmitry Stogov
d3b42700a0 Better fix for bug #45877 (smaller and faster) 2009-03-18 09:48:55 +00:00
Matt Wilmas
6bb0ac9712 MFH: Fixed bug #45877 (Array key '2147483647' left as string) 2009-03-18 01:08:12 +00:00
Pierre Joye
bd1e5696d1 - make it less(er) sensible to bison version 2009-03-17 16:02:00 +00:00
Pierre Joye
ef5c2c83dc - make it less sensible to bison version 2009-03-17 15:59:24 +00:00
Pierre Joye
dec9e1910c - MFH: disable HAVE__CONTROLFP_S with VC9, 3x times slowdown 2009-03-17 13:34:26 +00:00
Dmitry Stogov
cc91da1bd7 Fixed bug #47664 (get_class returns NULL instead of FALSE) 2009-03-16 09:51:32 +00:00
Brian Shire
dd031eee68 MFH: Fix scanner handling of NULL values in heredoc, nowdoc, strings, comments, and non-parsed content. 2009-03-16 01:40:14 +00:00
Brian Shire
9c16bfa194 MFH: Add proper EOF handling for language scanner. Fixes bug #46817. 2009-03-11 22:11:53 +00:00
Dmitry Stogov
742d0b6b68 Fixed speed degradation on gcc-4.3 because of less agressive inlining 2009-03-11 12:14:34 +00:00
Dmitry Stogov
e2c3c7aa44 Clenaup deprecated namespace code 2009-03-10 10:01:44 +00:00