Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

PHP cURL, memory leak when using CURLOPT_RETURNTRANSFER -


the following code in loop. each loop changes $uri new address. problem each pass takes more , more memory.

$ch = curl_init(); curl_setopt($ch, curlopt_url, $uri); curl_setopt($ch, curlopt_returntransfer, true); curl_setopt($ch, curlopt_header, 0); $res = curl_exec($ch); curl_close($ch); 

i worked out if comment out curlopt_returntransfer line leak stops.

i use "curlopt_returntransfer, true" can result of curl operation string parse. but, appear memory used store string not parsed each pass. can suggest way clear buffer , recover used memory? there destructor use, i've tried __destruct() can't seem syntax right.

thanks c

version 5.1.6 of php seems have issue memory leaking when using "curlopt_returntransfer, true" store results of curl string. upgrading 5.3 sorted leak out me.

thanks


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -