You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've recently discovered this CakePHP-SimpleHtmlDom-Plugin and it is a dream, because I avoided having to do A LOT of work myself, so I'm extremely grateful, however I recently encountered a memory leak...
In one of your updates I believe it says memory leaks fixed, so I just wanted to report this issue.
In a controller action for my web app, I call a function that traverses new URLs in a loop:
function myFunction() {
$urls = $this->Url->find('all',
array(
'conditions' => array(
'status' => 'New'
),
'limit' => $limit (I've had to set a limit because the memory leaks would crash my method)
)
);
foreach($urls as $url) {
// function call; calls $this->SimpleHtmlDomModel->find('all',compact(array($link)))
}
}
I would recommend testing on a large set of values to replicate the bug.
Naturally, Im going to attempt to make my algorithms more efficient, however this is the error I received:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes) in (path to project directory)/app/Plugin/SimpleHtmlDom/Vendor/simple_html_dom/simple_html_dom.php on line 1201
The text was updated successfully, but these errors were encountered:
I've recently discovered this CakePHP-SimpleHtmlDom-Plugin and it is a dream, because I avoided having to do A LOT of work myself, so I'm extremely grateful, however I recently encountered a memory leak...
In one of your updates I believe it says memory leaks fixed, so I just wanted to report this issue.
In a controller action for my web app, I call a function that traverses new URLs in a loop:
function myFunction() {
$urls = $this->Url->find('all',
array(
'conditions' => array(
'status' => 'New'
),
'limit' => $limit (I've had to set a limit because the memory leaks would crash my method)
)
);
foreach($urls as $url) {
// function call; calls $this->SimpleHtmlDomModel->find('all',compact(array($link)))
}
}
I would recommend testing on a large set of values to replicate the bug.
Naturally, Im going to attempt to make my algorithms more efficient, however this is the error I received:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes) in (path to project directory)/app/Plugin/SimpleHtmlDom/Vendor/simple_html_dom/simple_html_dom.php on line 1201
The text was updated successfully, but these errors were encountered: