#37461 [NEW]: Meaningless notice from dba w/db4 via apache2handler

From: Date: Tue, 16 May 2006 14:02:21 +0000
Subject: #37461 [NEW]: Meaningless notice from dba w/db4 via apache2handler
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-97187@lists.php.net to get a copy of this message
From: volk at pcservice-direkt dot de Operating system: Linux 2.6.15-1-686 PHP version: 5.1.4 PHP Bug Type: DBM/DBA related Bug description: Meaningless notice from dba w/db4 via apache2handler Description: ------------ PHP prints the following message: »Notice: Unknown: \xac\x13\xb7(null) in Unknown on line 0« if * the script is running via apache2handler * and the dba handler is db4 * and the dba file does not yet exists The problem will not occur if another dba handler is used, or the script is executed via PHP's cli. Reproduce code: --------------- <?php $dba = dba_open('db4.db', 'c', 'db4'); dba_insert('question', 'bug or feature?', $dba); dba_insert('answer', '42', $dba); printf("%s\n", dba_fetch('question', $dba)); ?> Expected result: ---------------- bug or feature? Actual result: -------------- bug or feature? Notice: Unknown: \xac\x13\xb7(null) in Unknown on line 0 -- Edit bug report at http://bugs.php.net/?id=37461&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37461&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37461&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37461&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37461&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37461&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37461&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37461&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37461&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37461&r=support Expected behavior: http://bugs.php.net/fix.php?id=37461&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37461&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37461&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37461&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37461&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37461&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37461&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37461&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37461&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37461&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37461&r=mysqlcfg

« previous php.bugs (#97187) next »