[PHP4BETA] serialize/unserialize mem-leak....
| From: | Thies C. Arntzen | Date: | Sun, 25 Apr 1999 12:45:57 +0000 |
| Subject: | [PHP4BETA] serialize/unserialize mem-leak.... | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-507@lists.php.net to get a copy of this message | ||
hi,
i've got serialize/unserialize working;-)
testscript:
<?
$ar = array("hallo" => "tubu","pallo" =>
array(1,2,3,"tubu"=>"testmann"));
var_dump($ar);
$var = serialize($ar);
echo "ser: <$var>\n";
$tubu = unserialize($var);
var_dump($tubu);
?>
go a few questions:
---
gcc -DHAVE_CONFIG_H -I. -I. -I../..
-I/dot/oracle/app/oracle/product/8.0.5/rdbms/demo
-I/dot/oracle/app/oracle/product/8.0.5/network/public
-I/dot/oracle/app/oracle/product/8.0.5/plsql/public -I../..
-I../../libzend -I../../functions -g -O2 -c var.c var.c: In function
`php3api_var_serialize':
var.c:241: warning: passing arg 2 of `php3api_var_serialize' from
incompatible pointer type
line 241:
php3api_var_serialize(buf, data);
from my understanding it should read:
php3api_var_serialize(buf, &data);
but that doesn't work;-(((
----
why am i getting mem-leaks????
please zeev, andy could you please enlighten me -> as soon as i fully
understand this stuff, i will be better in helping getting php4 into
beta;-)
tc
--
PHP 4 Beta