cvs: php4 /main streams.c
| From: | Yasuo Ohgaki | Date: | Sat, 16 Mar 2002 03:30:19 +0000 |
| Subject: | cvs: php4 /main streams.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-10207@lists.php.net to get a copy of this message | ||
yohgaki Fri Mar 15 22:30:19 2002 EDT
Modified files:
/php4/main streams.c
Log:
ZTS build fix
Index: php4/main/streams.c
diff -u php4/main/streams.c:1.14 php4/main/streams.c:1.15
--- php4/main/streams.c:1.14 Fri Mar 15 21:48:35 2002
+++ php4/main/streams.c Fri Mar 15 22:30:19 2002
@@ -389,7 +389,7 @@
PHPAPI php_stream *php_stream_fopen_temporary_file(const char *dir, const char *pfx, char
**opened_path TSRMLS_DC)
{
- FILE *fp = php_open_temporary_file(dir, pfx, opened_path);
+ FILE *fp = php_open_temporary_file(dir, pfx, opened_path TSRMLS_CC);
if (fp) {
php_stream *stream = php_stream_fopen_from_file(fp, "wb");
@@ -671,9 +671,9 @@
PHPAPI php_stream *php_stream_fopen(const char *filename, const char *mode, char **opened_path
TSRMLS_DC)
{
FILE *fp;
- char *realpath;
+ char *realpath = NULL;
- realpath = expand_filepath(filename, NULL TSRMLS_C);
+ realpath = expand_filepath(filename, NULL TSRMLS_CC);
fp = fopen(realpath, mode);
@@ -901,7 +901,7 @@
if (stream == NULL && (options & REPORT_ERRORS)) {
char *tmp = estrdup(path);
php_strip_url_passwd(tmp);
- zend_error(E_WARNING, "%s(\"%s\") - %s", get_active_function_name(TSRMLS_CC),
tmp, strerror(errno));
+ zend_error(E_WARNING, "%s(\"%s\") - %s", get_active_function_name(TSRMLS_CC),
tmp, strerror(errno) TSRMLS_CC);
efree(tmp);
}
return stream;