Commit Graph

36 Commits

Author SHA1 Message Date
foobar
cef45338c9 fix build.. 2002-12-01 17:24:00 +00:00
Marcus Boerger
38f5812191 Skip overload for ZE2
Bug #20156
2002-12-01 00:38:30 +00:00
Derick Rethans
3b99744f0b - Fix ZE2 build when overload is enabled 2002-09-30 09:40:12 +00:00
Sebastian Bergmann
419321979d Don't build ext/overload with Zend Engine 2. 2002-09-04 13:55:52 +00:00
Andrei Zmievski
87f5f3962d Properly return the result of __call() handler. 2002-06-12 16:46:24 +00:00
Harald Radi
6055c2b11a ZE2 compatibility fixes 2002-04-30 23:34:09 +00:00
Sebastian Bergmann
208c52fda6 Beautify. 2002-04-17 05:19:10 +00:00
Jason Greene
8abf829c2a Fix CREDIT files, remove email address 2002-03-13 18:45:39 +00:00
Sascha Schumann
5cba3a99c2 extension converted automatically to PHP_NEW_EXTENSION. Manually confirmed 2002-03-12 16:44:00 +00:00
Sebastian Bergmann
90613d2282 Maintain headers. 2002-02-28 08:29:35 +00:00
Andrei Zmievski
313a3602bb This has been scaring people off. 2002-02-27 17:32:27 +00:00
Jon Parise
a2d83ca4a4 Match the table style of the other single-row info entries. 2001-12-31 19:46:30 +00:00
Andrei Zmievski
14ea586525 Since PHP method names are case-insensitive, we have to fold access to 'FOO'
and 'foo' properties into a call to the same accessor.
2001-12-12 02:53:05 +00:00
Andrei Zmievski
727ef4b94f Ack, apparently in statically linked-in extensions we have to clean the
hash of overloaded classes on request shutdown. Also, added some fold
markers and rearranged some defines.
2001-12-12 02:27:49 +00:00
Sebastian Bergmann
38933514e1 Update headers. 2001-12-11 15:32:16 +00:00
Andrei Zmievski
51a29e57f8 Show example of property-specific accessors. 2001-12-11 04:45:58 +00:00
Andrei Zmievski
b197b8d104 This commit implements property-specific accessors.
When overload() is called, it not only scans for general handlers, but
also for any methods beginning with __get_ and __set_ and saves a list of
them. Then when a property is accessed, e.g. $obj->x, the extension will first
check whether __get_x() is available, and will call it if it is, otherwise
it will invoke the general __get() handler.
2001-12-11 04:41:15 +00:00
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
foobar
1066633281 Enable it for real. 2001-12-10 00:38:18 +00:00
Stig Bakken
70ea4df4af * enable overload extension by default 2001-12-10 00:33:01 +00:00
Stig Bakken
f22f8adedd * use macros in error messages 2001-12-09 22:39:24 +00:00
Andrei Zmievski
0ba80e7943 *** empty log message *** 2001-12-09 04:34:54 +00:00
Andrei Zmievski
2f4035c833 Adjust to account for latest changes. 2001-12-09 04:31:33 +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
1ec143228a All right, let people RTFM. 2001-12-07 06:19:20 +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
Daniel Beulshausen
bfb066ee96 fix CFLAGS, how could this have worked before? 2001-12-02 14:01:22 +00:00
foobar
f1397d5339 Unified the configure messages. 2001-11-30 19:00:13 +00:00
Andrei Zmievski
fcd83424cf Add todo item. 2001-11-16 15:04:12 +00:00
Harald Radi
b266763335 fix linkage error 2001-10-18 08:14:56 +00:00
Harald Radi
db4021bc7c win32 project file 2001-10-17 00:57:12 +00:00
Andrei Zmievski
88d4de1da9 Adding user-space object overloading extension. 2001-10-15 20:32:56 +00:00