[PHP] Re: Can't set expect.timeout
Dear friends, I am still hoping to get an answer to this question (see below). Kindly please see if you can run the test on your site. Any insight is very much welcome! Clement Clement Yui-Wah Lee wrote: Hi, Apparently I can't set the value for expect.timeout to any values other than 0 (the default is 10). Can someone try the following script and see if you see the same problem as me? My php is 5.1.6, php-expect is 0.2.4, the platform is a Redhat Enterprise Linux 5.3 Test method: 1. Drop the following script onto your php server machine (use a different ini_set() line in each successive test). 2. Use a browser to execute the script and see what phpinfo() would return the value for expect.timeout (and expect.logfile) ?php // ini_set(expect.timeout, 0); // This worked // ini_set(expect.timeout, 0); // This worked // ini_set(expect.timeout, 1); // No effect // ini_set(expect.timeout, 5); // No effect // ini_set(expect.timeout, 5); // No effect ini_set(expect.timeout, 50); // No effect ini_set(expect.logfile, /tmp/tmp); // This worked phpinfo(); ? Thanks! Clement -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Can't set expect.timeout
Dear Rob, The default value of expect.timeout is 10 (minutes), which is what I would get if I don't do any ini_set(). I could set the value to 0 but not to any values. What do you mean by inaccessible at runtime? I could set another related parameter expect.logfile to, say, /tmp/tmp (as reported by phpinfo()). This problem looks like a bug to me. I will be most grateful if someone can try out the test program on their site. Thanks in advance! Clement Robert Cummings wrote: On Tue, 2009-03-03 at 14:49 -0500, Clement Yui-Wah Lee wrote: Dear friends, I am still hoping to get an answer to this question (see below). Kindly please see if you can run the test on your site. Any insight is very much welcome! Clement Clement Yui-Wah Lee wrote: Hi, Apparently I can't set the value for expect.timeout to any values other than 0 (the default is 10). Can someone try the following script and see if you see the same problem as me? My php is 5.1.6, php-expect is 0.2.4, the platform is a Redhat Enterprise Linux 5.3 Test method: 1. Drop the following script onto your php server machine (use a different ini_set() line in each successive test). 2. Use a browser to execute the script and see what phpinfo() would return the value for expect.timeout (and expect.logfile) ?php // ini_set(expect.timeout, 0); // This worked // ini_set(expect.timeout, 0); // This worked Are you sure this isn't just the default value before you attempted an ini_set()? It may be that expect.timeout is not accessible at runtime. Cheers, Rob. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Can't set expect.timeout
Hi, Apparently I can't set the value for expect.timeout to any values other than 0 (the default is 10). Can someone try the following script and see if you see the same problem as me? My php is 5.1.6, php-expect is 0.2.4, the platform is a Redhat Enterprise Linux 5.3 Test method: 1. Drop the following script onto your php server machine (use a different ini_set() line in each successive test). 2. Use a browser to execute the script and see what phpinfo() would return the value for expect.timeout (and expect.logfile) ?php // ini_set(expect.timeout, 0); // This worked // ini_set(expect.timeout, 0); // This worked // ini_set(expect.timeout, 1); // No effect // ini_set(expect.timeout, 5); // No effect // ini_set(expect.timeout, 5); // No effect ini_set(expect.timeout, 50); // No effect ini_set(expect.logfile, /tmp/tmp); // This worked phpinfo(); ? Thanks! Clement -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can't set expect.timeout
Ash, Thanks for your answer. I am quite sure that I do have the needed permission to effect the change. As you can tell from my test script, I was able to set timeout to 0 (zero), and I could also set logfile to /tmp/tmp. I just could not set timeout to any values other than 0 or the default value of 10. I was testing on a local machine. Thanks! Clement Ashley Sheridan wrote: On Wed, 2009-02-25 at 18:08 -0500, Clement Yui-Wah Lee wrote: Hi, Apparently I can't set the value for expect.timeout to any values other than 0 (the default is 10). Can someone try the following script and see if you see the same problem as me? My php is 5.1.6, php-expect is 0.2.4, the platform is a Redhat Enterprise Linux 5.3 Test method: 1. Drop the following script onto your php server machine (use a different ini_set() line in each successive test). 2. Use a browser to execute the script and see what phpinfo() would return the value for expect.timeout (and expect.logfile) ?php // ini_set(expect.timeout, 0); // This worked // ini_set(expect.timeout, 0); // This worked // ini_set(expect.timeout, 1); // No effect // ini_set(expect.timeout, 5); // No effect // ini_set(expect.timeout, 5); // No effect ini_set(expect.timeout, 50); // No effect ini_set(expect.logfile, /tmp/tmp); // This worked phpinfo(); ? Thanks! Clement Do you have permissions to change this ini setting? Some hosting companies disallow certain variables to be set through ini_set and only allow them to be done via .htaccess, and some go even further by disallowing certain ones to be changed at all. Have you tried it on a different hosting (i.e. on your local machine) ? Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php