cvs: php4 /ext/exif exif.c
| From: | Daniel Beulshausen | Date: | Tue, 03 Apr 2001 21:39:18 +0000 |
| Subject: | cvs: php4 /ext/exif exif.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-4967@lists.php.net to get a copy of this message | ||
dbeu Tue Apr 3 14:39:18 2001 EDT
Modified files:
/php4/ext/exif exif.c
Log:
resolve realpath if in v-dir mode
Index: php4/ext/exif/exif.c
diff -u php4/ext/exif/exif.c:1.12 php4/ext/exif/exif.c:1.13
--- php4/ext/exif/exif.c:1.12 Sun Feb 25 22:06:54 2001
+++ php4/ext/exif/exif.c Tue Apr 3 14:39:18 2001
@@ -1060,7 +1060,7 @@
pval **p_name;
int ac = ZEND_NUM_ARGS(), ret;
ImageInfoType ImageInfo;
- char tmp[64];
+ char tmp[64], *file;
/*ImageInfo.Thumbnail = NULL;
ImageInfo.ThumbnailSize = 0;
@@ -1070,7 +1070,14 @@
WRONG_PARAM_COUNT;
convert_to_string_ex(p_name);
- ret = php_read_jpeg_exif(&ImageInfo, (*p_name)->value.str.val,1);
+
+#ifdef VIRTUAL_DIR
+ virtual_filepath(Z_STRVAL_PP(p_name), &file);
+ ret = php_read_jpeg_exif(&ImageInfo, file,1);
+#else
+ ret = php_read_jpeg_exif(&ImageInfo, Z_STRVAL_PP(p_name),1);
+#endif
+
if (array_init(return_value) == FAILURE) {
RETURN_FALSE;
}