ID:               32605
 Updated by:       [EMAIL PROTECTED]
 Reported By:      s dot tabacchiera at gruppocsf dot com
-Status:           Open
+Status:           Wont fix
 Bug Type:         Apache related
 Operating System: RedHat Linux 8.0
 PHP Version:      4.3.11
 New Comment:

last_modified is a SAPI-level ini setting which is checked and acted
upon from the individual SAPI modules prior to PHP getting control.  I
don't see this changing, especially since the workaround is trivial.

  $mod = gmdate("D, d M Y H:i:s ",getlastmod())."GMT";
  header("Last-Modified: $mod");


Previous Comments:
------------------------------------------------------------------------

[2005-04-06 14:25:55] s dot tabacchiera at gruppocsf dot com

Yes, it works!
....
Last-Modified: Mon, 22 May 2000 21:45:00 GMT
....

------------------------------------------------------------------------

[2005-04-06 13:47:18] [EMAIL PROTECTED]

Does it work if you change the option in php.ini?



------------------------------------------------------------------------

[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

Reply via email to