sh-3.2# USE_ZEND_ALLOC=0 valgrind --leak-check=full --gen-suppressions=yes --show-reachable=yes php -f /var/www/localhost/htdocs/weblog/test.php ==32098== Memcheck, a memory error detector. ==32098== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==32098== Using LibVEX rev 1732, a library for dynamic binary translation. ==32098== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==32098== Using valgrind-3.2.3, a dynamic binary instrumentation framework. ==32098== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==32098== For more details, rerun with: -v ==32098== Warning: file_get_contents(http://127.0.0.1/weblog/test.php?test[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][ in /var/www/localhost/htdocs/weblog/test.php on line 6 finished==32098== ==32098== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 7 from 1) ==32098== malloc/free: in use at exit: 24,918 bytes in 1,497 blocks. ==32098== malloc/free: 16,859 allocs, 15,362 frees, 1,935,261 bytes allocated. ==32098== For counts of detected errors, rerun with: -v ==32098== searching for pointers to 1,497 not-freed blocks. ==32098== checked 1,337,248 bytes. ==32098== ==32098== 20 bytes in 1 blocks are still reachable in loss record 1 of 7 ==32098== at 0x4020B3D: calloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==32098== by 0x40ED34B: (within /lib/libdl-2.5.so) ==32098== by 0x40ECD73: dlopen (in /lib/libdl-2.5.so) ==32098== by 0x45D8A39: (within /usr/lib/libcrypto.so.0.9.8) ==32098== ==32098== ---- Print suppression ? --- [Return/N/n/Y/y/C/c] ---- ==32098== ==32098== ==32098== 28 bytes in 1 blocks are still reachable in loss record 2 of 7 ==32098== at 0x4022A7E: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==32098== by 0x400C55B: _dl_map_object_deps (in /lib/ld-2.5.so) ==32098== by 0x40115B0: dl_open_worker (in /lib/ld-2.5.so) ==32098== by 0x400D6E5: _dl_catch_error (in /lib/ld-2.5.so) ==32098== by 0x4010FD3: _dl_open (in /lib/ld-2.5.so) ==32098== by 0x40ECE3C: (within /lib/libdl-2.5.so) ==32098== by 0x400D6E5: _dl_catch_error (in /lib/ld-2.5.so) ==32098== by 0x40ED2DB: (within /lib/libdl-2.5.so) ==32098== by 0x40ECD73: dlopen (in /lib/libdl-2.5.so) ==32098== by 0x45D8A39: (within /usr/lib/libcrypto.so.0.9.8) ==32098== ==32098== ==32098== 556 bytes in 1 blocks are still reachable in loss record 3 of 7 ==32098== at 0x4022A7E: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==32098== by 0x46D48A4: _db_push_ (in /usr/lib/mysql/libmysqlclient.so.15.0.0) ==32098== ==32098== ==32098== 1,024 bytes in 1 blocks are still reachable in loss record 4 of 7 ==32098== at 0x4022A7E: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==32098== by 0x83C6DC8: (within /usr/lib/php5/bin/php) ==32098== by 0x8090FD0: (within /usr/lib/php5/bin/php) ==32098== ==32098== ==32098== 1,024 bytes in 1 blocks are still reachable in loss record 5 of 7 ==32098== at 0x4022A7E: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==32098== by 0x83AEA28: (within /usr/lib/php5/bin/php) ==32098== by 0x8090FD0: (within /usr/lib/php5/bin/php) ==32098== ==32098== ==32098== 4,096 bytes in 1 blocks are still reachable in loss record 6 of 7 ==32098== at 0x4022BA0: realloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==32098== by 0x457F8A3: (within /usr/lib/libcrypto.so.0.9.8) ==32098== ==32098== ==32098== 18,170 bytes in 1,491 blocks are still reachable in loss record 7 of 7 ==32098== at 0x4022A7E: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==32098== by 0x457F86B: (within /usr/lib/libcrypto.so.0.9.8) ==32098== ==32098== LEAK SUMMARY: ==32098== definitely lost: 0 bytes in 0 blocks. ==32098== possibly lost: 0 bytes in 0 blocks. ==32098== still reachable: 24,918 bytes in 1,497 blocks. ==32098== suppressed: 0 bytes in 0 blocks. Apache error_log: [Sat Aug 18 17:18:33 2007] [error] [client 127.0.0.1] PHP Warning: file_get_contents(http://127.0.0.1/weblog/test.php?test[][][][][][][][][][$ /var/www/localhost/htdocs/weblog/test.php(6) : Warning - file_get_contents(http://127.0.0.1/weblog/test.php?test[][][][][][][][][][][][][][][]$ /var/www/localhost/htdocs/weblog/test.php(6) : Warning - file_get_contents(http://127.0.0.1/weblog/test.php?test[][][][][][][][][][][][][][][]$ === Total 2 memory leaks detected === Last leak repeated 1 time /var/tmp/portage/dev-lang/php-5.2.4_pre200708051230-r2/work/php5.2-200708051230/main/SAPI.c(940) : Freeing 0x082A9D98 (10 bytes), script=/var$ [Sat Aug 18 17:18:03 2007] Script: '/var/www/localhost/htdocs/weblog/test.php' failed to open stream: HTTP request failed! [Sat Aug 18 17:18:33 2007] [error] [client 127.0.0.1] PHP Warning: file_get_contents(http://127.0.0.1/weblog/test.php?test[][][][][][][][][][$ /var/www/localhost/htdocs/weblog/test.php(6) : Warning - file_get_contents(http://127.0.0.1/weblog/test.php?test[][][][][][][][][][][][[Sat Au$ === Total 2 memory leaks detected ===