#32605 [Opn->Fbk]: ini_set('last_modified', 1) doesn't work
ID: 32605
Updated by: sniper@php.net
Reported By: s dot tabacchiera at gruppocsf dot com
-Status: Open
+Status: Feedback
-Bug Type: *General Issues
+Bug Type: Apache related
Operating System: RedHat Linux 8.0
PHP Version: 4.3.11
New Comment:
Does it work if you change the option in php.ini?
Previous Comments:
------------------------------------------------------------------------
[2005-04-06 12:49:38] s dot tabacchiera at gruppocsf dot com
Description:
------------
Hi, as stated in the summary the directive ini_set('last_modified', 1)
in my scripts doesn't work.
In facts, I don't see any Last-Modified header in the Apache response.
Any clue?
Reproduce code:
---------------
foo.php:
<?
ini_set("last_modified", 1);
echo "Hello world!\n";
?>
# wget -S http://localhost/foo.php
Resolving localhost... 127.0.0.1
Connecting to localhost[127.0.0.1]:80... connected.
HTTP request sent, waiting for response...
1 HTTP/1.1 200 OK
2 Date: Wed, 06 Apr 2005 10:28:34 GMT
3 Server: Apache/1.3.33 (Unix) mod_ssl/2.8.22 OpenSSL/0.9.6b
PHP/4.3.11 mod_auth_pgsql/0.9.12
4 X-Powered-By: PHP/4.3.11
5 Set-Cookie: ZDEDebuggerPresent=php,phtml,php3
6 Connection: close
7 Content-Type: text/html
Expected result:
----------------
...
. Last-Modified: ...blablabla...
...
Actual result:
--------------
no 'Last-Modified' header
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32605&edit=1
Thread (4 messages)