Date: 02/20/01
- Next message: amra <email protected>: "[PHP-DEV] PHP 4.0 Bug #9359: inline not defined in zend_static_allocator.c"
- Previous message: webmaster <email protected>: "[PHP-DEV] PHP 4.0 Bug #9357: PHP won't use the method "post""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: amra <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:
ext/standard/filestat.c
ext/standard/file.c
file.c has the following code:
#ifdef HAVE_ST_BLKSIZE
add_assoc_long ( return_value, "rdev" , stat_sb.st_rdev );
add_assoc_long ( return_value , "blksize" , stat_sb.st_blksize );
#endif
and filestat.c has the following code:
#ifdef HAVE_ST_BLKSIZE
add_next_index_long(return_value, stat_sb->st_rdev);
#else
add_next_index_long(return_value, -1);
#endif
in both cases, it should have been checking for HAVE_ST_RDEV before accessing the st_rdev field.
-- Edit Bug report at: http://bugs.php.net/?id=9358&edit=1-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: amra <email protected>: "[PHP-DEV] PHP 4.0 Bug #9359: inline not defined in zend_static_allocator.c"
- Previous message: webmaster <email protected>: "[PHP-DEV] PHP 4.0 Bug #9357: PHP won't use the method "post""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

