#980 PHP Access Violation

closed
None
5
2006-12-19
2006-11-17
Kvi
No

OS: Windows XP SP2
mySQL: 5.0.27
PHP: 5.2.0

Browsing a table contents by pressing Browse icon result this error:

PHP has encountered an Access Violation at 02857BF0

A little debugging shows that the error is occurs in the file sqlparser.lib.php at line 1177.

Adding checking to this line eliminates the error:

// add the table alias into the whole expression
if ($subresult['table_ref'][$current_table_ref]['table_alias'] != '')
$subresult['table_ref'][$current_table_ref]['expr']
.= ' ' . $subresult['table_ref'][$current_table_ref]['table_alias'];

Discussion

  • Marc Delisle

    Marc Delisle - 2006-11-29
    • assigned_to: nobody --> lem9
     
  • Marc Delisle

    Marc Delisle - 2006-11-29

    Logged In: YES
    user_id=210714
    Originator: NO

    Cannot reproduce under PHP 5.2.0 (tested on Linux). A PHP error is not strictly phpMyAdmin's fault but I agree to improve the code if needed. I don't see why this happens because just a few lines above, the table_alias index is initialized to ''.

    Please show me your query; also in sqlparser.lib.php after line 1177 add this:

    echo 'trace<pre>'; print_r($subresult); echo '</pre>';

    then please post the results.

     
  • Marc Delisle

    Marc Delisle - 2006-12-04
    • labels: 438951 -->
    • milestone: 659909 -->
    • status: open --> pending
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks