On Fri, 5 Aug 2005, Anantha Kesari H Y wrote: > hyanantha Fri Aug 5 10:09:21 2005 EDT > > Modified files: (Branch: PHP_4_4) > /php-src/ext/exif exif.c > Log: > NetWare specific stat structure issues. > --Kamesh
Wouldn't it be a good idea to abstract this somewhere? Everywhere we use stat we now need an ifdef. Or actually better: why not fix Netware? :) Derick > http://cvs.php.net/diff.php/php-src/ext/exif/exif.c?r1=1.118.2.37&r2=1.118.2.37.2.1&ty=u > Index: php-src/ext/exif/exif.c > diff -u php-src/ext/exif/exif.c:1.118.2.37 > php-src/ext/exif/exif.c:1.118.2.37.2.1 > --- php-src/ext/exif/exif.c:1.118.2.37 Tue Mar 22 17:07:03 2005 > +++ php-src/ext/exif/exif.c Fri Aug 5 10:09:18 2005 > @@ -17,7 +17,7 @@ > +----------------------------------------------------------------------+ > */ > > -/* $Id: exif.c,v 1.118.2.37 2005/03/22 22:07:03 edink Exp $ */ > +/* $Id: exif.c,v 1.118.2.37.2.1 2005/08/05 14:09:18 hyanantha Exp $ */ > > /* ToDos > * > @@ -107,7 +107,7 @@ > }; > /* }}} */ > > -#define EXIF_VERSION "1.4 $Id: exif.c,v 1.118.2.37 2005/03/22 22:07:03 edink > Exp $" > +#define EXIF_VERSION "1.4 $Id: exif.c,v 1.118.2.37.2.1 2005/08/05 14:09:18 > hyanantha Exp $" > > /* {{{ PHP_MINFO_FUNCTION > */ > @@ -3722,7 +3722,11 @@ > if (php_stream_is(ImageInfo->infile, PHP_STREAM_IS_STDIO)) { > if (VCWD_STAT(FileName, &st) >= 0) { > /* Store file date/time. */ > +#ifdef NETWARE > + ImageInfo->FileDateTime = st.st_mtime.tv_sec; > +#else > ImageInfo->FileDateTime = st.st_mtime; > +#endif > ImageInfo->FileSize = st.st_size; > /*exif_error_docref(NULL TSRMLS_CC, ImageInfo, > E_NOTICE, "open stream is file: %d", ImageInfo->FileSize);*/ > } > > -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
