#48189 [Opn->Fbk]: ibase_execute error in return param

From: Date: Mon, 11 May 2009 16:15:44 +0000
Subject: #48189 [Opn->Fbk]: ibase_execute error in return param
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-137168@lists.php.net to get a copy of this message
ID: 48189 Updated by: felipe@php.net Reported By: maxwer at ukr dot net -Status: Open +Status: Feedback Bug Type: InterBase related Operating System: Win2000SP4 PHP Version: 5.2.9 New Comment: Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2009-05-08 09:19:42] maxwer at ukr dot net Description: ------------ ibase_execute return values http://ua2.php.net/manual/ru/function.ibase-execute.php Çàìå÷àíèå: In PHP 5.0.0 and up, this function returns the number of rows affected by the query (if > 0 and applicable to the statement type). A query that succeeded, but did not affect any rows (e.g. an UPDATE of a non-existent record) will return TRUE. if(Affected_rows == 0){ return STRING "0 " (zero and space) THIS ERROR! need BOOLEAN true }else{ return INTEGER n --- this normal } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48189&edit=1

« previous php.bugs (#137168) next »