twitter auth problem with php 5.5
Closed this issue · 1 comments
I have verified that curl is installed and works, dom is installed and enabled, gmp is installed and enabled
My twitter app has callback url
http://a3m.mydomain.com/account/connect_twitter/
Allow this application to be used to Sign in with Twitter is ticked
in the codeigniter error logs I was seeing
ERROR - 2014-04-18 04:52:26 --> Severity: Warning --> preg_replace_callback(): No ending delimiter '/' found /home/test_user/A3M/application/helpers/account/jmathai-twitter-async/EpiTwitter.php 81
so I changed
$endpoint = '/'.preg_replace('/[A-Z]|[0-9]+/e', "'/'.strtolower('\0')", $parts).'.json';
to
$endpoint = '/'. preg_replace_callback('/[A-Z]|[0-9]+/', function($m){ return strtolower($m[0]);}, $parts).'.json';
should this sort of error be fixed in this repo or https://github.com/jmathai/twitter-async/ ?
This would go to the twitter provider. Only if this is an issue on multiple places and jmathai won't fix it in his repo would this fix be considered here. We are going to get the most recent code from there for the next fix release.