FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=17094&edit=1

ID: 17094
Updated by: daniel.oconnor@gmail.com
Reported By: ilpochta at gmail dot com
Summary: NULL character is not escaped
-Status: Open
+Status: Closed
Type: Bug
Package: MDB2_Driver_ibase
Operating System: Any
Package Version: CVS
PHP Version: 5.3.1
-Assigned To:
+Assigned To: doconnor
Roadmap Versions:
New Comment:

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: doconnor
This bug has been fixed in SVN.

If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should
be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.




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

[2010-02-12 22:31:31] nilya

Added #patch bug:17094;patch:x00.patch;revision:1266013891;.

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

[2010-02-12 22:20:27] nilya

Description:
------------
escape() do not handles \x00 character.

Test script:
---------------
<?
include_once "MDB2.php";
$db =&
MDB2::connect('ibase(firebird)://SYSDBA:masterkey@localhost/test',
array('database_extension'=>''));

$result=$db->query("SELECT '".$db->escape("test\x00test")."' AS x FROM
RDB\$DATABASE");
if(PEAR::isError($result)) {
echo $result->getUserInfo();
} else {
echo 'NORMAL';
}


Expected result:
----------------
NORMAL

Actual result:
--------------
_doQuery: [Error message: Could not execute statement]
[Last executed query: SELECT 'testtest' AS x FROM RDB$DATABASE]
[Native code: -104]
[Native message: Dynamic SQL Error SQL error code = -104 Unexpected end
of command - line 1, column 8 ]

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJan 25, '12 at 2:31p
activeJan 25, '12 at 2:31p
posts1
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 1 post

People

Translate

site design / logo © 2022 Grokbase