[svn:PHP-Sandwich] rev 1420 - PHP-Sandwich/trunk/lib/PHP
[email protected] 28 Jul 2005 16:07:16 -0000
| Newsgroups | perl.php.sandwich.dev |
|---|---|
| Message-ID | <[email protected]> |
Author: theory
Date: Thu Jul 28 09:07:15 2005
New Revision: 1420
Modified:
PHP-Sandwich/trunk/lib/PHP/Interpreter.pm
Log:
Use the object passed to the method, not some older, cached object!
Modified: PHP-Sandwich/trunk/lib/PHP/Interpreter.pm
==============================================================================
--- PHP-Sandwich/trunk/lib/PHP/Interpreter.pm (original)
+++ PHP-Sandwich/trunk/lib/PHP/Interpreter.pm Thu Jul 28 09:07:15 2005
@@ -17,7 +17,7 @@ sub AUTOLOAD {
unshift @_, $sub;
# we'd prefer to use goto here, but it dies if we croak in it
no strict 'refs';
- *{$AUTOLOAD} = sub { $self->call($sub, @_) };
+ *{$AUTOLOAD} = sub { shift->call($sub, @_) };
$self->call(@_);
}