|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-13 09:55 UTC] hans dot duedal at gmail dot com
[2005-09-13 11:20 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 09:00:01 2025 UTC |
Description: ------------ I'm getting a seg fault when calling mysqli::close() from a derived object in the destructor. This happens in PHP 5.0.5 (stable), 5.1.0RC1, and all latest snaps, but it does NOT happen in 5.0.4. Current workaround: Leave connections open; dunno if this is a major issue or not as connections are supposed to get closed when the script terminates anyway. Reproduce code: --------------- <?php class Data extends mysqli { public function __construct($Host,$User,$Pass,$DB) { parent::__construct($Host,$User,$Pass,$DB); } public function __destruct() { // parent::close(); causes the segfault as well. $this->close(); } } $DB = new Data('192.168.50.3','web','f@m!l!es','hermes'); ?> Expected result: ---------------- Not seg faulting. Actual result: -------------- Segmentation faults.