Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35936 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69643 invoked from network); 4 Mar 2008 00:23:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Mar 2008 00:23:39 -0000 Authentication-Results: pb1.pair.com header.from=info@adaniels.nl; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=info@adaniels.nl; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain adaniels.nl from 82.94.236.173 cause and error) X-PHP-List-Original-Sender: info@adaniels.nl X-Host-Fingerprint: 82.94.236.173 loco.helderhosting.nl Linux 2.5 (sometimes 2.4) (4) Received: from [82.94.236.173] ([82.94.236.173:58708] helo=loco.helderhosting.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/4E-29055-A869CC74 for ; Mon, 03 Mar 2008 19:23:39 -0500 Received: from [192.168.1.86] (a82-95-179-89.adsl.xs4all.nl [82.95.179.89]) by loco (Postfix) with ESMTP id A82C1C1806F for ; Tue, 4 Mar 2008 01:23:35 +0100 (CET) Message-ID: <47CC968A.9060209@adaniels.nl> Date: Tue, 04 Mar 2008 01:23:38 +0100 User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: 'PHP Internals' Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Bug when throwing an Exception in a constructor From: info@adaniels.nl (Arnold Daniels) Hi, I'm running into a bug when throwing an Exception in a constructor. I sometimes get the message "Exception thrown without a stack frame in Unknown on line 0" and sometimes a message like seen below. Unfortunately I'm not a create a simple example which causes the same exception, so reporting a bug wouldn't be useful. The error is constant within my current project though. This time I'm using reflection, but that doesn't seem to have to much to do with it. I'm running 5.2.5 now, but I had the same with 5.3. Does this sound familiar to anyone? Arnold ------------------------ arnold@arnold-laptop:~/projects/php-projects/qdb/Demo$ php sshrpc.php host: ssh.example.com username: password: [Tue Mar 4 01:15:18 2008] Script: 'sshrpc.php' --------------------------------------- /usr/src/php5/php-5.2.5/Zend/zend_exceptions.c(406) : Block 0x089a1104 status: Beginning: OK (allocated on /usr/src/php5/php-5.2.5/Zend/zend_exceptions.c:403, 78 bytes) Start: OK End: Overflown (magic=0x0000003A instead of 0xEAB4EE29) 3 byte(s) overflown --------------------------------------- Fatal error: Uncaught Q_Exception: Could not create SSH connection for 'ssh.example.com': Server requires some form of authentication for user 'arnold'. in ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ on line 146 #0 ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ)���ZO�5$Y(146): Q_RPCClient_SSH->makeConnection('ssh.example.com', Array) #1 [internal function]: Q_RPCClient_SSH->__construct(Array) #2 /home/arnold/projects/php-projects/qdb/src/Q/RPCClient.php(93): ReflectionClass->newInstanceArgs(Array) #3 [internal function]: Q_RPCClient::connect('ssh', Array) #4 /home/arnold/projects/php-projects/qdb/src/Q/RPCClient.php(110): call_user_func_array(Array, Array) #5 /home/arnold/projects/php-projects/qdb/Demo/sshrpc.php(8): Q_RPCClient::remote('ssh', Array) #6 {main} thrown in /home/arnold/projects/php-projects/qdb/src/Q/RPCClient/SSH.php on line 200 Warning: String is not zero-terminated (ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ)���ZO�5) (source: /usr/src/php5/php-5.2.5/Zend/zend_variables.h:35) in Unknown on line 0 [Tue Mar 4 01:15:18 2008] Script: 'sshrpc.php' --------------------------------------- /usr/src/php5/php-5.2.5/Zend/zend_variables.h(35) : Block 0x089a6e4c status: /usr/src/php5/php-5.2.5/Zend/zend_variables.c(36) : Actual location (location was relayed) Beginning: Cached Freed (invalid) Start: OK End: OK --------------------------------------- arnold@arnold-laptop:~/projects/php-projects/qdb/Demo$ php -v PHP 5.2.5 (cli) (built: Mar 3 2008 22:20:58) (DEBUG) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies