All pastes #750134 Raw Edit

Stuff

public php v1 · immutable
#750134 ·published 2007-10-26 08:13 UTC
rendered paste body
//this function is supposed to evaluate to trueif ($pdf->CheckPageBreak($image_row_height) != 0){	$y_axis = $y_axis_initial;		}//this is the function which is called from a class mc_tablefunction CheckPageBreak($h){    //If the height h would cause an overflow, add a new page immediately    if($this->GetY()+$h>$this->PageBreakTrigger)        $this->AddPage($this->CurOrientation);}//This is a script that generates pdfs on the fly using the fpdf and mc_table classes. It only broke when I upgraded my server to php5. The function is supposed to trigger a page break and then if it is true reset the y axis. It triggers the page break but doesn't reset the $y_axis as per the if statement.