com php-src: add 'never': main/main.c
| From: | Michael Wallner | Date: | Mon, 30 Dec 2013 13:28:43 +0000 |
| Subject: | com php-src: add 'never': main/main.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-75511@lists.php.net to get a copy of this message | ||
Commit: 729f85fad797e31bec1188441049fe525aa78f70
Author: Michael Wallner <mike@php.net> Wed, 27 Nov 2013 12:19:47 +0100
Parents: 7762de4022f3581ba6b8cc9357687afde3af1d1f
Branches: PHP-5.6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=729f85fad797e31bec1188441049fe525aa78f70
Log:
add 'never'
Changed paths:
M main/main.c
Diff:
diff --git a/main/main.c b/main/main.c
index d87d3d0..3739815 100644
--- a/main/main.c
+++ b/main/main.c
@@ -485,6 +485,9 @@ static PHP_INI_MH(OnChangeAlwaysPopulateRawPostData)
else if (new_value_length == 4 && strcasecmp("true", new_value) == 0) {
*p = (signed char) 1;
}
+ else if (new_value_length == 5 && strcasecmp("never", new_value) == 0) {
+ *p = (signed char) -1;
+ }
else {
*p = (signed char) atoi(new_value);
}