cvs: /php4 configuration-parser.y
| From: | Zeev Suraski | Date: | Fri, 24 Dec 1999 20:47:32 +0000 |
| Subject: | cvs: /php4 configuration-parser.y | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-8492@lists.php.net to get a copy of this message | ||
zeev Fri Dec 24 15:47:32 1999 EDT
Modified files:
/php4 configuration-parser.y
Log:
Fix warnings
Index: php4/configuration-parser.y
diff -u php4/configuration-parser.y:1.26 php4/configuration-parser.y:1.27
--- php4/configuration-parser.y:1.26 Fri Dec 24 08:46:24 1999
+++ php4/configuration-parser.y Fri Dec 24 15:47:01 1999
@@ -19,7 +19,7 @@
-/* $Id: configuration-parser.y,v 1.26 1999/12/24 13:46:24 zeev Exp $ */
+/* $Id: configuration-parser.y,v 1.27 1999/12/24 20:47:01 zeev Exp $ */
#define DEBUG_CFG_PARSER 0
#include "php.h"
@@ -352,11 +352,11 @@
i_result = ~i_op1;
break;
default:
- result = 0;
+ i_result = 0;
break;
}
- result->value.str.len = zend_sprintf(str_result, "%ld", i_result);
+ result->value.str.len = zend_sprintf(str_result, "%d", i_result);
result->value.str.val = (char *) malloc(result->value.str.len+1);
memcpy(result->value.str.val, str_result, result->value.str.len);
result->value.str.val[result->value.str.len] = 0;