From: Tomas V.V.Cox Date: Sun, 9 Jun 2002 18:18:01 +0000 (+0000) Subject: if (!dl(php_gtk)) die("Unable to load the php_gtk extension\n"); X-Git-Tag: php5_5_0~106 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c67c59564593af1fe6fda1fa4d978462bcc60c7e;p=php if (!dl(php_gtk)) die("Unable to load the php_gtk extension\n"); --- diff --git a/pear/PEAR/Frontend/Gtk.php b/pear/PEAR/Frontend/Gtk.php index ee83e8eb6d..27a798e587 100644 --- a/pear/PEAR/Frontend/Gtk.php +++ b/pear/PEAR/Frontend/Gtk.php @@ -48,7 +48,9 @@ class PEAR_Frontend_Gtk extends PEAR { 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');