ID: 25788
Updated by: [email]sniperphp.net[/email]
Reported By: marrtins at hackers dot lv
-Status: Open
+Status: Feedback
Bug Type: Session related
Operating System: w2k sp4
PHP Version: 4CVS-2003-10-08 (stable)
New Comment:

Please try using this CVS snapshot:

[url]http://snaps.php.net/php4-STABLE-latest.tar.gz[/url]

For Windows:

[url]http://snaps.php.net/win32/php4-win32-STABLE-latest.zip[/url]




Previous Comments:
------------------------------------------------------------------------

[2003-10-08 05:02:58] marrtins at hackers dot lv

Description:
------------
1st time of session_start() reproduces notice
Notice: Uninitialized string offset: 0 in d:\crash_php\index.php on
line 70

2nd time crash


apache crash
Zend/zend_hash.c
------------------
ZEND_API int zend_hash_find(HashTable *ht, char *arKey, uint
nKeyLength, void **pData)
....
while (p != NULL) {
if ((p->h == h) && (p->nKeyLength == nKeyLength)) { // <-- access
violation
if (!memcmp(p->arKey, arKey, nKeyLength)) {
*pData = p->pData;
return SUCCESS;
}
}
p = p->pNext;
}
return FAILURE;
}

Reproduce code:
---------------
[url]http://paste.php.lv/429[/url]



------------------------------------------------------------------------


--
Edit this bug report at [url]http://bugs.php.net/?id=25788&edit=1[/url]