summaryrefslogtreecommitdiff
path: root/ext/standard/dl.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-08-13 21:03:27 +0000
committerZeev Suraski <zeev@php.net>1999-08-13 21:03:27 +0000
commit58e24ac18a06944791cebf606042e92128abc7b7 (patch)
treeb37103a4c8ec02a83bb0230211d68188ceadfcdb /ext/standard/dl.c
parent5ae3f32b24b45512c96e89ff3162725ddef09cc8 (diff)
downloadphp-git-58e24ac18a06944791cebf606042e92128abc7b7.tar.gz
- Add PHP Modules workspace
- Get the MySQL module to compile&work under thread-safe Win32 - Fix various thread safety issues with dynamic modules
Diffstat (limited to 'ext/standard/dl.c')
-rw-r--r--ext/standard/dl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/standard/dl.c b/ext/standard/dl.c
index 945650f5aa..6d3db207b0 100644
--- a/ext/standard/dl.c
+++ b/ext/standard/dl.c
@@ -87,7 +87,9 @@ void php3_dl(pval *file,int type,pval *return_value)
php3_module_entry *(*get_module)(void);
PLS_FETCH();
- if (cfg_get_string("extension_dir",&PG(extension_dir))==SUCCESS && PG(extension_dir)){
+ if (cfg_get_string("extension_dir",&PG(extension_dir))==SUCCESS
+ && PG(extension_dir)
+ && PG(extension_dir)[0]){
int extension_dir_len = strlen(PG(extension_dir));
if (PG(extension_dir)[extension_dir_len-1]=='/' || PG(extension_dir)[extension_dir_len-1]=='\\') {