issue in copying the hash table(Reposted third time)
| From: | Kamesh Jayachandran | Date: | Mon, 28 Jun 2004 06:16:51 +0000 |
| Subject: | issue in copying the hash table(Reposted third time) | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-10816@lists.php.net to get a copy of this message | ||
Hi All,
Sorry to repost for the third time.
I want the clarification regarding copying the global_class_table to
thread specific compiler_globals->class_table in compiler_globals_ctor
in Zend/zend.c.
According to me memcpy should copy 'whatever source points to' to
'destination'.
Our class_table hashtable structure looks like this,
char *key;
zend_class_entry** value;
So memcpy should copy only whatever (zend_class_entry**) points to which
is semantically wrong good candidate for Segmentation fault.
No way memcpy can do double dereferencing for this case.
Somehow in Linux when i compile it with maintainer-zts-mode memcpy
copies the data fine.
I verified all the internal classes. Thread specific class_table is in
sink with the global_class_table.
Please clarify.
Thanks in Advance
With regards
Kamesh Jayachandran