php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20827 stat macro
Submitted: 2002-12-05 08:52 UTC Modified: 2003-02-20 14:45 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: julien dot soula at free dot fr Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.0RC2 OS: Tru64
Private report: No CVE-ID: None
 [2002-12-05 08:52 UTC] julien dot soula at free dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-06 16:18 UTC] peter at alcor dot concordia dot ca
Same thing happens with 4.3.0 release, in the same file main/streams.c but on line 677
 [2003-01-06 17:39 UTC] 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-15 16:13 UTC] peter at alcor dot concordia dot 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-15 17:46 UTC] wez@php.net
It has not yet been applied to the 4.3 branch
 [2003-01-16 00:50 UTC] derick@php.net
(please change the status next time)
 [2003-02-20 07:59 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2003-02-20 14:45 UTC] 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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 06:01:32 2025 UTC