summaryrefslogtreecommitdiff
path: root/ext/standard
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2001-08-07 20:13:54 +0000
committerfoobar <sniper@php.net>2001-08-07 20:13:54 +0000
commit001df0d028c61bf939bc18eb8047e46f9fbe7a75 (patch)
tree00a69e8d1096f17c47b220e25c14f668d65f4816 /ext/standard
parent4c5a6cbb82e37dada3c35b1402e25af4cba8f99c (diff)
downloadphp-git-001df0d028c61bf939bc18eb8047e46f9fbe7a75.tar.gz
Yet another TSRM fix.
Diffstat (limited to 'ext/standard')
-rw-r--r--ext/standard/dl.c5
-rw-r--r--ext/standard/dl.h2
2 files changed, 3 insertions, 4 deletions
diff --git a/ext/standard/dl.c b/ext/standard/dl.c
index ae743dce24..b24c693596 100644
--- a/ext/standard/dl.c
+++ b/ext/standard/dl.c
@@ -75,7 +75,7 @@ PHP_FUNCTION(dl)
} else if (PG(safe_mode)) {
php_error(E_ERROR, "Dynamically loaded extensions aren't allowed when running in SAFE MODE.");
} else {
- php_dl(*file, MODULE_TEMPORARY, return_value);
+ php_dl(*file, MODULE_TEMPORARY, return_value TSRMLS_CC);
}
}
@@ -92,7 +92,7 @@ PHP_FUNCTION(dl)
/* {{{ php_dl
*/
-void php_dl(pval *file, int type, pval *return_value)
+void php_dl(pval *file, int type, pval *return_value TSRMLS_DC)
{
void *handle;
char *libpath;
@@ -100,7 +100,6 @@ void php_dl(pval *file, int type, pval *return_value)
zend_module_entry *(*get_module)(void);
int error_type;
char *extension_dir;
- TSRMLS_FETCH();
if (type==MODULE_PERSISTENT) {
/* Use the configuration hash directly, the INI mechanism is not yet initialized */
diff --git a/ext/standard/dl.h b/ext/standard/dl.h
index 0e881eaee2..d80d82e0ea 100644
--- a/ext/standard/dl.h
+++ b/ext/standard/dl.h
@@ -23,7 +23,7 @@
#ifndef DL_H
#define DL_H
-void php_dl(pval *file,int type,pval *return_value);
+void php_dl(pval *file,int type,pval *return_value TSRMLS_DC);
/* dynamic loading functions */