0

For some reason this program keeps crashing with zend_mm_heap error also getting zend_hash_destroy() error. Any ideas? I can not find much on the net about this, have asked on irc and they have no idea either. I did read other threads about this and have tried those work arounds, but nothing works for me.

    <?
include('../simple_html_dom.php');

getAlluc();

function getAlluc(){
    $url = 'http://www.alluc.org/';
    $movieLinks = array();
    $tvLinks = array();
    $animeLinks = array();
    $cartoonLinks = array();
    $documentaryLinks = array();
$musicClipLinks = array();
$sportLinks = array();
$html = setPage($url."/movies.html");
foreach($html->find('a[class$=linklist_header]') as $movies){
    $ml = str_replace("&amp;","&",$movies->href);
    echo $ml."\n";
    array_push($movieLinks,$url.$ml);
}

//get actual movie links below

foreach($movieLinks as $letter){
    echo $letter."\n";
    $html = setPage($letter);
    foreach($html->find('li.linklist2') as $li){
            foreach($li->find('a[href]') as $href){
                echo $href->href."\n".$href->plaintext."\n";
            }
        }
    }
}

function setPage($url){

    $html = new simple_html_dom();
    $html->load_file($url);
    return $html;
}

?>
Andrew
  • 136
  • 2
  • 11
  • 3
    What are the exact error messages ? – Luc M Jun 29 '12 at 15:45
  • zend_mm_heap() and zend_hash_destory() seg 11 – Andrew Jun 29 '12 at 15:48
  • It might help http://stackoverflow.com/questions/2247977/what-does-zend-mm-heap-corrupted-mean and http://stackoverflow.com/questions/2832010/what-is-output-buffering/2832179#2832179 – Luc M Jun 29 '12 at 15:54
  • I read both of them already and have increased my OPB to an insane number and it actually made it crash earlier in the execution then at the standard 4096 – Andrew Jun 29 '12 at 15:58
  • What version of PHP and libxml are you using? Have you tried commenting out blocks of code until you find which line causes the crash? Maybe that will help a bit, could be a bug or inconsistency between libraries. – drew010 Jun 29 '12 at 16:48
  • I have tried commenting out code, I did not supply all the code for the program except on where the crash was occurring.. just formatted my computer, will respond back when all software is back in place – Andrew Jun 29 '12 at 17:03
  • Running PHP Version 5.3.10-1ubuntu3.2 libxml Version 2.7.8 – Andrew Jun 29 '12 at 18:10

0 Answers0