This article to introduce to you in the window under the PHP Call Curl Report memory is not enough (curl out of memories) of the solution, there are friends who encounter such problems can be consulted.
Today in the call Sina Weibo API (the official website download the SDK), found the release of the image microblogging when the unsuccessful, error said:
Fatal error:allowed memory size of 134217728 bytes exhausted (tried to allocate 4294962523 bytes) in Xxxsdksinasaetv2.ex. class.php on line 396
I really do not understand ah, do not upload a picture, as to the need for such a large amount of memory!?
Start to want to provide the official website SDK, if the code has a problem certainly other developers also met, so to Sina Weibo development platform to find the answer, strange very nobody said (do not know that everyone has not encountered this problem or what). No way, can only please google.
A check is really a bit of a clue, most of the problem is because: with curl request HTTPS, because in the acquisition of the certificate when the problem, this post feel said: Curlopt_ssl_verifypeer, interested children shoes can go to see. But this is not my reason, do not pull away, continue to solve their own mistakes.
The above post won't work, keep looking.
But this one sentence reminds me, "the problem of the server is Windows, the work is Linux." "。 This is a good thing, the problem may be in PHP version or with the operating system, so the code that Linux on a test, found that really no problem, exultation.
So added a keyword "window" re-search again, it is true, the PHP website decisively appeared in the search results inside, the answer is in this: http://windows.php.net/.
Take a look at your PHP version 5.2.5, deserve problems, not diligent point of upgrade.
Not much to say, but at the time of writing the article found this (using micro-blog API hair with pictures of micro-blog, the hint of memory is not enough, this buddy can be more miserable than me, estimated that the resulting memory has been added after only to find a bit of the head, haha), to get the full no effort AH (unfortunately this time the problem has been I found,
Solution: The simple solution is to upgrade PHP, a dedicated way of course is their own change code, how to change this is a problem, I said I am not dedicated, and do not bother to upgrade.
http://www.bkjia.com/PHPjc/632067.html www.bkjia.com true http://www.bkjia.com/PHPjc/632067.html techarticle this article to introduce to you in the window under the PHP Call Curl Report memory is not enough (curl out of memories) of the solution, there are friends who encounter such problems can be consulted. Today in the call Sina Micro ...