3 ms·
I picked up on this straight away. Regarding some of the other things in the article: - http://php.net/manual/en/function.curl-multi-exec.php http://php.net/ma
by deanclatworthy 9y ago
I picked up on this straight away. Regarding some of the other things in the article:
- http://php.net/manual/en/function.curl-multi-exec.php http://php.net/manual/en/function.curl-multi-exec.php will at least allow you to make multiple curl calls in parallel
- Regarding typed arrays, writing a wrapper class that throws an exception is trivial, although it won't solve the editor problem.
I found the article to be a little condescending to be honest. As you rightly point out HHVM is more or less ignored by the wider PHP community now PHP7 is out, and the majority of other points are solved one way or another.
- verelo 9y agoYeah, i wrote a PHP MySQL module that uses multi-exec curl as a means of creating parallel queries. I have been meaning to open source this for a while now, might try do it later this week...i don't see a better way to do it in PHP 7 as it stands today. My biggest holdback has been that it's just dangerous, essentially HTTP becomes the protocol for connecting to the DB, which means you need to ensure those requests are locked down and i suspect most people will mess that up and create a world of hurt for themselves.