cvs: php4 /ext/standard string.c
| From: | Andrey Hristov | Date: | Wed, 09 Oct 2002 13:50:07 +0000 |
| Subject: | cvs: php4 /ext/standard string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14746@lists.php.net to get a copy of this message | ||
andrey Wed Oct 9 09:50:07 2002 EDT
Modified files:
/php4/ext/standard string.c
Log:
ws fixes.
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.318 php4/ext/standard/string.c:1.319
--- php4/ext/standard/string.c:1.318 Wed Oct 9 09:37:02 2002
+++ php4/ext/standard/string.c Wed Oct 9 09:50:06 2002
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.318 2002/10/09 13:37:02 iliaa Exp $ */
+/* $Id: string.c,v 1.319 2002/10/09 13:50:06 andrey Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -2442,7 +2442,7 @@
target = new_str;
if (PG(magic_quotes_sybase)) {
- while (source<end) {
+ while (source < end) {
switch (*source) {
case '\0':
*target++ = '\\';
@@ -2458,11 +2458,9 @@
}
source++;
}
- }
- else {
- while (source<end) {
- switch (*source)
- {
+ } else {
+ while (source < end) {
+ switch (*source) {
case '\0':
*target++ = '\\';
*target++ = '0';
@@ -3054,7 +3052,7 @@
/* it is really faster to scan twice and allocate mem once insted scanning once
and constantly reallocing */
- while (str<end) {
+ while (str < end) {
if (*str == '\r') {
if (*(str+1) == '\n') {
str++;
@@ -3079,9 +3077,8 @@
str = Z_STRVAL_PP(zstr);
- while (str<end) {
- switch (*str)
- {
+ while (str < end) {
+ switch (*str) {
case '\r':
case '\n':
*target++ = '<';