#40805 [Opn->Fbk]: Failure excecuting function ibase_execute()

From: Date: Thu, 15 Mar 2007 16:37:22 +0000
Subject: #40805 [Opn->Fbk]: Failure excecuting function ibase_execute()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-110392@lists.php.net to get a copy of this message
 ID:               40805
 Updated by:       tony2001@php.net
 Reported By:      michael at bluemoon dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         InterBase related
 Operating System: Red Hat Ent. Linux WS rel 4
 PHP Version:      5.2.1
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.




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

[2007-03-15 16:28:08] michael at bluemoon dot com

Checked Apache error_log. This is the entry that is logged at time of
failure:

[Thu Mar 15 11:22:59 2007] [notice] child pid 29396 exit signal
Segmentation fault (11)

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

[2007-03-15 13:00:05] tony2001@php.net

Check your Apache error_log.

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

[2007-03-15 02:52:41] michael at bluemoon dot com

Tried the latest CVS snapshot; same problem.

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

[2007-03-14 18:11:09] tony2001@php.net

Please try using this CVS snapshot:

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



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

[2007-03-14 18:06:58] michael at bluemoon dot com

Description:
------------
Script fails when it encounters ibase_execute() function; blank white
screen is displayed.

No problem in PHP 5.2.0. Stopped working in 5.2.1.

No exception is thrown. No errors/warnings shown when running w/
error_reporting(E_ALL).

If I insert die('Hello, world!') immediately before line containing
ibase_execute() statement, screen outputs "Hello, world!" If I insert
same die() statement after ibase_execute(), I just get a blank screen.

Reproduce code:
---------------
Not possible to paste a discrete, reproducible snippet from my own
codebase here, given the unique attributes of my database connection,
but this is the gist of what I am trying to do:

$query = "UPDATE CUSTOMER SET FIELD2 = ?, FIELD3 = ? WHERE FIELD1 =
'A'";

// $trh is resource ID of current transaction
if ($result = ibase_prepare($trh, $query)) {
  if (ibase_execute($result, 'B', 'C')) echo "Operation Successful";
  else echo "Operation Failed";
}

Expected result:
----------------
"Operation Successful" or "Operation Failed"

Actual result:
--------------
<blank screen>


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


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


Thread (11 messages)

« previous php.bugs (#110392) next »