Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28476 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38564 invoked by uid 1010); 20 Mar 2007 00:16:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 38532 invoked from network); 20 Mar 2007 00:16:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Mar 2007 00:16:32 -0000 Authentication-Results: pb1.pair.com header.from=mba2000@ioplex.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mba2000@ioplex.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain ioplex.com from 66.220.1.142 cause and error) X-PHP-List-Original-Sender: mba2000@ioplex.com X-Host-Fingerprint: 66.220.1.142 www.ioplex.com Linux 2.4/2.6 Received: from [66.220.1.142] ([66.220.1.142:1053] helo=www.ioplex.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D8/33-01604-FD72FF54 for ; Mon, 19 Mar 2007 19:16:31 -0500 Received: from quark.foo.net (c-69-142-196-170.hsd1.nj.comcast.net [69.142.196.170]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by www.ioplex.com (Postfix) with ESMTP id 73E5042B61 for ; Mon, 19 Mar 2007 20:16:27 -0400 (EDT) Date: Mon, 19 Mar 2007 20:16:18 -0400 To: internals@lists.php.net Message-ID: <20070319201618.082eac46.mba2000@ioplex.com> X-Mailer: Sylpheed version 1.0.6 (GTK+ 1.2.10; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: PHP version and Zend API Number From: mba2000@ioplex.com (Michael B Allen) Hi, Is there a way to get the version of the PHP binary that loaded an extension from within the extension? I don't mean the PHP version the extension was compiled with (PHP_VERSION), I mean the version of the PHP binary itself? Can I call the phpversion function from within an extension? Similarly is there a way to get the zend API version of the PHP binary (not the version the extension was compiled with)? Mike -- Michael B Allen PHP Active Directory SSO http://www.ioplex.com/