]> granicus.if.org Git - php/commitdiff
2<<30 (== 1<<31) overflows 32-bit signed int, reverting to 1<<30
authorSascha Schumann <sas@php.net>
Fri, 3 Dec 1999 15:16:32 +0000 (15:16 +0000)
committerSascha Schumann <sas@php.net>
Fri, 3 Dec 1999 15:16:32 +0000 (15:16 +0000)
main/main.c

index 8c6a06d3b4f976d33f6e2184478975a917065795..91d02709102a906fc35e9fb81f34aa874fea45eb 100644 (file)
@@ -149,7 +149,7 @@ static PHP_INI_MH(OnChangeMemoryLimit)
        if (new_value) {
                new_limit = atoi(new_value);
        } else {
-               new_limit = 2<<30;              /* effectively, no limit */
+               new_limit = 1<<30;              /* effectively, no limit */
        }
        return zend_set_memory_limit(new_limit);
 }