Hi Developers,<br>I am new to the PMA community and relatively new to the codebase.<br>I've hit a road block with a bug and would appreciate a lot if some seasoned developers would help me get over the problem.<br><br>
Link: <a href="https://sourceforge.net/tracker/?func=detail&atid=377408&aid=2107746&group_id=23067" target="_blank">https://sourceforge.net/tracker/?func=detail&atid=377408&aid=2107746&group_id=23067</a><br>
Please read the comments.<br>Narrowed down the problem to being from php.ini 's safe mode setting which doesn't let set_time_limit override default max_execution_time in php.ini<br><br>After making a rough idea of how the export works in PMA it struck me that we can use the function that basically outputs every line in all types of output. [install dir]/export.php > PMA_exportOutputHandler to check if we are going to run out of time<br>
<br>
<a href="http://pastebin.com/8BCSN7es" target="_blank">http://pastebin.com/8BCSN7es</a><br>
<br>
I made these changes from around line 110 search for function called PMA_exportOutputHandler and you'll find it.<br>
Now the final lines on my download give out the line "It's gonna blow!!!"<br>
last few lines.<br>
<a href="http://pastebin.com/BEbv42Ds" target="_blank">http://pastebin.com/BEbv42Ds</a><br>
<br>
Now I need to make sure that<br><ol><li>User gets an error. (session or something? $GLOBALS['message'] = PMA_Message::error(); is of no use for files going line by line :( )</li><li>The function passes back the last output line or may be redirects for another file download for lines after the current one being output.</li>
</ol>Can you guys think of any other scenario for an error (except for safe mode) and can you guide me on shooting out the errors?<br>Worst case scenario we can use the error handling function for a fallback but I want to make a clean solution if possible.<br>
<br>-- <br>Regards<br>Piyush Mishra<br><a href="http://www.piyushmishra.com/" target="_blank">http://www.piyushmishra.com/</a><br>
Life's Short, Live it to the maximum<br><br>