Bug #53748 [Opn->Fbk]: Using traits lead to a segmentation fault

From: Date: Fri, 14 Jan 2011 16:22:42 +0000
Subject: Bug #53748 [Opn->Fbk]: Using traits lead to a segmentation fault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-157915@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53748&edit=1 ID: 53748 Updated by: johannes@php.net Reported by: contact at chdemko dot com Summary: Using traits lead to a segmentation fault -Status: Open +Status: Feedback Type: Bug Package: Scripting Engine problem Operating System: Fedora core 11 PHP Version: trunk-SVN-2011-01-14 (SVN) Block user comment: N Private report: N New Comment: Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. what options are you using to compile PHP? - It works for me without segfault: int(1) int(2) array(1) { [1]=> int(2) } Previous Comments: ------------------------------------------------------------------------ [2011-01-14 16:55:46] contact at chdemko dot com Description: ------------ The test script (Singleton pattern) leads to a Segmentation error $ php test-trait.php int(1) int(2) array(1) { [1]=> int(2) } Segmentation error Test script: --------------- See http://www.pastie.org/1460398 Expected result: ---------------- int(1) int(2) array(1) { [1]=> int(2) } Actual result: -------------- int(1) int(2) array(1) { [1]=> int(2) } Segmentation error ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53748&edit=1

« previous php.bugs (#157915) next »