#20827 [Com]: stat macro
| From: | peter at alcor dot concordia dot ca | Date: | Mon, 06 Jan 2003 22:18:36 +0000 |
| Subject: | #20827 [Com]: stat macro | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29247@lists.php.net to get a copy of this message | ||
ID: 20827
Comment by: peter@alcor.concordia.ca
Reported By: julien.soula@free.fr
Status: Open
Bug Type: Compile Failure
Operating System: Tru64
PHP Version: 4.3.0RC2
New Comment:
Same thing happens with 4.3.0 release, in the same file main/streams.c
but on line 677
Previous Comments:
------------------------------------------------------------------------
[2002-12-05 08:52:35] julien.soula@free.fr
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 this bug report at http://bugs.php.net/?id=20827&edit=1