Commit Graph

5149 Commits

Author SHA1 Message Date
Antony Dovgal
772e35e99a MFH: fix test 2007-02-19 12:19:44 +00:00
Antony Dovgal
704b191d6a fix typo 2007-02-16 23:49:48 +00:00
Stanislav Malyshev
624dd135a8 fix typo 2007-02-16 18:10:36 +00:00
Stanislav Malyshev
4274449a02 add safe_realloc 2007-02-16 18:06:28 +00:00
Dmitry Stogov
574630190e Allow C++ extensions to use CG(), EG() ... (Caroline) 2007-02-16 08:54:17 +00:00
Dmitry Stogov
b6a2b760dc Fixed zend_llist_remove_tail (Michael Wallner) 2007-02-16 08:33:28 +00:00
Dmitry Stogov
0291ad5fa6 Fixed bug #40236 (php -a function allocation eats memory) 2007-02-15 10:38:28 +00:00
Antony Dovgal
29a9ba9639 new/improved tests 2007-02-13 12:59:53 +00:00
Antony Dovgal
0f0fe9c967 MFH: new tests 2007-02-07 11:10:32 +00:00
Dmitry Stogov
44297ddea8 Removed dead code 2007-02-01 16:23:28 +00:00
Dmitry Stogov
ed30d91cd6 Fixed possible crash because of dereference of NULL 2007-02-01 15:23:46 +00:00
Dmitry Stogov
009f5a3937 Enable canary protection in DEBUG mode only. 2007-02-01 15:08:10 +00:00
Antony Dovgal
b24fd9a3d6 fix test 2007-01-22 08:55:47 +00:00
Antony Dovgal
d2c5721f41 MFH: catch overflow right away 2007-01-20 23:10:02 +00:00
Ilia Alshanetsky
4383f51c44 Syntax highlighting fix for hex numbers.
# Patch by Matt Wilmas
2007-01-18 23:28:08 +00:00
Antony Dovgal
b6a89efcda fix folding 2007-01-18 12:20:15 +00:00
Antony Dovgal
4fca731b0b fix test 2007-01-15 10:31:14 +00:00
Antony Dovgal
7b70e5be45 missing comma 2007-01-15 10:08:34 +00:00
Antony Dovgal
9ca5652f70 fix error message and #40111 2007-01-15 10:04:44 +00:00
Dmitry Stogov
2f586e965e Fixed bug #39969 (ini setting short_open_tag has no effect when using --enable-maintainer-zts) 2007-01-12 14:37:46 +00:00
Dmitry Stogov
2e1a2438b5 Fixed bug #35634 (Erroneous "Class declarations may not be nested" error raised). (Carl P. Corliss) 2007-01-11 16:47:32 +00:00
Dmitry Stogov
e470e22e20 - Fixed bug #35106 (nested foreach fails when array variable has a reference).
- Fixed bug #36214 (__get method works properly only when conditional operator is used).
- Fixed bug #39449 (Overloaded array properties do not work correctly).
- Fixed bug #39990 (Cannot "foreach" over overloaded properties).
2007-01-10 15:58:08 +00:00
Andrei Zmievski
39fa36a0be Fix 'b' prefix in highlighting and tokenizer. (Matt W) 2007-01-09 17:37:53 +00:00
Dmitry Stogov
38f942b880 Fixed bug #40076 (zend_alloc.c: Value of enumeration constant must be in range of signed integer) 2007-01-09 15:29:14 +00:00
Dmitry Stogov
8c086cae23 Fixed bug #40002 (Try/Catch performs poorly) 2007-01-09 15:06:07 +00:00
Dmitry Stogov
cbd9822ed9 Bump year. 2007-01-09 11:53:08 +00:00
Sebastian Bergmann
4223aa4d5e MFH: Bump year. 2007-01-01 09:36:18 +00:00
Ilia Alshanetsky
6895045565 Simplify & optimize code
# Patch by Matt Wilmas
2006-12-30 01:57:01 +00:00
Antony Dovgal
7b281be1ee that was not intentional
thanks Nuno
2006-12-28 22:12:08 +00:00
Antony Dovgal
28421f4f19 MFH 2006-12-28 21:02:14 +00:00
Ilia Alshanetsky
96d9d6f0f1 Avoid strcpy() & strcat() 2006-12-28 00:17:48 +00:00
Ilia Alshanetsky
d101e113cf Fixed compiler warning 2006-12-26 17:17:52 +00:00
Ilia Alshanetsky
ff9d0fcc78 is_numeric_string() optimization
# Original Patch by Matt Wilmas
2006-12-26 16:44:20 +00:00
Ilia Alshanetsky
b85f1345a6 Ensure that OnUpdateLongGEZero is greater or equal to 0.
Added a update wrapper for ensuring >0 values
2006-12-25 23:55:59 +00:00
Dmitry Stogov
4480c5eb5d Fixed bug #39825 (foreach produces memory error) 2006-12-25 19:23:03 +00:00
Dmitry Stogov
e57a60698b Fixed bug #39944 (References broken) 2006-12-25 14:16:27 +00:00
Dmitry Stogov
5823a2d28a Fixed possible size_t overflow 2006-12-25 12:16:33 +00:00
Antony Dovgal
bed14f8ab7 MFH 2006-12-21 11:08:00 +00:00
Ilia Alshanetsky
5ead613386 Fix a possible memory leak 2006-12-21 02:09:36 +00:00
Ilia Alshanetsky
dba3fe385d Fixed possible memory leak 2006-12-21 01:57:05 +00:00
Antony Dovgal
d040ec9b8e MFH 2006-12-20 23:19:56 +00:00
Antony Dovgal
bbb923c7a8 MFH 2006-12-20 23:01:31 +00:00
Antony Dovgal
698ea5f48e MFH 2006-12-20 19:08:48 +00:00
Andrei Zmievski
0d7af28a40 More correct patch for b-prefixes. 2006-12-20 18:22:07 +00:00
Antony Dovgal
c348c293c8 MFH: fix #39903 (Notice message when executing __halt_compiler() more than once) 2006-12-20 16:31:10 +00:00
Antony Dovgal
ea013f92e9 use Z_* macros 2006-12-20 16:00:11 +00:00
Dmitry Stogov
53b088e60c Make MEMORY_LIMIT and ZEND_USE_MALLOC_MM to be always enabled. They don't make any significant slowdown, but incrise maintainability a lot. Note that the setting of memory_limit wasn't changes (neither in main/main.c nor in php.ini) and it still set to 16M. 2006-12-20 10:49:33 +00:00
Hannes Magnusson
1e19ee8785 - Fixed incorrect function names on FreeBSD where inet_pton() was named
__inet_pton() and inet_ntop() was named __inet_ntop()
- Fixed bug #39685 (iconv() - undefined function)
- Fixed bug #38852 (XML-RPC Breaks iconv)
2006-12-20 10:34:36 +00:00
Andrei Zmievski
16ea2ee640 Support 'b' prefix in front of string literals for forward compatibility
with PHP 6.
2006-12-19 17:26:17 +00:00
Hannes Magnusson
b12e3e1475 Fix tests 2006-12-19 10:03:24 +00:00
Dmitry Stogov
1763dc162d Fixed random generation of cookies and canaries 2006-12-18 11:39:19 +00:00
Dmitry Stogov
cfbd58c987 MFH: __builtin_expect() exists only in GCC 3.0 and higher 2006-12-18 08:59:40 +00:00
Andi Gutmans
5e36d7fcfe - I prefer cookie to be the first element. 2006-12-15 17:03:42 +00:00
Dmitry Stogov
bf9e3e769c Added internal heap protection
. safe unlinking
  . cookies
  . canary protection (debug build only)
