cvs: php4 /ext/standard var.c
| From: | Stanislav Malyshev | Date: | Mon, 06 Nov 2000 18:09:51 +0000 |
| Subject: | cvs: php4 /ext/standard var.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-2502@lists.php.net to get a copy of this message | ||
stas Mon Nov 6 10:09:51 2000 EDT
Modified files:
/php4/ext/standard var.c
Log:
Serialize as reference only if it's a true reference
Index: php4/ext/standard/var.c
diff -u php4/ext/standard/var.c:1.77 php4/ext/standard/var.c:1.78
--- php4/ext/standard/var.c:1.77 Mon Oct 30 09:10:05 2000
+++ php4/ext/standard/var.c Mon Nov 6 10:09:51 2000
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: var.c,v 1.77 2000/10/30 17:10:05 stas Exp $ */
+/* $Id: var.c,v 1.78 2000/11/06 18:09:51 stas Exp $ */
/* {{{ includes
@@ -178,7 +178,7 @@
HashTable *myht;
BLS_FETCH();
- if(var_hash != NULL && php_add_var_hash(var_hash,*struc,(void *)&var_already) ==
FAILURE) {
+ if(var_hash != NULL && (*struc)->is_ref &&
php_add_var_hash(var_hash,*struc,(void *)&var_already) == FAILURE) {
slen = sprintf(s,"R:%ld;",*var_already);
STR_CAT(buf, s, slen);
return;