Zend leak
| From: | Andrei Zmievski | Date: | Tue, 18 Jan 2000 17:33:11 +0000 |
| Subject: | Zend leak | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-9247@lists.php.net to get a copy of this message | ||
The following script:
$conf = array();
$config_files = array("123.conf");
foreach ($config_files as $config_file) {
$id = substr(0, strrpos($config_file, ".conf"));
$conf[$id] = $CONF["VnewsConfigsDir"]."/".$config_file;
}
produces:
PHP Warning: Illegal offset type in leaktest.php on line 8
zend_operators.c(892) : Freeing 0x001E1A18 (10 bytes),
script=leaktest.php
-Andrei
"Claiming Java is easier than C++ is like
saying that K2 is shorter than Everest."
-- Larry O'Brien (editor, Software Development)