|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-04-18 03:27 UTC] phpmpan at mpan dot pl
[2012-04-18 10:53 UTC] johannes@php.net
[2012-04-18 10:53 UTC] johannes@php.net
-Status: Open
+Status: Wont fix
[2012-04-18 17:51 UTC] philip@php.net
[2012-04-18 17:51 UTC] philip@php.net
-Status: Wont fix
+Status: Re-Opened
-Type: Bug
+Type: Documentation Problem
-Assigned To:
+Assigned To: philip
[2012-06-01 06:46 UTC] philip@php.net
[2012-06-01 06:46 UTC] philip@php.net
-Status: Re-Opened
+Status: Closed
[2012-06-01 06:46 UTC] philip@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 21 09:00:02 2025 UTC |
Description: ------------ The value of the 'Table' property returned by mysql_fetch_field() will be incorrect if a table alias was used in the SQL query. Test script: --------------- // It's assumed a MySQL resource has been established here $result = mysql_query( 'SELECT * FROM table AS t' ); $i = 0; while ( $i < mysql_num_fields( $result ) ) { $col_info[] = mysql_fetch_field( $result ); $i++; } echo '<pre>' . print_r( $col_info, true ) . '</pre>'; Expected result: ---------------- The 'Table' property of the object output should be 'table'. Actual result: -------------- The 'Table' property of the object output is 't'.