[svn:PHP-Sandwich] rev 1419 - PHP-Sandwich/trunk/lib/PHP
[email protected] 26 Jul 2005 21:05:34 -0000
| Newsgroups | perl.php.sandwich.dev |
|---|---|
| Message-ID | <[email protected]> |
Author: gschlossnagle
Date: Tue Jul 26 14:05:33 2005
New Revision: 1419
Modified:
PHP-Sandwich/trunk/lib/PHP/Interpreter.pm
Log:
Performance improvement for dynamic calls
Modified: PHP-Sandwich/trunk/lib/PHP/Interpreter.pm
==============================================================================
--- PHP-Sandwich/trunk/lib/PHP/Interpreter.pm (original)
+++ PHP-Sandwich/trunk/lib/PHP/Interpreter.pm Tue Jul 26 14:05:33 2005
@@ -16,6 +16,8 @@ sub AUTOLOAD {
$sub =~ s/.*:://;
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, @_) };
$self->call(@_);
}