Re: zend_hash_add_or_update flaw
| From: | Andi Gutmans | Date: | Thu, 07 Dec 2000 05:23:02 +0000 |
| Subject: | Re: zend_hash_add_or_update flaw | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-40307@lists.php.net to get a copy of this message | ||
Good to know.
I already see you adjusted your patch accordingly.
Thanks,
Andi
At 10:17 PM 12/6/00 +0100, Sascha Schumann wrote:
The second we put nDataSize as the third parameter we can say bye bye to any compiler optimization. This is of course, if we actually know (and I don't) if some compilers would optimize this.--- Andi Gutmans <andi@zend.com> http://www.zend.com/Apparently, GCC does that:$ gcc -O -c y.c z.c $ nm y.o 00000000 t gcc2_compiled. 00000000 T main $ nm z.o 00000000 t gcc2_compiled. 00000000 T main U memcpyy.c uses a constant, z.c a variable as third parameter to memcpy.- Sascha