Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19762 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15411 invoked by uid 1010); 27 Oct 2005 16:28:28 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 15396 invoked from network); 27 Oct 2005 16:28:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Oct 2005 16:28:28 -0000 X-Host-Fingerprint: 209.68.5.9 relay00.pair.com Received: from ([209.68.5.9:1789] helo=relay.pair.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id E6/3C-22886-C2001634 for ; Thu, 27 Oct 2005 12:28:28 -0400 Received: (qmail 90161 invoked from network); 27 Oct 2005 16:28:25 -0000 Received: from unknown (HELO ?192.168.1.26?) (unknown) by unknown with SMTP; 27 Oct 2005 16:28:25 -0000 X-pair-Authenticated: 82.48.44.136 Mime-Version: 1.0 (Apple Message framework v734) Content-Transfer-Encoding: 7bit Message-ID: <8F6C2463-0FC7-44E6-A633-C06866031910@vampiresoft.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: internals@lists.php.net Date: Thu, 27 Oct 2005 18:28:23 +0200 X-Mailer: Apple Mail (2.734) Subject: Runtime check... From: marco@vampiresoft.com (Marco Bambini) I have developed a php extension that requires zlib in order to works fine. The problem is that if someone have compiled php without zlib support my extension just crashed when it tries to use some zlib routines. I wonder if there is a way to check at runtime (or better at startup in the PHP_MINIT_FUNCTION) if php has been compiled with zlib support so I can gracefully reports a WARNING... Thanks, Marco Bambini