|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-10-10 03:41 UTC] spektom at gmail dot com
[2010-10-10 07:17 UTC] miquelcanes at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 11:00:01 2025 UTC |
Description: ------------ Change expect.logfile on runtime using ini_set("expect.logfile") more than once leave old files opened. Check it using strace or similar. Reproduce code: --------------- <?php ini_set("expect.logfile", "logexpect1.out"); $stream = expect_popen("telnet 192.168.1.1"); fclose ($stream); ini_set("expect.logfile", "logexpect2.out"); $stream = expect_popen("telnet 192.168.1.1"); fclose ($stream); ?> Expected result: ---------------- check with strace. File descriptor is not closed after changing expect output file.