-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 5.5.6 CLI very slow #102
Comments
Not seeing it here; default install. PHP 5.5.6 (cli) (built: Nov 14 2013 12:34:38)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
with Xdebug v2.2.2, Copyright (c) 2002-2013, by Derick Rethans
real 0m0.511s
user 0m0.019s
sys 0m0.037s
[camac01 mbadolato /usr/local master]$ time php -v
PHP 5.5.6 (cli) (built: Nov 14 2013 12:34:38)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
with Xdebug v2.2.2, Copyright (c) 2002-2013, by Derick Rethans
real 0m0.029s
user 0m0.017s
sys 0m0.011s |
Switched to Homebrew. No issues there (their 5.5.7 version doesn't have imap compiled in by default, possibly a reason). |
It sounds like a dns timeout issue somewhere. I just uploaded PHP 5.5.8, maybe you can test if that solves the problem |
Just tried 5.5.8. Still the same, 5 seconds delay, going to try this on another mac this week too. |
Working good for me `PHP 5.5.8 (cli) (built: Jan 12 2014 18:50:29) real 0m0.378s |
On another Mac (10.9, almost vanilla install) there are no problems. So I guess it's an issue with my development machine. |
I got same issue with php 5.5.8. |
Same issue here with PHP 5.5.9. |
just installed 5.5.14 on a brand new machine (with 10.9), works fine works me |
It's really slow for me: real 0m30.050s |
Still can't reproduce it. |
I solved this issue in Homebrew version by recompiling PHP without the IMAP extension (by not using the |
I managed to build the imap extension as shared extension now. It's already available for PHP 5.4 and OS X 10.8/9, maybe you could try this version, remove /usr/local/php5/php.d/50-extension-imap.ini and see if this helps. Other builds will soon follow. |
the imap extension is now a shared extension in all builds. Download and disable it and see, if this helps |
yes, without the imap module it's working fine.... |
so, it's some dns lookup thingie or something similar. Closing this, please open a new bug, if that's a real issue for you and just disabling imap doesn't solve your problem (but googling didn't bring me an easy solution) |
I have had same problem with MAMP, php 5.5.10, 5 second delay time php -n -d extension=imap.so -v real 0m5.131s Why the simple fact of loading the library takes 5 seconds?, isn't this a bug of PHP?, I need that extension, but I have to keep it desactivated in order to save that 5 seconds every time... |
Adding your hostname to
http://serverfault.com/questions/586141/php-cli-with-imap-5-second-startup-delay |
Can confirm that the solution indicated by @mlebkowski worked, your machine's current hostname should be added to the hosts file. You can also append to the existing entries:
|
Works for me too! :) |
Thanks @innoscience it works! |
vlad@MacBook-Pro-Vladimir /etc $ time php -v real 0m5.039s the same problem |
To find you machine's local hostname check this: |
This could almost be a copy of issue #82. Details:
PHP version: 5.5.6
Mac OS X: 10.8.5
Problem:
I deactivated all extensions in /usr/local/php5/php.d, but still get this 5 seconds delay. Had this some time ago (probably with MAMP) and the solution was to deactivate the IMAP extension. But there is no IMAP extension to deactivate as far as I can see.
I don't know whether this is a cli only problem, cause I don't use builtin apache server.
The text was updated successfully, but these errors were encountered: