From: [EMAIL PROTECTED]
Operating system: Tru64
PHP version: 4.3.0RC2
PHP Bug Type: Compile Failure
Bug description: stat macro
When compile PHP-4.3.0RC2 on Tru64 arch, I got :
[.............]
/usr/local/tmp/php-4.3.0RC2/main/streams.c: In function
`_php_stream_stat':
/usr/local/tmp/php-4.3.0RC2/main/streams.c:655: structure has no member
named `_F64_stat'
[.............]
The bogus line is :
return stream->ops->stat(stream, ssb TSRMLS_CC);
Indeed, on this arch, 'stat' is a macro to '_F64_stat' whereas it use here
as a member of struct '_php_stream_ops'.
So I've added parenthesis to prevent macro expansion :
return (stream->ops->stat)(stream, ssb TSRMLS_CC);
PS: I saw the same pb on CVS version.
Sincerly,
Julien
--
Edit bug report at http://bugs.php.net/?id=20827&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20827&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20827&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20827&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20827&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20827&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20827&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20827&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20827&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20827&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20827&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20827&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20827&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20827&r=isapi