History log of /PHP_5_3/Zend/zend_objects.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
831fbcf 01-Jan-2013 Xinchen Hui <laruence@php.net> Happy New Year
/PHP_5_3/Zend/zend_objects.c
e4ca0ed 01-Jan-2012 Felipe Pena <felipe@php.net> - Year++
/PHP_5_3/Zend/zend_objects.c
927bf09 01-Jan-2011 Felipe Pena <felipe@php.net> - Year++
/PHP_5_3/Zend/zend_objects.c
7ca414f 16-Aug-2010 Dmitry Stogov <dmitry@php.net> Bug #52361 (Throwing an exception in a destructor causes invalid catching)
/PHP_5_3/Zend/zend_objects.c
50a0ea7 12-Aug-2010 Sascha Schumann <sas@php.net> separate properties of internal classes in ZTS mode fully,
otherwise multiple threads will modify the zvals' contents
without any synchronisation.
/PHP_5_3/Zend/zend_objects.c
c2b911a 11-May-2010 Dmitry Stogov <dmitry@php.net> Fixed bug #49893 (Crash while creating an instance of Zend_Mail_Storage_Pop3)
/PHP_5_3/Zend/zend_objects.c
d2281d1 05-Jan-2010 Sebastian Bergmann <sebastian@php.net> sed -i "s#1998-2009#1998-2010#g" **/*.c **/*.h **/*.php
/PHP_5_3/Zend/zend_objects.c
b394a75 12-Oct-2009 Felipe Pena <felipe@php.net> - Fixed PDORow and PDOStatement crashes when instantiating throught Reflection
/PHP_5_3/Zend/zend_objects.c
08659c2 31-Dec-2008 Sebastian Bergmann <sebastian@php.net> MFH: Bump copyright year, 3 of 3.
/PHP_5_3/Zend/zend_objects.c
ce2f9bb 24-Aug-2008 Marcus Boerger <helly@php.net> - MFH Fix issue with destruction of overloaded objects
/PHP_5_3/Zend/zend_objects.c
32f9d0e 14-Aug-2008 Marcus Boerger <helly@php.net> - MFH Improve exception linking
/PHP_5_3/Zend/zend_objects.c
cf7384a 12-Aug-2008 Felipe Pena <felipe@php.net> - MFH: Constness (Added const qualifier to several function parameters)
/PHP_5_3/Zend/zend_objects.c
2bf3bfc 13-Jul-2008 Marcus Boerger <helly@php.net> - MFH Exception handling
[DOC]
- Exceptions can be thrown while exceptions are pending, they are linked
- Exceptions can be handled in __destruct
- Add optional Exception $previous parameter to
. Exception::__construct
. ErrorException::__construct
/PHP_5_3/Zend/zend_objects.c
2b10c53 18-Mar-2008 Felipe Pena <felipe@php.net> MFH: Dropped zend.ze1_compatibility_mode
[DOC]
/PHP_5_3/Zend/zend_objects.c
d1dded8 31-Dec-2007 Sebastian Bergmann <sebastian@php.net> MFH: Bump copyright year, 2 of 2.
/PHP_5_3/Zend/zend_objects.c
4b4d634 07-Oct-2007 Yiduo (David) Wang <davidw@php.net> MFH: Added macros for managing zval refcounts and is_ref statuses
/PHP_5_3/Zend/zend_objects.c
4223aa4 01-Jan-2007 Sebastian Bergmann <sebastian@php.net> MFH: Bump year.
/PHP_5_3/Zend/zend_objects.c
30f4d3f 26-Jul-2006 Dmitry Stogov <dmitry@php.net> Fixed bug #38220 (Crash on some object operations)
/PHP_5_3/Zend/zend_objects.c
51d4958 05-Jun-2006 Zeev Suraski <zeev@php.net> Restore ZE1 compatibility mode (Zend Engine part - the modules patches
will follow later today)
/PHP_5_3/Zend/zend_objects.c
51e52e2 31-May-2006 Dmitry Stogov <dmitry@php.net> Support for nested exceptions and fatal errors in destructors
/PHP_5_3/Zend/zend_objects.c
290ed55 20-May-2006 Marcus Boerger <helly@php.net> - MFH Improved error message
/PHP_5_3/Zend/zend_objects.c
637a404 09-May-2006 Marcus Boerger <helly@php.net> - MFH as discussed
. zend_exception_get_default() -> zend_exception_get_default(TSRMLS_D)
. zend_get_error_exception() -> zend_get_error_exception(TSRMLS_D)
. added E_RECOVERABLE_ERROR
. added ZEND_TOSTRING_FUNC_NAME
. added __tostring function cache to zend_class_entry
. added ZEND_NAMED_ME
. modified ZEND_ME_MAPPING to support method flags
. added ZEND_MN
. method entries now use prefix "zim_" instead of "zif_"
. drop EG(ze1_compatibility_mode)
. changed cast handler, now without (int should_free):
typedef int (*zend_object_cast_t)(zval *readobj, zval *retval, int type TSRMLS_DC);
. changed get_iterator, now receives whether value is by ref:
zend_object_iterator *(*get_iterator)(zend_class_entry *ce, zval *object, int by_ref TSRMLS_DC);
. added zend_objects_store_add_ref_by_handle
. added zend_objects_store_del_ref_by_handle
. convert_to_explicit_type(pzv, type)
/PHP_5_3/Zend/zend_objects.c
59b8592 29-Mar-2006 Antony Dovgal <tony2001@php.net> fix bug #36898 (__set() leaks in classes extending internal ones)

Added:
ZEND_API void zend_object_std_init(zend_object *object, zend_class_entry *ce TSRMLS_DC)
ZEND_API void zend_object_std_dtor(zend_object *object TSRMLS_DC)

to initialize and destroy zend_object structs
/PHP_5_3/Zend/zend_objects.c
61e93cc 04-Jan-2006 Andi Gutmans <andi@php.net> - Update copyright notices to 2006
/PHP_5_3/Zend/zend_objects.c
64931b6 15-Nov-2005 Dmitry Stogov <dmitry@php.net> Allow recursive calls to __get/__set for different properties
/PHP_5_3/Zend/zend_objects.c
23e4102 04-Aug-2005 Dmitry Stogov <dmitry@php.net> Fixed clone bug in ze1_compatibilty mode
/PHP_5_3/Zend/zend_objects.c
916815b 03-Aug-2005 foobar <sniper@php.net> Bump up the year
/PHP_5_3/Zend/zend_objects.c
345e025 07-Jul-2005 Dmitry Stogov <dmitry@php.net> Fixed bug #33512 (Add missing support for isset()/unset() overloading to complement the property get/set methods)
/PHP_5_3/Zend/zend_objects.c
7e8bd05 07-Jun-2005 Ilia Alshanetsky <iliaa@php.net> Fixed ZTS build.
/PHP_5_3/Zend/zend_objects.c
055e889 07-Jun-2005 Dmitry Stogov <dmitry@php.net> Fixed bug #33243 (ze1_compatibility_mode does not work as expected)
/PHP_5_3/Zend/zend_objects.c
8140f09 24-Feb-2005 Andi Gutmans <andi@php.net> - Revert following patch until we decide what is the right way to handle
- this:
- Fix signatures they are all meant to be able to deal with any type in any
object storage (though we are still missing several parts)
/PHP_5_3/Zend/zend_objects.c
3096f1e 22-Feb-2005 Marcus Boerger <helly@php.net> - Fix signatures they are all meant to be able to deal with any type in any
object storage (though we are still missing several parts)
/PHP_5_3/Zend/zend_objects.c
e39f3f3 28-Sep-2004 Marcus Boerger <helly@php.net> Simplify/Optmize magic method calls (__get/__set/__call/__clone/__destruct)
/PHP_5_3/Zend/zend_objects.c
dd5652e 06-Sep-2004 Marcus Boerger <helly@php.net> - Fix handling of exceptions in dtors
/PHP_5_3/Zend/zend_objects.c
3333380 02-Mar-2004 Andi Gutmans <andi@php.net> - Improve fix for protecting destructor's from exceptions.
- I was killing the current exception completely which was wrong.
/PHP_5_3/Zend/zend_objects.c
8912a50 01-Mar-2004 Andi Gutmans <andi@php.net> - Fix crash in destructors(). You can't throw an exception in destructors
as there is no guaranteed time when the destructor will be called.
/PHP_5_3/Zend/zend_objects.c
3ac58bf 04-Feb-2004 Zeev Suraski <zeev@php.net> - Small fixes
/PHP_5_3/Zend/zend_objects.c
f5f7d56 04-Feb-2004 Zeev Suraski <zeev@php.net> Change destructor implementation (details will follow on internals@)
/PHP_5_3/Zend/zend_objects.c
363c587 03-Feb-2004 Marcus Boerger <helly@php.net> Nuke unused variable
/PHP_5_3/Zend/zend_objects.c
848d4ae 03-Feb-2004 Zeev Suraski <zeev@php.net> Perform a bitwise copy of the object even when __clone() is defined.
__clone() is back to not requiring any arguments, as $that is no longer
needed ($this already contains a copy of the original object, by the time
we __clone() is executed).
Calling the parent clone is done using parent::__clone()
/PHP_5_3/Zend/zend_objects.c
8e30d96 02-Feb-2004 Zeev Suraski <zeev@php.net> Redesign the clone() feature to fix some fundamental flaws in the previous
implementation.

Using clone directly is now done using
$replica = clone $src;

Clone methods must now be declared as follows:
function __clone($that)
{
}

Clone methods in derived classes can call the __clone method of their parent
classes using parent::__clone($that)
/PHP_5_3/Zend/zend_objects.c
ccfc46b 08-Jan-2004 foobar <sniper@php.net> - Happy new year and PHP 5 for rest of the files too..
# Should the LICENSE and Zend/LICENSE dates be updated too?
/PHP_5_3/Zend/zend_objects.c
e20f534 27-Dec-2003 Marcus Boerger <helly@php.net> Simplify
/PHP_5_3/Zend/zend_objects.c
9702c70 02-Sep-2003 Marcus Boerger <helly@php.net> Synch/Unify error messages related to function/method calls
/PHP_5_3/Zend/zend_objects.c
d4aa155 09-Aug-2003 Marcus Boerger <helly@php.net> Precise destructor errors
/PHP_5_3/Zend/zend_objects.c
9fa2d52 27-Jul-2003 Stanislav Malyshev <stas@php.net> make clone and throw coexist peacefully
/PHP_5_3/Zend/zend_objects.c
7cdc2d1 19-Jul-2003 Marcus Boerger <helly@php.net> Shuffle code to ease writing clone handlers
/PHP_5_3/Zend/zend_objects.c
5b54322 02-Jul-2003 Marcus Boerger <helly@php.net> Temporairy solution to overcome shutdown propbelms with objects that have
hidden destructors.
#
# If we set the error level to E_ERROR what we must to to be correct and an
# object needs to be automatically destructed in shutdown process then the
# exit would cause memory corruption and a SEGV.
/PHP_5_3/Zend/zend_objects.c
669016c 02-Jul-2003 Marcus Boerger <helly@php.net> Reorganize this a bit to ensure the object memory is destructed before
showing the error.
/PHP_5_3/Zend/zend_objects.c
74a0f6c 02-Jul-2003 Marcus Boerger <helly@php.net> Finally fix property cloning and fix the tests accordingly.

# The default behaviour is to copy all properties with all current values
# from the old object. But if __clone is overwritten then only the default
# properties are cloned with their correct default values. So we keep
# the type system intact and also allow real __clone overwriting now.
/PHP_5_3/Zend/zend_objects.c
5500287 01-Jul-2003 Marcus Boerger <helly@php.net> Fix __clone().

# This is somewhat discussable. I copied all properties from the old to the
# new object. But for type correctness we only need to copy the properties
# declared in the class and its parents.
#
# Also someone might want to take care about static and const members.
/PHP_5_3/Zend/zend_objects.c
35c4093 01-Jul-2003 Marcus Boerger <helly@php.net> Fix destructor visibility
/PHP_5_3/Zend/zend_objects.c
f68c7ff 10-Jun-2003 James Cox <imajes@php.net> updating license information in the headers.
/PHP_5_3/Zend/zend_objects.c
866332a 26-Mar-2003 Sebastian Bergmann <sebastian@php.net> Eliminate TSRMLS_FETCH() calls in zend_objects_new() and zend_objects_get_address().
/PHP_5_3/Zend/zend_objects.c
333406b 01-Feb-2003 foobar <sniper@php.net> - Added some missing CVS $Id$ tags, headers and footers.
/PHP_5_3/Zend/zend_objects.c
46306a3 17-Jan-2003 Harald Radi <phanto@php.net> export zend_objects_destroy_object()
static inline was meaningless anyways as the function
was only used as a callback handler and was never
called directly
/PHP_5_3/Zend/zend_objects.c
f7f9721 05-Nov-2002 Andi Gutmans <andi@php.net> - Change the automatically created variable $clone in __clone() to
- $that as discussed at the PHP Conference. If there are any objections
- alternative names please let me know. The reason for changing it from
- $clone is because $clone sounds as if it's the newly cloned object and
- not the old one.
/PHP_5_3/Zend/zend_objects.c
d8651c8 04-Sep-2002 Stanislav Malyshev <stas@php.net> Support for __get, __set and __call in classes.
This should work as follows: if class hasn't member with given name,
__get/__set is called. If class has no method with given name, __call is called.
__get/__set are not recursive, __call can be.
/PHP_5_3/Zend/zend_objects.c
646292e 08-Aug-2002 Sebastian Bergmann <sebastian@php.net> Fix warning.
/PHP_5_3/Zend/zend_objects.c
11fb07a 08-Aug-2002 Stanislav Malyshev <stas@php.net> Add ZEND_API to functions
/PHP_5_3/Zend/zend_objects.c
4a52b98 01-Jul-2002 Andi Gutmans <andi@php.net> - Export zend_object_get_address()
/PHP_5_3/Zend/zend_objects.c
b53569c 22-Jun-2002 Andi Gutmans <andi@php.net> - Nuke persist_alloc().
/PHP_5_3/Zend/zend_objects.c
478ed1c 31-May-2002 Andi Gutmans <andi@php.net> - Fix build
/PHP_5_3/Zend/zend_objects.c
f75f3cf 31-May-2002 Stanislav Malyshev <stas@php.net> Generalize object storage and reference bookkeeping
/PHP_5_3/Zend/zend_objects.c
1fe8df1 14-May-2002 Andi Gutmans <andi@php.net> - constructor_called is supposed to be destructor_called
/PHP_5_3/Zend/zend_objects.c
c84a4ea 15-Mar-2002 Andi Gutmans <andi@php.net> - Pass TSRMLS to callbacks.
/PHP_5_3/Zend/zend_objects.c
2505f6b 01-Mar-2002 Andi Gutmans <andi@php.net> - Fix crash reported by Sebastian when destructor function causes a fatal
- error. I hope this does it and we don't find any other problems.
/PHP_5_3/Zend/zend_objects.c
b042386 08-Feb-2002 Andi Gutmans <andi@php.net> - Remove object debug messages.
/PHP_5_3/Zend/zend_objects.c
6608f07 07-Feb-2002 Stanislav Malyshev <stas@php.net> Mega-commit: Enter the new object model
Note: only standard Zend objects are working now. This is definitely going to
break custom objects like COM, Java, etc. - this will be fixed later.
Also, this may break other things that access objects' internals directly.
/PHP_5_3/Zend/zend_objects.c
e366f5d 04-Feb-2002 Andi Gutmans <andi@php.net> - Fix problem with the objects_destructor called during shutdown. It was
- freeing objects from id 0 instead of id 1. id 0 is not used.
- Change isset/empty opcodes to support static members and the new way of
- doing $this->foobar. Also the opcodes operate now on the hash table
- combined with the variable names so that they can be overloaded by the
- soon to be added overloading patch.
/PHP_5_3/Zend/zend_objects.c
7309a6e 25-Jan-2002 Andi Gutmans <andi@php.net> - First destructor hell fix. There was a situation where an object's
- destructor could be run after its class was already dead. Right now
- object destructors is the first thing whic happens during shutdown in
- order to prevent this problem. It's very likely that destructors will
- cause more grief and we'll have to outline exactly when you should use
- them and what kind of logic you're allowed to do inside of them.
- This bug was reported by sebastian.
/PHP_5_3/Zend/zend_objects.c
e322abd 27-Dec-2001 Andi Gutmans <andi@php.net> - Use two underscores for __construct(), __clone and friends...
/PHP_5_3/Zend/zend_objects.c
3d89072 27-Dec-2001 Andi Gutmans <andi@php.net> - Only check refcount of object if the destructor was called.
/PHP_5_3/Zend/zend_objects.c
73b159e 27-Dec-2001 Andi Gutmans <andi@php.net> - Experimental support for destructors. We need to see if destructors
- will actually work well in the context of PHP so we should consider this
- as experimental. Possible problems might be that when the constructor is
- run PHP might not be in a stable state.
/PHP_5_3/Zend/zend_objects.c
29ea3da 26-Dec-2001 Andi Gutmans <andi@php.net> - Pretty much finish _clone() support
/PHP_5_3/Zend/zend_objects.c
6435c3e 16-Aug-2001 Andi Gutmans <andi@php.net> - Remove bogus notice
/PHP_5_3/Zend/zend_objects.c
ea48c0c 16-Aug-2001 Andi Gutmans <andi@php.net> - Fix a bug in method calls.
- Try to get the old copying behavior of objects to work (doesn't work yet).
/PHP_5_3/Zend/zend_objects.c
76a7a5b 11-Aug-2001 Andi Gutmans <andi@php.net> - More work on making objects work
/PHP_5_3/Zend/zend_objects.c
532677e 11-Aug-2001 Andi Gutmans <andi@php.net> - Fix some places which create objects. The fixes are ugly and will be
revised when things start working well
/PHP_5_3/Zend/zend_objects.c
1751c4e 11-Aug-2001 Andi Gutmans <andi@php.net> - Fix UNIX build.
/PHP_5_3/Zend/zend_objects.c
5af7770 07-Aug-2001 Andi Gutmans <andi@php.net> - Sync Engine2 CVS with latest Engine CVS
/PHP_5_3/Zend/zend_objects.c