#20827 [Csd]: stat macro
| From: | wez@php.net | Date: | Wed, 15 Jan 2003 23:46:01 +0000 |
| Subject: | #20827 [Csd]: stat macro | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-30191@lists.php.net to get a copy of this message | ||
ID: 20827
Updated by: wez@php.net
Reported By: julien.soula@free.fr
Status: Closed
Bug Type: Compile Failure
Operating System: Tru64
PHP Version: 4.3.0RC2
New Comment:
It has not yet been applied to the 4.3 branch
Previous Comments:
------------------------------------------------------------------------
[2003-01-15 16:13:27] peter@alcor.concordia.ca
It's not fixed in CVS, error shows up in the same place:
/local/pkg/apache/php-20030115/main/streams.c: In function
'_php_stream_stat':
/local/pkg/apache/php-20030115/main/streams.c:677: structure has no
member named `_F64_stat'
------------------------------------------------------------------------
[2003-01-06 17:39:56] wez@php.net
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2003-01-06 16:18:35] peter@alcor.concordia.ca
Same thing happens with 4.3.0 release, in the same file main/streams.c
but on line 677
------------------------------------------------------------------------
[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