#43265 [NEW]: wrong header interpretation
| From: | roberto at spadim dot com dot br | Date: | Mon, 12 Nov 2007 17:29:02 +0000 |
| Subject: | #43265 [NEW]: wrong header interpretation | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-119560@lists.php.net to get a copy of this message | ||
From: roberto at spadim dot com dot br
Operating system: any
PHP version: 5.2.5
PHP Bug Type: dBase related
Bug description: wrong header interpretation
Description:
------------
continuing bug 42261...
[28 Sep 7:18pm UTC] roberto at spadim dot com dot br
hello, the same error occur now for logic data (boolean)
[0] => Array
(
[name] => SUSPENSO
[type] => boolean
[length] => 34817 <========= should be 1
[precision] => 0
[format] => %34817s
[offset] => 1
)
[1] => Array
(
[name] => COD_CAD
[type] => number
[length] => 9
[precision] => 0
:
....
[17 Oct 6:45am UTC] roberto at spadim dot com dot br
=> case 'L':
=> dbf->db_flen = 1;
=> break;
should work for logic values (boolean)
the patch was not included in php 5.2.5!
Reproduce code:
---------------
a file with some wrong header information
Expected result:
----------------
boolean must be 1 byte length
Actual result:
--------------
an arbitrary length
--
Edit bug report at http://bugs.php.net/?id=43265&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43265&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43265&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43265&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43265&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43265&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=43265&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=43265&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=43265&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=43265&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=43265&r=support
Expected behavior: http://bugs.php.net/fix.php?id=43265&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=43265&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=43265&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43265&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43265&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43265&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=43265&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=43265&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=43265&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=43265&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=43265&r=mysqlcfg