note 72031 added to function.dl

From: Date: Fri, 29 Dec 2006 21:33:36 +0000
Subject: note 72031 added to function.dl
Groups: php.notes 
Request: Send a blank email to php-notes+get-121023@lists.php.net to get a copy of this message
I recently came across this under PHP 4.4.4, it seems that the dl(); function generates an error/warning about registering the function if a test is done on an extension that is pre-loaded in the php.ini file (extension=gd.so). <?php $gd_is_shared = "shared-library"; if (function_exists('ImageCreateFromPNG') && !@dl('gd.so')) { $gd_is_shared = "embedded"; } print $gd_is_shared; ?> The only purpose of this test is to determine if it is an embedded extension or a loaded extension. I don't see this error occur under PHP 5.1.6 or PHP 5.2.0. The test platform is Mac OS X 10.3.9 and Mac OS X 10.4.8 ---- Server IP: 64.71.164.2 Probable Submitter: 67.78.11.229 ---- Manual Page -- http://www.php.net/manual/en/function.dl.php Edit -- https://master.php.net/note/edit/72031 Del: integrated -- https://master.php.net/note/delete/72031/integrated Del: useless -- https://master.php.net/note/delete/72031/useless Del: bad code -- https://master.php.net/note/delete/72031/bad+code Del: spam -- https://master.php.net/note/delete/72031/spam Del: non-english -- https://master.php.net/note/delete/72031/non-english Del: in docs -- https://master.php.net/note/delete/72031/in+docs Del: other reasons-- https://master.php.net/note/delete/72031 Reject -- https://master.php.net/note/reject/72031 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#121023) next »