From: marrtins at hackers dot lv Operating system: Linux libc.2.3.2 PHP version: 5.0.5 PHP Bug Type: Filesystem function related Bug description: failed to open stream: Inappropriate ioctl for device
Description: ------------ As i migrated from php4 (4.3.9) to php5 (5.0.5, 5.0.4) every file system function (fopen, dba_open, etc) cannot read/write files. Empty file can be created - but can`t write any byte there. Not using any loaders or encoders or similar modules. When recompiled back to 4.3.9 all works fine. The same happens when compiled as apache module - 4.3.9 works fine, 5.0.5 and 5.0.4 not. Reproduce code: --------------- Example can be found here - http://paste.php.lv/2785 compile script: export LDFLAGS=-liconv && ./configure make make install Linux libc-2.3.2 gcc -v Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/specs Configured with: ../gcc-3.3.4/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux Thread model: posix gcc version 3.3.4 Expected result: ---------------- Expecting file `haha` to be created with contents `aa`. Also db4 database with some entries. Actual result: -------------- fopen() reports `failed to open stream: Inappropriate ioctl for device` dba_open() reports `Driver initialization failed for handler: db4` -- Edit bug report at http://bugs.php.net/?id=35073&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35073&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35073&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35073&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=35073&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35073&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35073&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35073&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35073&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35073&r=support Expected behavior: http://bugs.php.net/fix.php?id=35073&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35073&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35073&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35073&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35073&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35073&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35073&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35073&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35073&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35073&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35073&r=mysqlcfg
