ID:               32485
 User updated by:  phpbug at pech dot cz
 Reported By:      phpbug at pech dot cz
-Status:           Bogus
+Status:           Open
 Bug Type:         OCI8 related
 Operating System: Linux 2.4.22
 PHP Version:      5.0.3
 New Comment:

Sorry, but I don't think so. Of course I haven't set them up  and then
a memory leak was reported, but normally I have all the variables (like
ORACLE_HOME, ORACLE_BASE, ORA_NLS33 and NLS_LANG) set up fine. And
everything works in PHP4, but not in PHP5.

The biggest problem is the segfault after processing the script, not
the memory leak (which I've reported just for help you to find out
what's wrong). But there may be no connection between then memory leak
(when env vars unset) and the segfault.


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

[2005-03-29 17:39:21] [EMAIL PROTECTED]

You don't have the Oracle environment variables set correctly. 

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

[2005-03-29 15:48:42] phpbug at pech dot cz

Description:
------------
PHP with OCI8 segfaults just _after_ the script ends, when executed
from command line by php -q <anyscript.php. 

Everything is processed fine, but _after_ the script ends (past the
processing of the last line), segmentation fault occurs and the core is
dumped by php.


Reproduce code:
---------------
<?php
  $conn = oci_connect ($user, $password, $db);
?>


Expected result:
----------------
Print nothing. In general, expected result means that it will end
without segmentation fault.

Actual result:
--------------
Backtrace (seems really strange to me):
#0  0x04ac8a8c in ?? ()
#1  0x00af3a90 in exit () from /lib/tls/libc.so.6
#2  0x00adeade in __libc_start_main () from /lib/tls/libc.so.6
#3  0x080738e1 in _start ()

When I accidentally forgotten to set evnironment variable ORA_NLS33, it
prints:

PHP Warning:  oci_connect() [<a
href='function.oci-connect'>function.oci-connect</a>]:
_oci_open_server: Error while trying to retrieve text for error
ORA-12154
 in - on line 2
-(2) : Warning - oci_connect() [<a
href='function.oci-connect'>function.oci-connect</a>]:
_oci_open_server: Error while trying to retrieve text for error
ORA-12154

/usr/src/redhat/BUILD/php-5.0.3/ext/oci8/oci8.c(3065) :  Freeing
0x09A1E4BC (20 bytes), script=-
=== Total 1 memory leaks detected ===

"Error while trying to retrieve text for error ORA-12154" is OK,
becuase all environment variables are not set and exported, but the
error ORA-12154 and the memory leak are not.

Please feel free to contact me for any further details if needed.


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


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

Reply via email to