Doc #64881 [NEW]: It's unclear how getlastmod is affected by includes/requires
| From: | dean at omnivisiontechnology dot com | Date: | Mon, 20 May 2013 11:28:07 +0000 |
| Subject: | Doc #64881 [NEW]: It's unclear how getlastmod is affected by includes/requires | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-9860@lists.php.net to get a copy of this message | ||
From: dean at omnivisiontechnology dot com
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:It's unclear how getlastmod is affected by includes/requires
Description:
------------
It isn't clear from the manual page whether getlastmod() only checks the
modification date of the main script file, or whether it takes into account
modification dates of all include/require files also.
Actually there are two issues:
(1) If I use getlastmod() inside an include file, does it report the
modification date of the include file, or of the main including script?
(2) If I use getlastmod() inside a script that uses INCLUDE or REQUIRE to
inline other files, and at least one of these has been modified more
recently than the main including script, will this more recent modification
date be returned by getlastmod()?
If the answer to (2) is NO, then perhaps there should be an extension to
getlastmod() (a boolean argument perhaps) or else a separate function that
DOES work this way? A lot of webpages for example, are constructed by
INCLUDE-ing a header and footer around the main content of the page; the
reported modification date of the page should reflect a modification to any
of these.
--
Edit bug report at https://bugs.php.net/bug.php?id=64881&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64881&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64881&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64881&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=64881&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=64881&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=64881&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=64881&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=64881&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=64881&r=support
Expected behavior: https://bugs.php.net/fix.php?id=64881&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=64881&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=64881&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=64881&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64881&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=64881&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=64881&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=64881&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64881&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=64881&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=64881&r=mysqlcfg