Problem with function sys_get_temp_dir

91 views
Skip to first unread message

DTH

unread,
May 22, 2012, 3:50:38 AM5/22/12
to dompdf
When i tried to test dompdf it is failing on line 873 of the
function.inc.php file

function sys_get_temp_dir

the error warning i'm getting is it can not redeclare the function...

any ideas to work around this??

i don't understand how the error could be happening, since it should
only be getting into that loop if the function doesn't exist in the
first place??

BrianS

unread,
May 22, 2012, 11:00:02 PM5/22/12
to dom...@googlegroups.com
Answered on StackOverflow, relevant text is:

commenting out the code brings another error which might be why this is happening in the first place: Warning: sys_get_temp_dir() has been disabled for security reasons on the following line: def("DOMPDF_TEMP_DIR", sys_get_temp_dir()); i've just commented that and away we go... cheers!
Reply all
Reply to author
Forward
0 new messages