|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67760 Files are cached in OSX 10.10 "Yosemite" when using built-in server
Submitted: 2014-08-04 15:54 UTC Modified: 2014-12-30 10:42 UTC
From: hello at alexbilbie dot com Assigned:
Status: No Feedback Package: Built-in web server
PHP Version: 5.5.15 OS: OSX 10.10 Yosemite
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
31 + 7 = ?
Subscribe to this entry?

 [2014-08-04 15:54 UTC] hello at alexbilbie dot com
When using the built-in server files are cached and don't reflect updates unless the server is restarted.

Test script:
1) Save index.php to a directory:

echo 'hello, world';

2) Run the server in the directory where index.php is located:

php -S localhost:7777

3) Go to http://localhost:7777/index.php in your browser, output will be "Hello world"

4) Change the echo statement in index.php to output something else and save the file

5) Refresh http://localhost:7777/index.php, output will still be "Hello world" instead of the new echo statement

Expected result:
The server will reflect the code in the file without being restarted

Actual result:
The output is always the same


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-08-04 21:17 UTC]
Seems to work as intended on Ubuntu 12.04.4 LTS.
 [2014-08-04 21:25 UTC] hello at alexbilbie dot com
@FA This is a bug report for OSX Yosemite, not Ubuntu or any other OS...for the sake of clarity, I can't recreate this problem on any other OS
 [2014-08-04 22:21 UTC]
-Status: Open +Status: Feedback
 [2014-08-04 22:21 UTC]
What are your opcache settings? Specifically
- opcache.validate_timestamps
- opcache.revalidate_freq

Use phpinfo() to be sure you're getting the right values.
 [2014-12-30 10:42 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 24 20:01:29 2024 UTC