|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-07-13 14:57 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 14:00:02 2025 UTC |
Description: ------------ when i conert langer than 2147483647(0x6fffffff) use decbin will return 32's 1 Reproduce code: --------------- <?php $shmKey = ftok(__FILE__, 'c'); $pid = posix_getpid(); if ($shmKey) { >---$shmId = shmop_open($shmKey, 'c', 0775, 32); >---$w = shmop_write($shmId, 0x7fffffff, 0); >---$r = shmop_read($shmId, 0, 32); >---$d = shmop_delete($shmId); >---echo $r . "\n"; >---echo decbin($r); } ?>