Rob Richards [Sun, 15 Feb 2004 17:07:34 +0000 (17:07 +0000)]
allow certain methods to be called statically again:
domdocument (all load methods)
domimplementation (all methods)
switch to zend_parse_method_parameters for consistancy
insure object parameters are correct class types
convert zvals to correct type if needed for property writes
fix a few segfaults found while testing
Rob Richards [Sun, 15 Feb 2004 14:05:17 +0000 (14:05 +0000)]
switch to zend_parse_method_parameters for consistancy
insure object parameters are correct class types
convert zvals to correct type if needed for property writes
Zeev Suraski [Sun, 15 Feb 2004 12:58:19 +0000 (12:58 +0000)]
Use zval_ptr_dtor() to free variables as soon as they hit refcount of 0.
Note: You should not be using ZVAL_DELREF() in day to day usage. Instead,
you should use zval_ptr_dtor(). Use ZVAL_DELREF() only if you're
messing with the refcount directly and know what you're doing.
Note #2: For clarity, if you want to initialize a new zval with a refcount
of 0, it's best to do that directly, instead of using ZVAL_DELREF
after allocating the zval...
Rob Richards [Sun, 15 Feb 2004 10:54:37 +0000 (10:54 +0000)]
start of dom update
switch to zend_parse_method_parameters for consistancy
insure object parameters are correct class types
convert zvals to correct type if needed for property writes
Timm Friebe [Sun, 15 Feb 2004 10:37:09 +0000 (10:37 +0000)]
- Changed initialization of function arguments to message handler
# Hopefully fixes bug #27157 (Compile Failure on Solaris 8), user does
# not know how to use patch and therefore couldn't verify this works.
Derick Rethans [Sat, 14 Feb 2004 12:29:04 +0000 (12:29 +0000)]
- Fixed zero bytes memory allocation when no extra ini files are found in the
--with-config-file-scan-dir specified directory. (patch by Eric Colinet
<e.colinet@laposte.net>)
Rob Richards [Fri, 13 Feb 2004 15:05:18 +0000 (15:05 +0000)]
Fix bug #27237: Working with simplexml crashes apache2
object dtor must be used to cleanup iterator data correctly
Fix asXML() outputing incorrect node
Zeev Suraski [Thu, 12 Feb 2004 13:49:55 +0000 (13:49 +0000)]
- Check return-by-reference bit when implementing interface prototypes
- Add infrastructure for built-in functions to hint whether they
return by reference or not. It is NOT currently used for anything,
except for interface prototypes (you can use it to request that the
function that implements your prototype returns by reference or
doesn't return by reference).
For downwards compatibility - by default, interface prototypes are
agnostic as to whether the function that implements them returns
by reference or not. Use ZEND_BEGIN_ARG_INFO_EX() with
ZEND_RETURN_VALUE/ZEND_RETURN_REFERENCE to change that.
- Fix ArrayAccess::getOffset() to conduct additional checks.
If your getOffset() should work with multidimensional arrays - it
must return by reference.
Wez Furlong [Thu, 12 Feb 2004 12:30:41 +0000 (12:30 +0000)]
Tidy up "nmake clean" for people that don't have a PECL checkout.
Be paranoid when building a snapshot: if the module is not a core
module (eg: it comes from outside of ext or sapi) and it defaults to "yes",
then force it to become shared. This will prevent a pecl ext from
accidentally being compiled statically into the core, and prevent that
ext from breaking the core build. You can still manually force a static
build by explicitly specifying the args for that extension on your configure
line.
Zeev Suraski [Thu, 12 Feb 2004 10:24:40 +0000 (10:24 +0000)]
Exceptions updates:
- Enforce exceptions to be derived from class Exception. This allows
users to perform catch-all. It's not yet complete, so don't get
comfortable with it just yet :) Updates are coming soon.
- Implement zend_throw_exception() using zend_throw_exception_ex()
Zeev Suraski [Wed, 11 Feb 2004 19:15:30 +0000 (19:15 +0000)]
Prevent SimpleXML from silently modifying types of variables that are
assigned to its objects.
Implementation notes for overloaded object modules:
- If you return a zval which is not otherwise referenced by the extension
or the engine's symbol table, its reference count should be 0.
- If you receive a value zval in write_property/write_dimension, you
may only modify it if its reference count is 1. Otherwise, you must
create a copy of that zval before making any changes. You should NOT
modify the reference count of the value passed to you.
Brian France [Wed, 11 Feb 2004 19:02:39 +0000 (19:02 +0000)]
- Added checks for invalid characters in a cookie name or cookie data
from setrawcookie. (Brian)
- Added new pspell functions to set the dict-dir and data-dir options. (Brian)