Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28512 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 261 invoked by uid 1010); 21 Mar 2007 08:27:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 246 invoked from network); 21 Mar 2007 08:27:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Mar 2007 08:27:12 -0000 X-Host-Fingerprint: 80.123.98.46 unknown Received: from [80.123.98.46] ([80.123.98.46:20781] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2D/9F-21072-E5CE0064 for ; Wed, 21 Mar 2007 03:27:11 -0500 Message-ID: <2D.9F.21072.E5CE0064@pb1.pair.com> To: internals@lists.php.net Date: Wed, 21 Mar 2007 09:27:10 +0100 User-Agent: Thunderbird 1.5.0.9 (X11/20070103) MIME-Version: 1.0 References: <20070319201618.082eac46.mba2000@ioplex.com> <20070320221547.6369bf34.mba2000@ioplex.com> In-Reply-To: <20070320221547.6369bf34.mba2000@ioplex.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Posted-By: 80.123.98.46 Subject: Re: [PHP-DEV] Re: PHP version and Zend API Number From: mike@php.net (Michael Wallner) Michael B Allen wrote: > The get_zend_version function returns a string like 'Zend Engine v1.3.0, > Copyright (c) 1998-2004 Zend Technologies\n'. It would be nice to be > able to get the ZEND_MODULE_API_NO (e.g. 20060613) the standard module > was compiled under. basic_function_module.zend_api might be what you're looking for. > I'm still confused about how many versions of extensions I need to provide > with my product. Currently I just compile it against late versions of 4, > 5.0, 5.1 and 5.2 and hope for the best. But looking at ZEND_MODULE_API_NO > changes in webcvs shows it changes more frequently than that. > > But so far I haven't ran into major problems with ZEND_MODULE_API_NO > so maybe I'm just being paranoid. From looking at zend.c it looks like > it will print diagnostic info if some tries to load an incompatible > extension. It looks like that: mike@honeybadger:~$ php -n -dextension_dir=/usr/local/lib/php/extensions/no-debug-non-zts-20050922/ -dextension=ffi.so -v PHP Warning: PHP Startup: ffi: Unable to initialize module Module compiled with module API=20050922, debug=0, thread-safety=0 PHP compiled with module API=20060613, debug=0, thread-safety=1 These options need to match -- Michael