php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45732 odbc.defaultlrl = 0 != Passthru
Submitted: 2008-08-06 12:12 UTC Modified: 2008-08-06 16:39 UTC
Votes:8
Avg. Score:4.0 ± 0.9
Reproduced:8 of 8 (100.0%)
Same Version:5 (62.5%)
Same OS:2 (25.0%)
From: nektarin at me dot com Assigned:
Status: Open Package: ODBC related
PHP Version: 5.2.6 OS: Windows
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-08-06 12:12 UTC] nektarin at me dot com
Description:
------------
The information given in php.ini is wrong.

Setting "odbc.defaultlrl = 0" is not the same as Passthru (as described 
in php.ini).
To use passthru you have to comment the line containing odbc.defaultlrl.





Reproduce code:
---------------
odbc.defaultlrl = 0

Expected result:
----------------
odbc.defaultlrl = PASSTHRU

Actual result:
--------------
odbc.defaultlrl = 0 (0 bytes is received for every SQL query)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-10 19:59 UTC] blabounty at minnetronix dot com
Testing this using an ODBC connection to MS SQL SERVER 2005, commenting out the line causes text fields, when queried through an ODBC connection, to cut off at 4096 characters.

They do indeed cut off at 0 when the setting is set to 0, however.

I'm using a Windows XP 32-bit Zend Core platform, but I've also tested this on a non-Zend Apache server and the result is the same.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Jun 03 13:01:25 2020 UTC