Re: cvs: php4 /main streams.c
| From: | Joey Smith | Date: | Sun, 26 Aug 2001 09:07:19 +0000 |
| Subject: | Re: cvs: php4 /main streams.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-7066@lists.php.net to get a copy of this message | ||
I really don't understand the thread-safety stuff, but shouldn't this
also be using TSRMLS_CC instead of TSRMLS_FETCH()?
> - TSRMLS_FETCH();
> -
> /* these names depend on the values of the PHP_STREAM_AS_XXX defines in php_streams.h */
> static const char * cast_names[3] = {
> "STDIO FILE*", "File Descriptor", "Socket Descriptor"
> };
> + TSRMLS_FETCH();
> +
> zend_error(E_WARNING, "%s(): cannot represent a stream of type %s as a %s",
> get_active_function_name(TSRMLS_C),
> stream->ops->label,