[Phpmyadmin-devel] GSoC phpMyAdmin OOP

Piyush Mishra me at piyushmishra.com
Wed Mar 23 20:13:51 CET 2011


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 that

   1. User gets an error. (session or something? $GLOBALS['message'] =
   PMA_Message::error(); is of no use for files going line by line :( )
   2. The function passes back the last output line or may be redirects for
   another file download for lines after the current one being output.

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?
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 at 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 at 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.
>> (...)
>> >
>> > 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.
>>
>> Yes, please read
>> 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 at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20110324/e10a6510/attachment.html>


More information about the Developers mailing list