Bug #68843 [NEW]: Incorrect expression?

From: Date: Fri, 16 Jan 2015 07:27:25 +0000
Subject: Bug #68843 [NEW]: Incorrect expression?
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189983@lists.php.net to get a copy of this message
From:             bugreports at internot dot info
Operating system: Linux Ubuntu 14.04
PHP version:      master-Git-2015-01-16 (Git)
Package:          *General Issues
Bug Type:         Bug
Bug description:Incorrect expression?

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 bug report at https://bugs.php.net/bug.php?id=68843&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=68843&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=68843&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=68843&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=68843&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=68843&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=68843&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=68843&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=68843&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=68843&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=68843&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=68843&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=68843&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=68843&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68843&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=68843&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=68843&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=68843&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68843&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=68843&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=68843&r=mysqlcfg



Thread (2 messages)

« previous php.bugs (#189983) next »