Re: [ZEND-ENGINE-CVS] cvs: Zend(PHP_4_4) / zend_compile.c zend_compile.h zend_execute.c zend_execute_globals.h zend_language_parser.y php-src NEWS
| From: | Stanislav Malyshev | Date: | Mon, 06 Jun 2005 09:47:01 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: Zend(PHP_4_4) / zend_compile.c zend_compile.h zend_execute.c zend_execute_globals.h zend_language_parser.y php-src NEWS | ||
| References: | 1 2 3 4 5 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-3722@lists.php.net to get a copy of this message | ||
DR>>Ok, but I was more wondering why we have *three* numbers, and what
DR>>exactly should they be used for:
DR>>
DR>> echo "PHP Api Version: "$PHP_API_VERSION
DR>> echo "Zend Module Api No: "$ZEND_MODULE_API_NO
DR>> echo "Zend Extension Api No: "$ZEND_EXTENSION_API_NO
The latter is for Zend extensions - i.e., once something in the Zend
Engine changes in incompatible way (added global, removed global, changed
exported API function, etc.) it should be changed so that extensions would
be rebuilt.
Two former, I guess, are for PHP modules - but I'm not sure why there is
two of them. ZEND_MODULE_API_NO is by what PHP extensions are loaded -
i.e. it should be changed once something that extensions use changes.
I don't know where PHP_API_VERSION is used except for displaying.
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115