ID:               19349
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Feedback
+Status:           Open
 Bug Type:         ODBC related
 Operating System: SuSE 8.0
 PHP Version:      4.2.1
 New Comment:

Don't put this in a different state yet as I can't get the snapshot to
compile until bug #20928 is fixed.


Previous Comments:
------------------------------------------------------------------------

[2003-01-06 12:24:10] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

As soon as the CVS commit happens I think I fixed this.  Give it a try
and let me know.

------------------------------------------------------------------------

[2002-11-16 12:06:34] [EMAIL PROTECTED]

Script is pretty simple. It's hard to just cut and paste because I have
everything spread out in a bunch of classes.

$linkid = odbc_pconnect("database", "username", "password");
$result = odbc_exec($linkid, "SELECT SUBSTR(document, 1, 2000000) FROM
documents WHERE doc_id = 1);
odbc_longreadlen($result, 2000000);
odbc_binmode($result, ODBC_BINMODE_PASSTHRU);
$column = odbc_result($result, 1);

// A short example of what I'm trying to do.
// $column should be filled with up to 2000000 bytes of data.
// By default, it's up to 4096 bytes of data, or whatever is
// set in the php.ini file.

------------------------------------------------------------------------

[2002-11-16 01:13:36] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.



------------------------------------------------------------------------

[2002-11-02 14:51:11] [EMAIL PROTECTED]

can you please provide the full script sample for this?  I think I do
see what is wrong, but want to make sure.

------------------------------------------------------------------------

[2002-09-11 10:27:31] [EMAIL PROTECTED]

I have a script that runs a select statement from a 10MB CLOB field
(among others). I run the following :

odbc_longreadlen($resultid, 3000000);

Then I run:

$document = odbc_result($resultid, 2);

The problem is, $document ends up with 4096 bytes of data (the default,
NOT 3000000). If I edit php.ini and set up odbc_lrl to 2000000 in
there, then $document ends up with 2MBin it. It acts like the function
odbc_longreadlen does not work at all.

I don't know how much more information I can give other than
odbc_longreadlen does not seem to do anything at all.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/19349

-- 
Edit this bug report at http://bugs.php.net/?id=19349&edit=1

Reply via email to