#47022 [Opn->Fbk]: Update of Bug 47000.
| From: | scottmac@php.net | Date: | Tue, 06 Jan 2009 17:55:23 +0000 |
| Subject: | #47022 [Opn->Fbk]: Update of Bug 47000. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-132599@lists.php.net to get a copy of this message | ||
ID: 47022
Updated by: scottmac@php.net
Reported By: alan at binarystars dot com
-Status: Open
+Status: Feedback
Bug Type: IMAP related
Operating System: linux
PHP Version: 5.2.8
New Comment:
Check memory_get_usage() to see what PHP is using, my guess is that
there is a copy of the data in c-client and another for PHP. Immediately
after that line has executed I'm assuming the c-client version is
released.
Previous Comments:
------------------------------------------------------------------------
[2009-01-06 16:32:54] alan at binarystars dot com
Description:
------------
Update of Bug 47000. I tried to update the bug report but wouldn't
let me.
shell> php phpinfo.php | grep Configure
Configure Command => './configure' '--with-mysql=/usr/local/mysql'
'--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-mysql-
sock=/tmp/mysql.sock' '--with-imap=/root/bin/imap-2007e' '--enable-
mbstring=all' '--enable-debug'
shell> export USE_ZEND_ALLOC=0
shell> export | grep ZEND
declare -x USE_ZEND_ALLOC="0"
shell> php -v
PHP 5.2.8 (cli) (built: Dec 20 2008 05:26:51)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
shell> uname -r
2.6.25-14.fc9.i686
shell> valgrind --tool=memcheck --num-callers=30 --leak-check=full --
log-file=imap_bug.log /usr/local/bin/php imap_bug.php
Old test run:
http://home.binarystars.com/~alan/imap_bug/archive/
Reproduce code:
---------------
Colorized imap_bug.html with line numbers:
http://home.binarystars.com/~alan/imap_bug/imap_bug.html
(34k)
Text version:
http://home.binarystars.com/~alan/imap_bug/imap_bug.txt
(3.6k)
Expected result:
----------------
See Bug 47000.
http://bugs.php.net/bug.php?id=47000
Actual result:
--------------
Method 1 results (w/ USE_ZEND_ALLOC=0):
http://home.binarystars.com/~alan/imap_bug/method1_results.txt
(2.1k)
Method 2 results (w/ USE_ZEND_ALLOC=0):
http://home.binarystars.com/~alan/imap_bug/method2_results.txt
(2.1k)
Valgrind results (v3.4.0):
http://home.binarystars.com/~alan/imap_bug/imap_bug.log
(2.4k)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47022&edit=1