php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30414 Possible crash fixes
Submitted: 2004-10-12 21:50 UTC Modified: 2004-10-23 11:36 UTC
From: mikael dot suvi at trigger dot ee Assigned: tony2001 (profile)
Status: Closed Package: OCI8 related
PHP Version: 5.0.2 OS: gentoo
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
35 + 12 = ?
Subscribe to this entry?

 
 [2004-10-12 21:50 UTC] mikael dot suvi at trigger dot ee
Description:
------------
After experiencing several mysterious segfaults with php-5.0.2/apache2/oracle combination under heavy load I have made the following modifications to oci8.c file and the crashes have happily vanished for my case.

diff oci8.c oci8.c.new
1019c1019
<       if (connection->session) {
---
>       if (connection->session && connection->session->explicit) {
2909c2909
<       return sess1->num = sess2->num;
---
>       return sess1->num == sess2->num;


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-23 11:36 UTC] tony2001@php.net
This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.

Committed, thanks!
 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Jun 06 23:03:36 2023 UTC