Bug #68843 [Opn->Nab]: Incorrect expression?
| From: | laruence@php.net | Date: | Sun, 18 Jan 2015 03:31:02 +0000 |
| Subject: | Bug #68843 [Opn->Nab]: Incorrect expression? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-190005@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68843&edit=1
ID: 68843
Updated by: laruence@php.net
Reported by: bugreports at internot dot info
Summary: Incorrect expression?
-Status: Open
+Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: Linux Ubuntu 14.04
PHP Version: master-Git-2015-01-16 (Git)
Block user comment: N
Private report: N
New Comment:
nope, it depends what you used while putted it into hashtable, they are use sizeof for adding, then
it's correct to use sizeof for fetching too
Previous Comments:
------------------------------------------------------------------------
[2015-01-16 07:27:24] bugreports at internot dot info
Description:
------------
Hi,
main/streams/streams.c:235: zend_hash_str_del(FG(wrapper_errors), (const char*)&wrapper,
sizeof(wrapper));
ext/phar/phar_object.c:1378: zend_hash_str_del(&PHAR_GLOBALS->phar_persist_map, (const char
*) phar_obj->archive, sizeof(phar_obj->archive));
Should there be a -1 after the sizeof? That's how all other uses of zend_hash_str_del is used.
Thanks,
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68843&edit=1