#47599 [Opn->Fbk]: zend_atoi() needs change for 64-bit support

From: Date: Mon, 04 May 2009 18:47:56 +0000
Subject: #47599 [Opn->Fbk]: zend_atoi() needs change for 64-bit support
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-136766@lists.php.net to get a copy of this message
ID: 47599 Updated by: jani@php.net Reported By: Bjorn dot Wiberg at its dot uu dot se -Status: Open +Status: Feedback Bug Type: Scripting Engine problem Operating System: * PHP Version: 5.2.9 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Previous Comments: ------------------------------------------------------------------------ [2009-03-08 16:01:09] Bjorn dot Wiberg at its dot uu dot se Description: ------------ External sources (http://turin.nss.udel.edu/wiki/dropbox/doku.php?id=documentation:large-files) indicate that zend_atoi() does not handle very large values correctly. External source supplies proposed fix (change to Zend/zend_operators.c). Reproduce code: --------------- Setting post_max_size 10000M or upload_max_filesize 10000M in php.ini. Expected result: ---------------- Correct handling of very large memory values, e.g. "10000M". Actual result: -------------- Limit maxes out at max value of 32 bits instead of specified value. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47599&edit=1

« previous php.bugs (#136766) next »