Skip to content
This repository has been archived by the owner on Mar 29, 2019. It is now read-only.

PHP 7.2.7 - Use of undefined constant CURLOPT_CONNECTTIMEOUT #70

Open
matak opened this issue Aug 17, 2018 · 4 comments
Open

PHP 7.2.7 - Use of undefined constant CURLOPT_CONNECTTIMEOUT #70

matak opened this issue Aug 17, 2018 · 4 comments

Comments

@matak
Copy link

matak commented Aug 17, 2018

Use of undefined constant CURLOPT_CONNECTTIMEOUT - assumed 'CURLOPT_CONNECTTIMEOUT' (this will throw an Error in a future version of PHP)

anybody know what will be the replacement of this constant, on php pages there is no mention about it

@PavelJurasek
Copy link

Do you actually have curl installed? $ php -m | grep curl should output 'curl'.

I also tested it in interactive shell (well, I don't have 7.2.7):

php > echo CURLOPT_CONNECTTIMEOUT;
78
php > echo PHP_VERSION;
7.2.9

@matak
Copy link
Author

matak commented Aug 17, 2018

i installed 7.2.9, still CURLOPT_CONNECTTIMEOUT undefined, curl is installed, i am on windows

@PavelJurasek
Copy link

You should still be able to verify it via php.exe executable in the same way I described in the previous comment.
You can also check phpinfo(); output and check if curl is mentioned there.

I suspect you don't have curl enabled. Check https://www.codeooze.com/coding/php-curl-on-windows/ or similar google kung-fu windows php enable curl extension.

@matak
Copy link
Author

matak commented Aug 17, 2018

i moved back to 7.2.7, because of memcache extension problems, but as you can see on pictures curl is enabled

https://paste.pics/3L75H
https://paste.pics/3L75J

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants