Commit Graph

10 Commits

Author SHA1 Message Date
Andrei Zmievski
0c509e5cf8 Modified __call() handler to accept a byref return value parameter that
should be filled in. The __call() handler is now supposed to return true
or false, depending on whether it was successful or not.
2001-12-10 17:20:04 +00:00
Stig Bakken
f22f8adedd * use macros in error messages 2001-12-09 22:39:24 +00:00
Andrei Zmievski
36c4708a84 - Only destroy the current object if it was received from the __get() handler.
- Changed the way method arguments are passed to __call() handler. They are
  now encapsulated inside of an array, which makes it easier to pass them
  to call_user_func_array().
2001-12-09 04:28:23 +00:00
Andrei Zmievski
7b7f46aa2d - Fix memory leak when accessing undefined index or property.
- Only invoke call_get_handler() on an object in the chain if it's overloaded.
2001-12-07 22:03:19 +00:00
Andrei Zmievski
480d2b5624 Make sure refcount is 1 on stack zval. 2001-12-07 14:30:55 +00:00
Andrei Zmievski
9a1f3b48a9 Add fold markers in strategic places and improve MINIT function a bit. 2001-12-07 06:15:02 +00:00
Andrei Zmievski
ecd484ac21 If the method exists in object's function table, call it directly without
using __call() handler.
2001-12-07 06:08:15 +00:00
Andrei Zmievski
9789e43af1 Support overloaded method calls via __call(). 2001-12-07 05:46:02 +00:00
Andrei Zmievski
fcd83424cf Add todo item. 2001-11-16 15:04:12 +00:00
Andrei Zmievski
88d4de1da9 Adding user-space object overloading extension. 2001-10-15 20:32:56 +00:00