2006-12-15 13:25:26 +00:00
Sara Golemon
db87e11e6b MFH: Bugfix# 39435: 'foo' instanceof bar gives invalid opcode error 2006-12-12 23:25:23 +00:00
Ilia Alshanetsky
5218d956f0 Fixed typo 2006-12-11 15:59:41 +00:00
Ilia Alshanetsky
19e4dc5058 Removed bool<>long optimization as it causes issues with strict type checks 2006-12-11 15:34:35 +00:00
Ilia Alshanetsky
7e1973d9fc Minor optimization (2-3%) from Brian Shire 2006-12-11 15:16:07 +00:00
Dmitry Stogov
108a2fc64c Fixed bug #39775 ("Indirect modification ..." message is not shown)
The fix breaks two SimpleXML tests those must be fixed
2006-12-08 15:55:31 +00:00
Dmitry Stogov
dd9b5a08f0 Fixed possible failure 2006-12-08 12:47:45 +00:00
Antony Dovgal
feba2edba2 initialize variables 2006-12-07 20:45:58 +00:00
Antony Dovgal
b4d0d872e7 MFH 2006-12-06 10:49:27 +00:00
Antony Dovgal
4d44a5b71d MFH: use BSD licensed implementation of double-to-string utilities instead of LGPL one
this patch also fixes thread safety issues in zend_strtod()
2006-12-06 09:52:51 +00:00
Dmitry Stogov
68890ce196 Fixed bug #39721 (Runtime inheritance causes data corruption) 2006-12-05 19:03:51 +00:00
Dmitry Stogov
8f5786b6e8 Removed unused zend_mm.* 2006-12-05 08:07:57 +00:00
Stanislav Malyshev
6b651f8e60 Improve tolower()-related functions on Windows and VC2005 by caching locale and using
tolower_l function.
# Gives 10-18% speedup on bench.php
# Does not change behaviour for non-windows
2006-12-04 18:37:15 +00:00
Dmitry Stogov
f7bc516502 Fixed bug #38274 (Memlimit fatal error sent to "wrong" stderr when using fastcgi) 2006-12-04 16:20:02 +00:00
Dmitry Stogov
abc5bb5f61 Bug #39438 (Fatal error: Out of memory) 2006-12-01 20:01:50 +00:00
Dmitry Stogov
e70d7cfc90 typo 2006-12-01 19:41:57 +00:00
Dmitry Stogov
0742edb396 Fixed bug #39702 (php crashes in the allocator on linux-m68k) 2006-12-01 15:33:06 +00:00
Dmitry Stogov
de9574e872 Fixed bug #39640 (Segfault with "Allowed memory size exhausted") 2006-12-01 13:54:29 +00:00
Dmitry Stogov
e8e9810dd9 Fixed bug #39652 (Wrong negative results from memeory_get_usage()) 2006-12-01 11:42:20 +00:00
Antony Dovgal
57130c653a fix test 2006-11-30 13:09:32 +00:00
Antony Dovgal
0966666256 MFH: resolve coverity issue #224 2006-11-28 21:20:33 +00:00
Antony Dovgal
090215cc7f nullify opened_path and filename (when required)
fixes invalid reads with `php-cli -F <script>`
2006-11-23 22:04:54 +00:00
Dmitry Stogov
c663787ab4 Fixed bug #39534 (Error in maths to calculate of ZEND_MM_ALIGNED_MIN_HEADER_SIZE). (wharmby at uk dot ibm dot com) 2006-11-23 09:32:39 +00:00
Dmitry Stogov
6a8f267db6 Fixed bug #39602 (Invalid session.save_handler crashes PHP) 2006-11-23 08:07:05 +00:00
Antony Dovgal
1c6ee3030e add test 2006-11-21 11:11:39 +00:00
Antony Dovgal
eb666b725f MFH: fix proto 2006-11-21 10:48:29 +00:00
Dmitry Stogov
3f92ab719f typo 2006-11-15 17:53:27 +00:00
Antony Dovgal
9d6f7755b8 fix leak appearing when converting object to NULL
add test
2006-11-15 17:29:08 +00:00
Dmitry Stogov
842b1b5a47 Fixed bug #39445 (Calling debug_backtrace() in the __toString() function produces a crash) 2006-11-15 16:05:11 +00:00
Dmitry Stogov
f00ee72c35 Fixed incorrect heap corruptiuon detection code 2006-11-13 10:28:46 +00:00
Derick Rethans
140edac7f9 - Forward port the binary cast, which will do the same as the string cast in
PHP 5.2.
2006-11-10 12:02:51 +00:00
Dmitry Stogov
011e0cde62 Start timiout thread on Windows only if necessary 2006-11-10 11:49:35 +00:00
Dmitry Stogov
f1b6587ebb Zend Memory Manager Improvements
. use HeapAlloc() instead of VirtualAlloc()
. use "win32" storage manager (instead of "malloc") on Windows by default
2006-11-10 10:44:40 +00:00
Dmitry Stogov
cc895444b1 HashTable copying optimization (Matt Wilmas) 2006-11-08 16:02:03 +00:00
Dmitry Stogov
41ae8de136 Fixed bug #39297 (Memory corryption because of indirect modification of overloaded array). 2006-11-08 13:38:28 +00:00
Dmitry Stogov
a84a2eae6a Fixed bug #39344 (Unnecessary calls to OnModify callback routine for an extension INI directive). (wharmby at uk dot ibm dot com, Dmitry) 2006-11-08 11:04:27 +00:00
Ilia Alshanetsky
cb96148912 Fixed bug #33282 (Re-assignment by reference does not clear the is_ref flag)
# Original patch by Matt Wilmas
2006-11-07 20:23:30 +00:00
Marcus Boerger
da8b00a5e4 - MFH: Fixed bug #39320 2006-11-03 19:02:16 +00:00
Marcus Boerger
978dd0fdd9 - MFH: Fix issue with some mangeled properties 2006-11-03 19:01:40 +00:00
Dmitry Stogov
7ff822ee49 Fixed bug #39304 (Segmentation fault with list unpacking of string offset) 2006-10-30 11:05:00 +00:00
Hannes Magnusson
f8e4467725 Fix test 2006-10-20 14:42:37 +00:00
Ilia Alshanetsky
3b1e299264 Make use of abstract methods be E_STRICT rather then E_ERROR 2006-10-20 02:44:26 +00:00
Johannes Schlüter
2193a77eed - Here, too 2006-10-18 17:17:18 +00:00
Johannes Schlüter
6841110122 - MFH: added missing return... 2006-10-18 17:04:49 +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
Dmitry Stogov
31acd1c26e Fixed bug #39140 (Uncaught exception may cause crash) 2006-10-16 11:13:08 +00:00
Dmitry Stogov
e6fd66facb Make zend_memory_peak_usage() to be avalable even without --enable-memory-limit 2006-10-12 06:46:51 +00:00
Antony Dovgal
630024d895 MFH 2006-10-11 16:11:56 +00:00
Sara Golemon
eed736d010 MFH(r-1.376): Preserve EG(return_value_ptr_ptr) when calling zend_execute_scripts()
Reapplying this since it looks like we'll be doing a PHP 5.2 RC6 after all
2006-10-06 16:50:21 +00:00
Sara Golemon
fd9b7f672b Revert until 5.2's release since we're in RC stage 2006-10-06 00:02:56 +00:00
Sara Golemon
67fac322af MFH(r-1.376): Preserve EG(return_value_ptr_ptr) when calling zend_execute_scripts() 2006-10-05 23:32:52 +00:00
Dmitry Stogov
ff3dfa94dd Allow future extensibility without binary compatibility break 2006-10-05 08:08:57 +00:00
Antony Dovgal
dc22b7d4a5 add test 2006-10-04 13:35:51 +00:00
Antony Dovgal
8e1c9371bb MFH: throw a warning when doing modulus by 0 (fr #39027) 2006-10-03 17:54:51 +00:00
Dmitry Stogov
c1ad451c3e Speedup array/HashTable copying. (Matt W) 2006-10-03 11:10:33 +00:00
Dmitry Stogov
9875fe44e2 Fixed bug #39017 (foreach(($obj = new myClass) as $v); echo $obj; segfaults) 2006-10-03 09:05:14 +00:00
Dmitry Stogov
9dcdfd993f Fixed memory leak (Nuno) 2006-10-03 07:30:46 +00:00
Antony Dovgal
2b1b2db8ec MFH: fix #39003 (__autoload() is called for type hinting) 2006-10-02 11:09:52 +00:00
Ilia Alshanetsky
4fd88b23cc Added safety checks against integer overflow. 2006-09-30 17:12:06 +00:00
Antony Dovgal
40924a6f6c new tests 2006-09-28 12:03:49 +00:00
Antony Dovgal
c119d63a9f add new tests 2006-09-28 11:44:05 +00:00
Dmitry Stogov
ecd52167d7 Fixed wrong return value 2006-09-28 07:16:31 +00:00
Antony Dovgal
47600225e1 MFH: use if() instead of ?: 2006-09-27 15:40:19 +00:00
Dmitry Stogov
c3272ab020 Fixed bug #38808 ("maybe ref" issue for current() and others) 2006-09-26 10:30:51 +00:00
Dmitry Stogov
a04b6ed6bc Fixed bug #38942 (Double old-style-ctor inheritance) 2006-09-26 07:55:21 +00:00
Dmitry Stogov
cd6537ed6d Fixed bugs #34065 and #38623 (throw in foreach/switch causes memory leaks) 2006-09-19 21:36:54 +00:00
Dmitry Stogov
7d14dad02e MFH: Fixed mess with CGI/CLI -d command line option (now it works with cgi; constants are working exactly like in php.ini; with FastCGI -d affects all requests). 2006-09-19 20:33:12 +00:00
Dmitry Stogov
8982cc0472 Small optimization of ZEND_INIT_ARRAY/ZEND_ADD_ARRAY_ELEMENT. (Nuno, Dmitry) 2006-09-18 14:23:52 +00:00
Dmitry Stogov
a16cb0b4d5 Fixed non-specialized executor 2006-09-18 12:03:10 +00:00
Dmitry Stogov
806bc4e164 Reinamed variables to avoid name conflicts 2006-09-14 10:32:45 +00:00
Dmitry Stogov
2604f21fa6 Removed unused macro USE_ZEND_ALLOC 2006-09-14 09:58:27 +00:00
Dmitry Stogov
27c327b97e Added is_zend_mm() to allow runtime check for zend memory manager 2006-09-14 08:00:44 +00:00
Antony Dovgal
0680cc4360 fix tests on MacOS 2006-09-13 13:59:16 +00:00
Dmitry Stogov
7e17f8591a Fixed bug #38772 (inconsistent overriding of methods in different visibility contexts) 2006-09-12 11:01:16 +00:00
Antony Dovgal
d6ee9d4810 MFH: fix #38779 (engine crashes when require()'ing file with syntax error through userspace stream wrapper) 2006-09-11 14:30:08 +00:00
Antony Dovgal
0a1f5d12a1 fix tests 2006-09-11 14:17:51 +00:00
Antony Dovgal
5a9f40a46a add tests 2006-09-11 14:13:25 +00:00
Antony Dovgal
6d040bf67a fix test 2006-09-11 08:08:20 +00:00
Dmitry Stogov
0c3c55edac Fixed php_admin* bypass by ini_restore() 2006-09-06 08:54:44 +00:00
Dmitry Stogov
afb8af1f5f Reverted last Ilia's patch (for bug #38579).
The patch didn't fix the bug and made new one.
2006-09-06 06:37:42 +00:00
Ilia Alshanetsky
229137cad4 Fixed bug #38579 require_once/include_once optimization causes files to be
loaded multiple times.
2006-09-05 15:50:07 +00:00
Dmitry Stogov
87eaaf494b Removed unreachable handlers 2006-09-04 13:58:54 +00:00
Dmitry Stogov
54123daa8d Show name of storage layer in case of initialization fault. 2006-08-31 11:53:57 +00:00
Antony Dovgal
235e3939d5 s/pinter/pointer/ 2006-08-30 22:29:24 +00:00
Antony Dovgal
191d68618a delete commented part, as it was done in HEAD 2006-08-28 10:59:18 +00:00
Antony Dovgal
f7ba7232d8 MFH: fix #38624 (Strange warning when incrementing an object property and exception is thrown from __get method) 2006-08-28 10:27:58 +00:00
Dmitry Stogov
c42b3bf689 Fixed bug #38315 (Constructing in the destructor causes weird behaviour) 2006-08-24 09:42:35 +00:00
Dmitry Stogov
27d3021704 Fixed bug #38265 (heap corruption) 2006-08-23 13:00:48 +00:00
Dmitry Stogov
4180155a47 Fixed "win32" storage manager 2006-08-22 05:54:15 +00:00
Ilia Alshanetsky
8405e1741f Use proper write callback 2006-08-19 16:20:08 +00:00
Antony Dovgal
be316018fd apply correct fix for bug #38461 2006-08-15 20:30:42 +00:00
Antony Dovgal
08d398aa48 MFH: fix #38461 (setting private attribute with __set() produces segfault) 2006-08-15 13:19:13 +00:00
Antony Dovgal
4ad05e0e0f add test 2006-08-15 08:58:40 +00:00
Antony Dovgal
6277ba98d9 there is no realiable way to detect memrchr() presence because of a mess in glibc
so let's use our own implementation
2006-08-08 10:54:24 +00:00
Derick Rethans
5794832a72 - Added some docs here so that nobody needs to figure it out once more. 2006-08-08 09:46:46 +00:00
Antony Dovgal
b8617a6183 add zend_memrchr() 2006-08-08 09:41:09 +00:00
Marcus Boerger
05206b42d8 - Speling 2006-08-08 00:40:19 +00:00