Bug #54426 [Asn->Csd]: Wrong NULL checks
| From: | mariuz@php.net | Date: | Tue, 19 Jul 2011 20:26:39 +0000 |
| Subject: | Bug #54426 [Asn->Csd]: Wrong NULL checks | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-162017@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=54426&edit=1
ID: 54426
Updated by: mariuz@php.net
Reported by: jiri at cincura dot net
Summary: Wrong NULL checks
-Status: Assigned
+Status: Closed
Type: Bug
Package: InterBase related
Operating System: All
PHP Version: 5.3.6
Assigned To: mariuz
Block user comment: N
Private report: N
New Comment:
patch commited in svn for 5.3,5.4 and trunk branches
Previous Comments:
------------------------------------------------------------------------
[2011-05-06 14:44:34] mapopa at gmail dot com
Test to reproduce the bug :
1.Create a table with not null field
2.Add trigger filling this field before insert
3.Try from PHP insert null value.
Current version(s) are failing.
------------------------------------------------------------------------
[2011-04-14 12:32:51] mapopa at gmail dot com
Here is the patch
http://paste.ubuntu.com/593941/
in case the one bellow doesn't download
I will create one for 5.3.x trunk branch
------------------------------------------------------------------------
[2011-03-30 18:46:13] jiri at cincura dot net
Description:
------------
ibase_query.c contains on line 676 checks for NULL. But this is wrong, as the value could be
provided in trigger etc.
Simply removing this check should be enough and everything will be working fine.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=54426&edit=1