Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60590 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27045 invoked from network); 16 May 2012 03:45:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 May 2012 03:45:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=yader.hernandez@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yader.hernandez@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: yader.hernandez@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:49553] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AC/4A-28418-4C223BF4 for ; Tue, 15 May 2012 23:45:08 -0400 Received: by obbuo13 with SMTP id uo13so473629obb.29 for ; Tue, 15 May 2012 20:45:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=sw6qP2SmJfmI9o0Ax0EGCmY3dtDOi104JRZAEQuqoGk=; b=oW76IanBzPyWnUSk42CM1OsNZgQHIF2xwH3xfrymgHjEiSE82i5kQucAux7q3E3M8u fv/QfiRs2dU3Nl29IwWXnWvxCnvei7aIf4tcjbZ3MPKYLwAU/jjyXCpGPdyqChTLNM8f FxTvpdncaG9g6gnpa3ZZbFVNZEtZEXFxt+wNOk244Gfc5/Tld9RBPi+HjqXrwB8BV5pX w9D/Lkd7KOltCZ/ZOqo6xwur1JKe0VxwzKgI/GPpZQMragQwa1dqyvyp57EAsAbjQELy qslhjC7iDECH/44VfmKkhzTms8wDpDmFFYqFXxCb3UmEvcr6amDZbxG4QvfqLQDIWLYy LKXw== MIME-Version: 1.0 Received: by 10.60.172.231 with SMTP id bf7mr1257410oec.45.1337139905791; Tue, 15 May 2012 20:45:05 -0700 (PDT) Received: by 10.60.147.199 with HTTP; Tue, 15 May 2012 20:45:05 -0700 (PDT) Date: Tue, 15 May 2012 20:45:05 -0700 Message-ID: To: PHP Developers Mailing List Content-Type: multipart/alternative; boundary=bcaec54c4df619877204c01f25a2 Subject: having an exception instance From: yader.hernandez@gmail.com (Yader Hernandez) --bcaec54c4df619877204c01f25a2 Content-Type: text/plain; charset=ISO-8859-1 Hi, I'm calling this function: static zend_class_entry *create_class_entry_runtime_exception(TSRMLS_C) { zend_class_entry **pce; if (zend_hash_find(CG(class_table), "runtimeexception", sizeof("RuntimeException"), (void **) &pce) == SUCCESS) { return *pce; } } but it's causing a segfault. The function is being called in PHP_MINIT_FUNCTION and assigning the return value to a static zend_class_entry *runtime_exception_ptr My final goal is to be able to easily call zend_throw_exception and pass runtime_exception_ptr pointer. --bcaec54c4df619877204c01f25a2--