Hi,
hello,
I am planning to apply for the same project.
I tried solving http://sourceforge.net/tracker/?func=detail&atid=377408&aid=2107746&group_id=23067
I figured out that the error is caused when php is running in safe mode as the set_time_limit cannot overwrite the setting.
Here's a copy of the mail I had sent previously but no one replied :( could anyone please help me with it?
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.
Link: https://sourceforge.net/tracker/?func=detail&atid=377408&aid=2107746&group_id=23067
Please read the comments.
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
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
http://pastebin.com/8BCSN7es
I made these changes from around line 110 search for function called PMA_exportOutputHandler and you'll find it.
Now the final lines on my download give out the line "It's gonna blow!!!"
last few lines.
http://pastebin.com/BEbv42Ds
Now I need to make sure thatCan you guys think of any other scenario for an error (except for safe mode) and can you guide me on shooting out the errors?
- User gets an error. (session or something? $GLOBALS['message'] = PMA_Message::error(); is of no use for files going line by line :( )
- The function passes back the last output line or may be redirects for another file download for lines after the current one being output.
Worst case scenario we can use the error handling function for a fallback but I want to make a clean solution if possible.
return false; will obviously stop the output before an error can be made but that will not warn a user.
What about a generic warning in case php is running in safe mode?--
2011/3/24 Fábio Albuquerque <fabiocbalbuquerque@gmail.com>
Ok, Marc, thank you. I'll try to code something and maybe complete some task (http://wiki.phpmyadmin.net/pma/Tasks_for_junior_developers). As soon as possible, I publish some change at my git tree. I really thank your advice.On Wed, Mar 23, 2011 at 2:13 PM, Marc Delisle <marc@infomarc.info> wrote:Fábio Albuquerque a écrit :
> My name is Fábio, I'm a student of Computer Science at Federal(...)
> University of Paraíba, Brazil, and an enthusiastic of GSoC. As I've
> working with phpMyAdmin in the last two years, I'd love to contribute
> and to improve this excellent tool. I'm interested to implement some
> object oriented improvements on some existing module/functionality, like
> import or export a database, CRUD operations, etc.
>Yes, please read
> Is there anything else I can do beside exploring the code? How can I
> discuss the focus of the implementation? I just can't wait to work with
> it and finally make my real contribution. Thank you all in advance.
http://wiki.phpmyadmin.net/pma/GSoC_2011_Applicant_Guide especially item 2.
--
Marc Delisle
http://infomarc.info
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Phpmyadmin-devel mailing list
Phpmyadmin-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Phpmyadmin-devel mailing list
Phpmyadmin-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
Regards
Piyush Mishra
http://www.piyushmishra.com/
Life's Short, Live it to the maximum
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Phpmyadmin-devel mailing list
Phpmyadmin-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel