cvs: php4 /ext/standard var.c
| From: | Derick Rethans | Date: | Sun, 24 Feb 2002 14:07:11 +0000 |
| Subject: | cvs: php4 /ext/standard var.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-9443@lists.php.net to get a copy of this message | ||
derick Sun Feb 24 09:07:11 2002 EDT
Modified files:
/php4/ext/standard var.c
Log:
- Fix the fix.. no need to escape " in single quotes
Index: php4/ext/standard/var.c
diff -u php4/ext/standard/var.c:1.128 php4/ext/standard/var.c:1.129
--- php4/ext/standard/var.c:1.128 Sun Feb 24 08:26:43 2002
+++ php4/ext/standard/var.c Sun Feb 24 09:07:10 2002
@@ -273,7 +273,7 @@
php_printf("%.*G", (int) EG(precision), Z_DVAL_PP(struc));
break;
case IS_STRING:
- tmp_str = php_addslashes(Z_STRVAL_PP(struc), Z_STRLEN_PP(struc), &tmp_len, 0 TSRMLS_CC);
+ tmp_str = php_addcslashes(Z_STRVAL_PP(struc), Z_STRLEN_PP(struc), &tmp_len, 0,
"'\\", 2 TSRMLS_CC);
PUTS ("'");
PHPWRITE(tmp_str, tmp_len);
PUTS ("'");