Re: [PHP4BETA] More on losing array values...
| From: | Andrei Zmievski | Date: | Sat, 13 Nov 1999 21:21:20 +0000 |
| Subject: | Re: [PHP4BETA] More on losing array values... | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-6203@lists.php.net to get a copy of this message | ||
On Sat, 13 Nov 1999, Joey wrote:
> OK. I'm in a bit over my head here, but here are a few things I see:
>
> Start here:
>
> http://lxr.php.net/source/php4/ext/sybase_ct/php_sybase_ct.c#1237
> [ that's php_sybase_fetch_hash(INTERNAL_FUNCTION_PARAMETERS)]
>
> The biggest difference I see between that and
> http://lxr.php.net/source/php4/ext/mysql/php_mysql.c#1305
> [ php_mysql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS) ]
>
> ZEND_FETCH_RESOURCE(result, sybase_result *, &sybase_result_index, -1,
> "Sybase result", sybase_globals.le_result);
>
> The 3d arg is &sybase_result_index, with sybase_result_index being:
> pval *sybase_result_index;
>
> Whereas in mysql:
> 3d arg: result
> result is pval **result
>
> Like I said, I am in over myhead, so I'm not sure if that matters.
It's fine. ZEND_FETCH_RESOURCE() expects pval ** so they both work.
-Andrei
"Later in this talk, I intend to define
the universe and give three examples." -- Larry Wall