summaryrefslogtreecommitdiff
path: root/ext/standard/basic_functions.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>1999-11-30 20:18:11 +0000
committerAndi Gutmans <andi@php.net>1999-11-30 20:18:11 +0000
commit2337d110f91ddf02dede5b91ce22fd69bc3df8fb (patch)
tree622dabbd3eb1192382e253af403362050197b230 /ext/standard/basic_functions.c
parent5463dd5b387298a84736e590e5d213f5bafe9435 (diff)
downloadphp-git-2337d110f91ddf02dede5b91ce22fd69bc3df8fb.tar.gz
- Added opened_path to php_fopen_wrapper() and the URL fopen wrapper (it's not
always properly set, it's a TODO for all of us). This enables us to implement true 'use' support. @- Added support for the 'use' keyword - behaves like 'require', but will not @ use the same file more than once (Andi & Zeev, Zend library)
Diffstat (limited to 'ext/standard/basic_functions.c')
-rw-r--r--ext/standard/basic_functions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 2b51c2025b..6227f706cd 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -925,7 +925,7 @@ PHPAPI int _php_error_log(int opt_err,char *message,char *opt,char *headers){
case 1: /*send an email*/
{
#if HAVE_SENDMAIL
- if (!_php3_mail(opt,"PHP3 error_log message",message,headers)){
+ if (!_php3_mail(opt,"PHP error_log message",message,headers)){
return FAILURE;
}
#else
@@ -939,7 +939,7 @@ PHPAPI int _php_error_log(int opt_err,char *message,char *opt,char *headers){
return FAILURE;
break;
case 3: /*save to a file*/
- logfile=php3_fopen_wrapper(opt,"a", (IGNORE_URL|ENFORCE_SAFE_MODE), &issock, &socketd);
+ logfile=php3_fopen_wrapper(opt,"a", (IGNORE_URL|ENFORCE_SAFE_MODE), &issock, &socketd, NULL);
if(!logfile) {
php_error(E_WARNING,"error_log: Unable to write to %s",opt);
return FAILURE;