|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-10-15 17:47 UTC] scottmac@php.net
[2008-10-16 05:22 UTC] danhen at web dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 01:00:01 2025 UTC |
Description: ------------ When using current PHP5.3 CVS version a string-limit around 980 bytes occours when reading text-data. The maximum length seems to differ when the table has another structure but is always around 980 bytes. When reading untill a = 981 everthing works fine. Reproduce code: --------------- <?php $oDb = new PDO('sqlite:test.sqlite'); $oDb->query('CREATE TABLE test (a, b)'); $sStr = ''; for($i = 0; $i < 1000; $i++) { $sStr.= 'A'; $oDb->query('INSERT INTO test (a, b) VALUES (\''.$i.'\', \''.$sStr.'\')'); } class test { } $oStmt = $oDb->query('SELECT * FROM test WHERE a = \'982\''); $oResult = $oStmt->fetchObject('test'); print_r($oResult); ?> Expected result: ---------------- test Object ( [a] => 982 [b] => AAAAA ... a string containing 982 'A' ) Actual result: -------------- Fatal error: Call to a member function fetchObject() on a non-object in sqlitetest.php on line 28