cvs: php-src(PHP_4_3) /main main.c
| From: | Andrey Hristov | Date: | Fri, 22 Apr 2005 07:27:46 +0000 |
| Subject: | cvs: php-src(PHP_4_3) /main main.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-31541@lists.php.net to get a copy of this message | ||
andrey Fri Apr 22 03:27:46 2005 EDT
Modified files: (Branch: PHP_4_3)
/php-src/main main.c
Log:
MFH
introduce INT_MAX and INT_SIZE
#would be wonderful if the doc team takes care of that
#defined since 4.3.12, missing in 5.0.0-5.0.4, available in 5.0.5+
http://cvs.php.net/diff.php/php-src/main/main.c?r1=1.512.2.60&r2=1.512.2.61&ty=u
Index: php-src/main/main.c
diff -u php-src/main/main.c:1.512.2.60 php-src/main/main.c:1.512.2.61
--- php-src/main/main.c:1.512.2.60 Tue Mar 8 16:45:51 2005
+++ php-src/main/main.c Fri Apr 22 03:27:45 2005
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: main.c,v 1.512.2.60 2005/03/08 21:45:51 sniper Exp $ */
+/* $Id: main.c,v 1.512.2.61 2005/04/22 07:27:45 andrey Exp $ */
/* {{{ includes
*/
@@ -1206,6 +1206,8 @@
REGISTER_MAIN_STRINGL_CONSTANT("PHP_CONFIG_FILE_SCAN_DIR", PHP_CONFIG_FILE_SCAN_DIR,
sizeof(PHP_CONFIG_FILE_SCAN_DIR)-1, CONST_PERSISTENT | CONST_CS);
REGISTER_MAIN_STRINGL_CONSTANT("PHP_SHLIB_SUFFIX", PHP_SHLIB_SUFFIX,
sizeof(PHP_SHLIB_SUFFIX)-1, CONST_PERSISTENT | CONST_CS);
REGISTER_MAIN_STRINGL_CONSTANT("PHP_EOL", PHP_EOL, sizeof(PHP_EOL)-1, CONST_PERSISTENT |
CONST_CS);
+ REGISTER_MAIN_LONG_CONSTANT("INT_MAX", LONG_MAX, CONST_PERSISTENT | CONST_CS);
+ REGISTER_MAIN_LONG_CONSTANT("INT_SIZE", sizeof(long), CONST_PERSISTENT | CONST_CS);
php_output_register_constants(TSRMLS_C);
php_rfc1867_register_constants(TSRMLS_C);