[svn:PHP-Sandwich] rev 1411 - PHP-Sandwich/trunk/PHP
[email protected] 25 Jul 2005 20:26:03 -0000
| Newsgroups | perl.php.sandwich.dev |
|---|---|
| Message-ID | <[email protected]> |
Author: gschlossnagle
Date: Mon Jul 25 13:26:02 2005
New Revision: 1411
Modified:
PHP-Sandwich/trunk/PHP/Interpreter.pm
Log:
require DynaLoader and ensure that bootstrap() succeeds.
Modified: PHP-Sandwich/trunk/PHP/Interpreter.pm
==============================================================================
--- PHP-Sandwich/trunk/PHP/Interpreter.pm (original)
+++ PHP-Sandwich/trunk/PHP/Interpreter.pm Mon Jul 25 13:26:02 2005
@@ -1,14 +1,15 @@
package PHP::Interpreter;
+require DynaLoader;
+
use strict;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $AUTOLOAD);
-@ISA = qw(Exporter DynaLoader);
$VERSION = "0.9";
+@ISA = qw(Exporter DynaLoader);
+bootstrap PHP::Interpreter || die "couldn't bootstrap PHP::Interpreter";
use PHP::Interpreter::Class;
-bootstrap PHP::Interpreter;
-
sub AUTOLOAD {
my $sub = $AUTOLOAD;
my $self = shift;