From:             [EMAIL PROTECTED]
Operating system: OS400
PHP version:      4.0.4pl1
PHP Bug Type:     Compile Failure
Bug description:  HAVE_RDEV not being checked before accessing field st_rdev

st_rdev in struct stat is being access without any regards to HAVE_RDEV in the 
following files:


file.c has the following code:

        add_assoc_long ( return_value, "rdev" , stat_sb.st_rdev );
        add_assoc_long ( return_value , "blksize" , stat_sb.st_blksize );

and filestat.c has the following code:

                add_next_index_long(return_value, stat_sb->st_rdev);
                add_next_index_long(return_value, -1);

in both cases, it should have been checking for HAVE_ST_RDEV before accessing the 
st_rdev field.

Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to