ID:               26201
 User updated by:  al at forest dot akadem dot ru
 Reported By:      al at forest dot akadem dot ru
 Status:           Open
-Bug Type:         Reproducible crash
+Bug Type:         InterBase related
 Operating System: Windows 2000
 PHP Version:      4.3.3
 New Comment:

Description:
------------
Web-server crashes when I'm starting a transaction with invalid link
handle (Any value not of type 'resource interbase link'). Crash
happens
only if link handle is _explicitly_ specified as an argument of
ibase_trans().

OS: Windows 2000 (SP4)
Web-server: Apache 1.3.28
PHP as a module: 4.3.3 (wihout any changes in php.ini regarding
php_interbase extension)
php_interbase: Revision 1.91.2.22 (i.e. latest available from CVS in
PHP_4_3 branch)
Firebird 1.0.3

Reproduce code:
---------------
// Here are two variants of a two-line script:

$G2db = ibase_connect( 'localhost:c:\\g2-gdb\\g2.gdb', 'USERNAME',
'INVALID_PASSWORD', 'WIN1251', 0, 3);
$G2tr = ibase_trans(IBASE_READ, $G2db); 

// or:

$G2db = 123;
$G2tr = ibase_trans(IBASE_READ, $G2db); 

Expected result:
----------------
Should issue run-time error complianing about wrong argument types.


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

[2003-11-11 06:06:27] al at forest dot akadem dot ru

Description:
------------
Web-server crashes when I'm starting a transaction with invalid link
handle (Any value not of type 'resource interbase link'). Crash happens
only if link handle is _explicitly_ specified as an argument of
ibase_trans().

OS: Windows 2000 (SP4)
Web-server: Apache 1.3.28
PHP as a module: 4.3.3 (wihout any changes in php.ini regarding
php_interbase extension)
php_interbase: Revision 1.91.2.22 (i.e. latest available from CVS in
PHP_4_3 branch)
Firebird 1.0.3

Reproduce code:
---------------
// Here are two variants of a two-line script:

$G2db = ibase_connect( 'localhost:c:\\g2-gdb\\g2.gdb', 'USERNAME',
'INVALID_PASSWORD', 'WIN1251', 0, 3);
$G2tr = ibase_trans(IBASE_READ, $G2db); 

// or:

$G2db = 123;
$G2tr = ibase_trans(IBASE_READ, $G2db); 

Expected result:
----------------
Should issue run-time error complianing about wrong argument types.



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


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

Reply via email to