[PHP4BETA] CVS update: php4/ext/standard
| From: | zeev | Date: | Tue, 11 May 1999 16:52:58 +0000 |
| Subject: | [PHP4BETA] CVS update: php4/ext/standard | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-770@lists.php.net to get a copy of this message | ||
Date: Tuesday May 11, 1999 @ 12:52
Author: zeev
Update of /repository/php4/ext/standard
In directory php:/tmp/cvs-serv11280/ext/standard
Modified Files:
post.c string.c
Log Message:
* Move unclean_shutdown from PHP to Zend.
* The Master/Local headers in the phpinfo() table were reversed.
* Fix a gpc bug
Index: php4/ext/standard/post.c
diff -u php4/ext/standard/post.c:1.11 php4/ext/standard/post.c:1.12
--- php4/ext/standard/post.c:1.11 Mon May 10 20:01:45 1999
+++ php4/ext/standard/post.c Tue May 11 12:52:58 1999
@@ -212,7 +212,7 @@
val_len = strlen(val);
if (PG(magic_quotes_gpc)) {
- val = _php3_addslashes(val, val_len, NULL, 0);
+ val = _php3_addslashes(val, val_len, &val_len, 0);
} else {
val = estrndup(val, val_len);
}
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.8 php4/ext/standard/string.c:1.9
--- php4/ext/standard/string.c:1.8 Fri Apr 23 20:11:57 1999
+++ php4/ext/standard/string.c Tue May 11 12:52:58 1999
@@ -30,7 +30,7 @@
*/
-/* $Id: string.c,v 1.8 1999/04/24 00:11:57 zeev Exp $ */
+/* $Id: string.c,v 1.9 1999/05/11 16:52:58 zeev Exp $ */
#include <stdio.h>
#include "php.h"
@@ -1160,7 +1160,9 @@
}
}
*target = 0;
- if(new_length) *new_length = target - new_str;
+ if (new_length) {
+ *new_length = target - new_str;
+ }
if (should_free) {
STR_FREE(str);
}
--
PHP 4 Beta