ID: 47770 Updated by: ka...@php.net Reported By: shj at xenosi dot de -Status: Open +Status: Feedback Bug Type: PDO related Operating System: Gentoo Linux 64bit PHP Version: 5.2.9 New Comment:
I'm unable to reproduce this with your script if I replace: $stmt = $this->class->query($this->query); return new SHJPDOStatement($stmt); with: return new SHJPDOStatement($this->class->query($this->query)); I get no crash, anything in my server log, etc. using Windows 32bit, can you generate a backtrace as described here: http://bugs.php.net/bugs-generating-backtrace.php Previous Comments: ------------------------------------------------------------------------ [2009-03-25 07:12:07] shj at xenosi dot de Description: ------------ 1. this is segmentation fault. return new class($pdo->class->query($this->query)); 2. this is ok. $stmt = $pdo->class->query($this->query); return new class($stmt); Reproduce code: --------------- http://codepad.org/wJ5O5TvG this is bug example. run this code on your machine. thank you. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47770&edit=1