Re: cvs: php4 /ext/sablot sablot.c
| From: | Zeev Suraski | Date: | Fri, 10 Aug 2001 12:42:08 +0000 |
| Subject: | Re: cvs: php4 /ext/sablot sablot.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-6698@lists.php.net to get a copy of this message | ||
At 15:35 10-08-01, Rasmus Lerdorf wrote:
You broke the extension again!
php_sablot.h has:
typedef struct _php_sablot_globals {
zval *errorHandler;
php_sablot_error *errors;
php_sablot_error errors_start;
char *output_transform_file; /* For output transformations */
int last_errno; /* Global last_errno, if no handle is found */
SablotHandle processor;
} php_sablot_globals
And now it won't build.
It's a module interfacing with the engine. If it used the BEGIN_MODULE_GLOBALS etc. macros, it'd build fine - I'll fix it.
This is a PHP extension, not a Zend extension. We already have most of the PHP_* macros, I don't see why we shouldn't have these as well.Making a bad situation worse is simply not a good idea, that's why. PHP extensions are really zend_module_entry's - the PHP macros are replicas of
the engine macros, which is a bad situation. Removing them was on my TODO list on low prio, but I took the few minutes to do that now.Zeev