cvs: php4 /pear/PEAR/Frontend Gtk.php
| From: | Tomas V.V.Cox | Date: | Sun, 09 Jun 2002 18:18:01 +0000 |
| Subject: | cvs: php4 /pear/PEAR/Frontend Gtk.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4512@lists.php.net to get a copy of this message | ||
cox Sun Jun 9 14:18:01 2002 EDT
Modified files:
/php4/pear/PEAR/Frontend Gtk.php
Log:
if (!dl(php_gtk)) die("Unable to load the php_gtk extension\n");
Index: php4/pear/PEAR/Frontend/Gtk.php
diff -u php4/pear/PEAR/Frontend/Gtk.php:1.2 php4/pear/PEAR/Frontend/Gtk.php:1.3
--- php4/pear/PEAR/Frontend/Gtk.php:1.2 Sun May 26 08:53:26 2002
+++ php4/pear/PEAR/Frontend/Gtk.php Sun Jun 9 14:18:01 2002
@@ -16,7 +16,7 @@
| Author: Stig Sæther Bakken <ssb@fast.no> |
+----------------------------------------------------------------------+
- $Id: Gtk.php,v 1.2 2002/05/26 12:53:26 ssb Exp $
+ $Id: Gtk.php,v 1.3 2002/06/09 18:18:01 cox Exp $
*/
require_once "PEAR.php";
@@ -48,7 +48,9 @@
{
parent::PEAR();
if (!extension_loaded('php_gtk')) {
- dl('php_gtk.' . (OS_WINDOWS ? 'dll' : 'so'));
+ if (!@dl('php_gtk.' . (OS_WINDOWS ? 'dll' : 'so'))) {
+ die("Unable to load the php_gtk extension\n");
+ }
}
$this->window = &new GtkWindow();
$this->window->set_title('PEAR Installer');