summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Faulds <ajf@ajf.me>2014-08-01 16:29:34 +0100
committerAndrea Faulds <ajf@ajf.me>2014-08-01 16:29:34 +0100
commita2bbc6f985570a031c38c1c1205bc78786e83518 (patch)
tree98f364f3fc57866b201a566527f0b81e39c69703
parent1d609d2d262944d5a897a31d49b93f8f732f6a03 (diff)
parentd6cf8be094c55a9080122a7e29c144bc5edaf117 (diff)
downloadphp-git-a2bbc6f985570a031c38c1c1205bc78786e83518.tar.gz
Merge branch 'PHP_INT_MIN'
-rw-r--r--NEWS3
-rw-r--r--UPGRADING2
-rw-r--r--main/main.c1
3 files changed, 6 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 1badfb8579..c19097337a 100644
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,9 @@ PHP NEWS
(Adam)
. Update the MIME type list from the one shipped by Apache HTTPD. (Adam)
+- Core:
+ . Added PHP_INT_MIN constant. (Andrea)
+
- DBA:
. Fixed bug #62490 (dba_delete returns true on missing item (inifile)). (Mike)
diff --git a/UPGRADING b/UPGRADING
index 740047a86a..730fa5bd87 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -68,6 +68,8 @@ PHP X.Y UPGRADE NOTES
10. New Global Constants
========================================
+- Core
+ , PHP_INT_MIN added.
========================================
11. Changes to INI File Handling
diff --git a/main/main.c b/main/main.c
index 671700887a..896995b9f8 100644
--- a/main/main.c
+++ b/main/main.c
@@ -2195,6 +2195,7 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod
REGISTER_MAIN_STRINGL_CONSTANT("PHP_EOL", PHP_EOL, sizeof(PHP_EOL)-1, CONST_PERSISTENT | CONST_CS);
REGISTER_MAIN_LONG_CONSTANT("PHP_MAXPATHLEN", MAXPATHLEN, CONST_PERSISTENT | CONST_CS);
REGISTER_MAIN_LONG_CONSTANT("PHP_INT_MAX", LONG_MAX, CONST_PERSISTENT | CONST_CS);
+ REGISTER_MAIN_LONG_CONSTANT("PHP_INT_MIN", LONG_MIN, CONST_PERSISTENT | CONST_CS);
REGISTER_MAIN_LONG_CONSTANT("PHP_INT_SIZE", sizeof(long), CONST_PERSISTENT | CONST_CS);
#ifdef PHP_WIN32