Bug #60947 [Asn->Csd]: Segmentation fault while executing ibase_db_info

From: Date: Thu, 15 Mar 2012 19:59:22 +0000
Subject: Bug #60947 [Asn->Csd]: Segmentation fault while executing ibase_db_info
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-168522@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60947&edit=1

 ID:                 60947
 Updated by:         iliaa@php.net
 Reported by:        a dot lukyanov at hostcomm dot ru
 Summary:            Segmentation fault while executing ibase_db_info
-Status:             Assigned
+Status:             Closed
 Type:               Bug
 Package:            InterBase related
 Operating System:   All
 PHP Version:        Irrelevant
 Assigned To:        mariuz
 Block user comment: N
 Private report:     N

 New Comment:

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2012-03-15 19:59:15] iliaa@php.net

Automatic comment from SVN on behalf of iliaa
Revision: http://svn.php.net/viewvc/?view=revision&revision=324281
Log: Fixed bug #60947 (Segmentation fault while executing ibase_db_info)

------------------------------------------------------------------------
[2012-02-01 10:39:15] a dot lukyanov at hostcomm dot ru

Description:
------------
All versions of PHP takes segmentation fault while executing ibase_db_info() function. I solved this
problem and wrote patch. Please apply it.

Thanks.

Test script:
---------------
<?php

$resource = ibase_service_attach("localhost", "testvh11_fb1234",
"fb1234");
echo ibase_db_info($resource, "testvh11_fb1234.fdb", IBASE_STS_HDR_PAGES);

?>

Expected result:
----------------
testvh1 public_html # ./php-5.2.17/sapi/cli/php test.php 
 
Database "/var/lib/firebird/testvh11_fb1234.fdb" 
Database header page information: 
	Flags			0 
	Checksum		12345 
	Generation		65 
	Page size		8192 
	ODS version		11.2 
	Oldest transaction	20 
	Oldest active		21 
	Oldest snapshot		21 
	Next transaction	26 
	Bumped transaction	1 
	Sequence number		0 
	Next attachment ID	38 
	Implementation ID	24 
	Shadow count		0 
	Page buffers		0 
	Next header page	0 
	Database dialect	3 
	Creation date		Jan 30, 2012 15:10:47 
	Attributes		force write 
 
    Variable header data: 
	*END* 
testvh1 public_html #

Actual result:
--------------
testvh1 public_html # php test.php 
Segmentation fault
testvh1 public_html #


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



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


Thread (6 messages)

« previous php.bugs (#168522) next »