- 論壇徽章:
- 0
|
php的curl_multi_info_read函數(shù),在php 5.2之前是不能用的。
我發(fā)現(xiàn)現(xiàn)在的版本(5.2.8)不光能用,而且遠(yuǎn)沒(méi)那么麻煩,
官方文檔說(shuō):
Warning
The data the returned resource points to will not survive calling curl_multi_remove_handle().
經(jīng)過(guò)簡(jiǎn)單測(cè)試,發(fā)現(xiàn)
其實(shí)返回值數(shù)組"handle"鍵內(nèi)的curl handle和外界傳遞進(jìn)去的curl handle 全等(===),
不需要做其他特殊處理,可以直接調(diào)用curl_multi_remove_handle這樣的函數(shù)。
那么我想,這句警告可能只是嚇唬人,或者這句話直接復(fù)制于curl的原生api文檔:
WARNING: The data the returned pointer points to will not survive calling curl_multi_cleanup(3), curl_multi_remove_handle(3) or curl_easy_cleanup(3).
請(qǐng)教大家是不是這樣?我是否忽略了什么? |
|