Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51849 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4354 invoked from network); 9 Apr 2011 16:03:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Apr 2011 16:03:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=hermanradtke@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=hermanradtke@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: hermanradtke@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-ew0-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:50888] helo=mail-ew0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/D1-29179-84380AD4 for ; Sat, 09 Apr 2011 12:03:20 -0400 Received: by ewy2 with SMTP id 2so1353872ewy.29 for ; Sat, 09 Apr 2011 09:03:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=b9jd0BOIZAhU5vZ/totHuNOGTj34ncnbsdT1qZd01K8=; b=LKyvyjvPls/+/xh69A4A1PYxbn+JHY4uwz4g+BvXEXruo2iXTBHWxo1vwwBjt5oqsi 2BJ7TfZashR6Bgi+RfJYVLjdy2NmSt5or3K+sLZ9tPjFhbwcE3lRlwXcpzgckqexqXzy z4Tq/6p6kIBSIp7NvCBbEVgz8xRV1pR5Y5fh4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=gOgRLYj/zxd0YBTdMxLFnRRd9bkfLpxZ9Fpd2uMU4rMkdM4+gwtNCwAZ/mk41I5Omu g8tTgH7JR6LE0iNnlRKPBqC5+Snd2smgvY7D8jtLBv2Cyr68EaO8/IzJ0jgpgDlOe8DE 9G4U6RHDGv9J4LimgM6we6tR/N2YVKsX2jI5w= MIME-Version: 1.0 Received: by 10.14.17.194 with SMTP id j42mr1499549eej.81.1302364996424; Sat, 09 Apr 2011 09:03:16 -0700 (PDT) Received: by 10.14.45.6 with HTTP; Sat, 9 Apr 2011 09:03:16 -0700 (PDT) Date: Sat, 9 Apr 2011 09:03:16 -0700 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Why does zend_call_function return SUCCESS if an exception is thrown From: hermanradtke@gmail.com (Herman Radtke) An extension is using zend_call_function to call a userland function. If the userland function throws an exception, zend_call_function will still return SUCCESS. Why isn't zend_call_function returning FAILURE on an exception? Is there a way to check if an exception was thrown after zend_call_function returns a SUCCESS? For reference I am looking in Zend/zend_execute_API.c: if (EG(exception)) { zend_throw_exception_internal(NULL TSRMLS_CC); } return SUCCESS; -- Herman Radtke hermanradtke@gmail.com | http://hermanradtke.com