Andi Gutmans
5bf89ce61c
- Hopefully fix bug #11476 and improve garbage to be freed very quickly.
...
Tree tagged as PRE_GRANULAR_GARBAGE_FIX before commiting.
2001-06-21 22:30:23 +00:00
Andi Gutmans
7690887cf6
- Use inline instead of macro for PZVAL_LOCK()/PZVAL_UNLOCK() so that it
...
can be debugged.
2001-06-21 21:31:33 +00:00
Andi Gutmans
8cd70926c5
- Nuke dependency of all of PHP on zend_execute_locks.h.
2001-06-21 21:17:10 +00:00
Zeev Suraski
851b1e3b35
Eliminate the leak that the original bogus code tried to solve
2001-06-21 15:33:55 +00:00
Zeev Suraski
cb0d2775fb
parent::methodname() now works better with runtime classes (fix bug #11589 )
2001-06-21 14:53:05 +00:00
Zeev Suraski
3276cfd950
Fix bug #11590 (I want Andi to also review this patch before it goes into 4.0.6)
2001-06-21 08:17:09 +00:00
Andi Gutmans
1aa5b19cc9
- Fix string offsets crash.
2001-06-20 17:14:58 +00:00
Andi Gutmans
34e0c392e8
- Fix memory fragmention problem which could lead to web server processes
...
growing much more than they should. (bug #11344?)
2001-06-19 17:59:07 +00:00
Zeev Suraski
0c164128f8
Add missing exports
2001-06-19 08:52:19 +00:00
Zeev Suraski
38085881a6
Fix warning
2001-06-19 08:42:22 +00:00
Zeev Suraski
b23d83cf6a
Avoid crashing if the error reporting function is called after a bailout during shutdown
2001-06-13 17:18:11 +00:00
Zeev Suraski
e8796a1503
Improve XHTML compliance (suggested by Anil Madhavapeddy)
2001-06-12 10:51:59 +00:00
Zeev Suraski
6cf6835a4d
Add missing check
2001-05-30 08:23:15 +00:00
Andi Gutmans
e264a407eb
- Change if() to while() to make sure we skip enough opcodes
2001-05-25 09:46:48 +00:00
Andi Gutmans
90c36273b4
- Fix memory leak
2001-05-25 07:26:48 +00:00
Andrei Zmievski
9f0a619553
Fix segfault -- need to copy-construct constant value.
2001-05-23 13:54:22 +00:00
Andrei Zmievski
4d78270b4e
Moving some functions into Zend.
2001-05-21 15:47:52 +00:00
Andi Gutmans
e4f7a85acb
- The previous name could be confused with resource #
2001-05-20 20:48:40 +00:00
Andi Gutmans
e2f12eb0e5
- Whitespace and change the name of the macro to something more verbose
...
ZEND_GET_RESOURCE_ID(...)
2001-05-20 20:25:20 +00:00
James Moore
c1164ad5bf
@ - Add new ZEND_GET_LE macro for retrieving destructor
...
@ id's from remote extensions. (Jmoore, Zend Engine)
2001-05-20 17:06:39 +00:00
Andi Gutmans
65d9584ac0
- Don't allow resource types of 0
2001-05-20 16:04:22 +00:00
Sascha Schumann
ba8af2515e
Fix segfault when using zend_hash_add_empty_element
2001-05-19 14:53:55 +00:00
Thies C. Arntzen
473d3eae45
reset allocated_memory_peak after each request.
2001-05-18 14:32:11 +00:00
Zeev Suraski
5b12d6077e
That's slightly clearer that way :)
2001-05-17 16:33:45 +00:00
Zeev Suraski
c7464b7d6a
Fix build
2001-05-17 12:51:24 +00:00
Zeev Suraski
41fbc95fe1
Fix build
2001-05-17 11:22:49 +00:00
Zeev Suraski
51303fc051
Fix corruption issue
2001-05-17 09:58:34 +00:00
Zeev Suraski
755207a1e6
Implement zend_hash_add_empty_element() using the existing infrastructure
2001-05-16 17:22:01 +00:00
Zeev Suraski
4c0d85ba4f
Commit missing fix
2001-05-16 17:21:16 +00:00
Zeev Suraski
260b4d0dbf
Merge memory usage into memory limit
2001-05-16 15:02:30 +00:00
Sascha Schumann
bb472e7069
Initialize empty pDataPtr to a pseudo value to prevent a pefree on
...
pData.
2001-05-14 10:49:17 +00:00
Andi Gutmans
eadaf3eb7a
- Remove check for ht == NULL in copy_ctor.
...
If ht is NULL at this point then we are better off crashing and fixing
the bug that caused it.
2001-05-12 13:55:49 +00:00
Sascha Schumann
996e9a7212
add missing closing paranthesis
2001-05-11 19:41:11 +00:00
Sascha Schumann
3efa08aaa8
Some extensions don't associate any data with hash entries,
...
except the key. Prior to this change, a separate chunk of memory
was allocated in that case to store exactly zero bytes (plus
memory manager overhead). We treat that case similar to the
pointer case, but don't copy any data at all (because the pointer
is usually the NULL pointer).
2001-05-11 19:32:01 +00:00
Sascha Schumann
2c4e1e84ce
Fix a memory leak which occured upon registering an already existing
...
constant.
2001-05-11 19:18:24 +00:00
Thies C. Arntzen
8ca106bffc
added --enable-memory-usage-info
2001-05-11 18:16:41 +00:00
Andi Gutmans
d8c11e6f2a
- Fix crash bug when opcodes array is erealloc()'ed to a different memory
...
area before it reaches the loop.
- Some whitespace stuff
2001-05-11 14:29:06 +00:00
Zeev Suraski
429667883e
Treat numeric strings as numbers in the increment operator
2001-05-10 12:58:31 +00:00
Andrei Zmievski
555fa77930
Nuke unused variable.
2001-05-09 20:37:16 +00:00
Andrei Zmievski
41aebd058e
Fix a few bugs in zend_is_callable() and make it stricter.
2001-05-09 20:07:49 +00:00
Andi Gutmans
a514e8fe66
- Fix line numbers when some lines end with \r
2001-05-08 19:42:14 +00:00
Andi Gutmans
3380fa1b8e
- Fix crash bug reported by DBG author Dmitri Dmitrienko.
2001-05-08 15:56:26 +00:00
Zeev Suraski
0eadc7e423
Make zend_execute_scripts() reentrant
2001-05-07 11:08:18 +00:00
Zeev Suraski
bda9c83a82
Recover from a parse error in include files (before, it could result in a crash under certain circumstances). Fix bug #8663
2001-05-06 19:30:31 +00:00
Zeev Suraski
d2cbd019e3
Yikes, that would have been a very bad bug :)
2001-05-06 16:24:36 +00:00
Zeev Suraski
f78e65cabf
Floating point keys didn't work in array() (fix bug #6662 )
2001-05-06 15:39:27 +00:00
Zeev Suraski
686eab894c
Hear hear, interactive mode is finally showing some progress:
...
- Support function calls
- Fix crash bug
2001-05-06 15:00:58 +00:00
Zeev Suraski
1e63f44084
Support interactive mode in thread-safe builds
2001-05-06 14:36:25 +00:00
Zeev Suraski
cd033b1271
Fix autoconversion of hexadecimal strings
...
It's time to close bug #5404 :)
2001-05-06 12:48:17 +00:00
Zeev Suraski
dc30520622
Retain single spaces as spaces to condense HTML
2001-05-06 12:28:17 +00:00
Andi Gutmans
5aec595716
- Support \r as newline in the ini scanner
2001-05-02 21:52:30 +00:00
Andi Gutmans
62bec3a7a7
- Handle MAC OS X \r line endings
2001-05-02 21:48:07 +00:00
Andi Gutmans
2d9eac7e0e
- Patch by Andrei to prevent crash in error situation when not all
...
object overloading handles are defined.
2001-05-02 19:51:33 +00:00
Andi Gutmans
62cc5c9c8f
- Bump up Zend version
2001-05-01 07:20:36 +00:00
Andi Gutmans
1b94b89cb8
- Add mistakenly removen closing bracket
2001-04-30 13:05:11 +00:00
Andi Gutmans
ec1068d695
- Get rid of warning
2001-04-30 13:04:27 +00:00
Andi Gutmans
aa1c46b3d8
- Try to solve crash on OS400. There is actually no reason I can see for
...
why his fix should solve a crash but it doesn't harm.
2001-04-30 05:39:37 +00:00
Andi Gutmans
ce7d0ef090
- Fix crash bug in interactive mode
2001-04-30 04:50:34 +00:00
Andi Gutmans
b63bcebc6e
- Whitespace
2001-04-29 13:06:00 +00:00
Andi Gutmans
277ab5f223
- Improve overwrite detection in debug mode.
2001-04-29 13:00:46 +00:00
Andi Gutmans
27fd3a2e57
- Previous patch for too early freeing of resources seemed to have worked.
...
- Clean it up a bit.
2001-04-29 09:21:38 +00:00
Andi Gutmans
b11202d66b
- Try and solve the too early resource destruction problem.
2001-04-29 06:33:50 +00:00
Zeev Suraski
4e71bbed0a
include limits.h if available
2001-04-28 20:21:42 +00:00
Zeev Suraski
b87bac782f
Fix bug 5661
2001-04-28 20:13:25 +00:00
Andi Gutmans
26c06df321
- Move all cases into switch().
2001-04-28 18:20:46 +00:00
Andi Gutmans
1df2271224
- Just some little whitespace stuff.
2001-04-28 15:59:39 +00:00
Andi Gutmans
429aed9066
- Don't add/remove cached memory blocks from blocks list as this will slow
...
- down performance a bit.
2001-04-28 15:45:50 +00:00
Zeev Suraski
882751dd7d
Resources weren't being properly destroyed by the convert_to_*() functions
2001-04-28 02:06:35 +00:00
Andi Gutmans
acd56b0891
- More whitespace fixes while I'm at it.
2001-04-27 18:53:25 +00:00
Andi Gutmans
0971ff99cb
- Whitespace changes to be standard like the rest of Zend
2001-04-27 18:51:56 +00:00
Andi Gutmans
9dd0231844
- Add typedef for function pointer of llist dtor
2001-04-21 11:44:00 +00:00
Andi Gutmans
90cf65411c
- Fix for crash bug when using invalid arguments in the foreach() loop.
...
- Reported by Yasuo Ohgaki
2001-04-20 07:09:22 +00:00
Andi Gutmans
02af513c0d
- Patch from Jason Greene.
...
- Make it easier to write PHP function definitions in more than just one .c
file while accessing the same module globals.
2001-04-19 17:51:23 +00:00
Zeev Suraski
1078e61c74
small beautification
2001-04-17 15:19:14 +00:00
Zeev Suraski
9aac926d3f
Fix warning
2001-03-28 16:12:16 +00:00
Zeev Suraski
6dafabd73f
Make Windows happy
2001-03-28 15:46:51 +00:00
Zeev Suraski
3492049c86
Get rid of more redundant code
2001-03-28 15:32:52 +00:00
Zeev Suraski
3d3d8881c6
Cleaner way of making sure resources start at 1 and not 0...
2001-03-28 15:22:15 +00:00
Zeev Suraski
8c13f9d56f
Remove redundant code
2001-03-28 14:56:28 +00:00
Zeev Suraski
59c32058fc
God knows what this code was doing...
2001-03-27 16:46:24 +00:00
Andrei Zmievski
3e2ff3409a
Updated get_class_methods() to take class instance as well as class name.
2001-03-26 20:14:21 +00:00
Andrei Zmievski
54da9024f5
Making it possible to pass a class name to get_parent_class() as well
...
as a class instance.
2001-03-26 19:03:06 +00:00
Andrei Zmievski
2b2484dd3d
Fixing function name length.
2001-03-23 14:46:37 +00:00
Andi Gutmans
5c7a762249
- Add support for isset($var1, $var2, $var3); - Will be true only if all
...
- variables are set.
2001-03-19 19:31:14 +00:00
Andi Gutmans
baa92cc540
- Nuke commented code
2001-03-15 18:58:07 +00:00
Andrei Zmievski
3b2a83b942
Name length is already known.
2001-03-12 16:40:55 +00:00
Andi Gutmans
7db391b054
- Missed second place.
2001-03-12 16:27:26 +00:00
Andi Gutmans
123491aeac
- Nuke snprintf()
2001-03-12 16:23:19 +00:00
Andi Gutmans
3118af8293
- White space
2001-03-12 15:45:01 +00:00
Andi Gutmans
714d083cb8
- Fix by Jani Taskinen <sniper@iki.fi> for whole path also to work
...
with include_once()/require_once().
2001-03-12 15:42:18 +00:00
Andrei Zmievski
13148b5491
Improve zend_is_callable() to the point where it's actually useful.
...
Now it just needs to be invoked everywhere in PHP where a callback is
expected.
2001-03-12 03:08:28 +00:00
Andi Gutmans
dde50d6afd
- Fix for Solaris.
2001-03-11 19:35:26 +00:00
Andi Gutmans
492a619be3
- Whitespace
2001-03-10 09:21:48 +00:00
Zeev Suraski
31775e9706
Add missing #define's
2001-03-07 17:05:03 +00:00
Zeev Suraski
36ded42156
Make parent:: work in runtime bindings as well
2001-03-07 10:07:25 +00:00
Sascha Schumann
aed7d01138
We actually only need AC_PROG_LEX here.
2001-03-06 16:59:28 +00:00
Zeev Suraski
87ee97e303
Fix bug #8899 (thanks Jani)
2001-03-04 22:27:56 +00:00
Sascha Schumann
5c1724177d
-Os is a valid GCC optimization level.
2001-03-03 18:07:52 +00:00
Zeev Suraski
bdacbc4c94
Whitespace fix
2001-03-02 23:56:03 +00:00
Andrei Zmievski
145a319f43
Do case-insensitive class name matching when parsing
...
array('Class', 'method') structure.
You guys can clean it up, if there is a better way.
2001-02-28 03:53:00 +00:00