php_dl() and absolute filenames

From: Date: Thu, 08 Feb 2001 21:20:57 +0000
Subject: php_dl() and absolute filenames
Groups: php.dev 
Request: Send a blank email to php-dev+get-46061@lists.php.net to get a copy of this message
4.0.4p1's php_dl() function uses a default extension_dir by default, which breaks if the filename is absolute. older versions did not have this problem (without the default extension_dir). Index: ext/standard/dl.c =================================================================== RCS file: /var/covalent/.CVS/covalent/php4/ext/standard/dl.c,v retrieving revision 1.1.1.3 diff -u -r1.1.1.3 dl.c --- ext/standard/dl.c 2001/01/12 08:07:29 1.1.1.3 +++ ext/standard/dl.c 2001/01/22 18:37:43 @@ -118,7 +118,7 @@ error_type = E_CORE_WARNING; } - if (extension_dir && extension_dir[0]){ + if (extension_dir && extension_dir[0] && (*file->value.str.val != '/')){ int extension_dir_len = strlen(extension_dir); libpath = emalloc(extension_dir_len+file->value.str.len+2);

« previous php.dev (#46061) next »