#36321 [Com]: Crash in $this->toto=ressource_id
| From: | crescentfreshpot at yahoo dot com | Date: | Thu, 06 Apr 2006 03:27:22 +0000 |
| Subject: | #36321 [Com]: Crash in $this->toto=ressource_id | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-95372@lists.php.net to get a copy of this message | ||
ID: 36321
Comment by: crescentfreshpot at yahoo dot com
Reported By: gwalschaerts at cg19 dot fr
Status: No Feedback
Bug Type: OCI8 related
Operating System: windows2003
PHP Version: 5.1.2
New Comment:
This is caused by not freeing the variable holding the resource
returned from ociparse after you're done with it.
Try:
$this->Requete_Id = OCIparse($this->Connect_Id, $Query);
// ...
OCIFreeStatement($this->Requete_Id);
Should fix the problem.
I believe this free-ing is *supposed* to happen automagically when the
variable falls out of scope or your script ends (it does in the
mysql(i) extension as well as pdo_oci) but is not happening in oci8
5.1.2 (obviously). Not sure if that is expected behaviour (should be
documented nonetheless).
Previous Comments:
------------------------------------------------------------------------
[2006-02-15 01:00:04] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2006-02-07 16:46:03] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
------------------------------------------------------------------------
[2006-02-07 16:44:05] gwalschaerts at cg19 dot fr
Description:
------------
i have a crash when i script this
$this->Requete_Id = OCIparse($this->Connect_Id, $Query);
in php 5.1.1 it's run perfectly
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36321&edit=1