php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42607 mysql_data_seek error bug...
Submitted: 2007-09-10 10:08 UTC Modified: 2007-09-18 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: nyang_haggai at yahoo dot com Assigned:
Status: No Feedback Package: MySQL related
PHP Version: 5.1.6 OS: Fedora Core 5
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nyang_haggai at yahoo dot com
New email:
PHP Version: OS:

 

 [2007-09-10 10:08 UTC] nyang_haggai at yahoo dot com
Description:
------------
I'm using PHP 5.1.6 on a production server with a LAMP setup, and I do code PHP on it remotely every day.

-- can't upgrade at the moment to 5.2.4 - would take people offline...sorry! Maybe later at night :)

No changes were made to php.ini, except for display_errors = On
No changes to the default mysqld config

I stumbled upon the bug with the mysql_data_seek() function - in short the problem is that if I spell it as mysql_daat_seek() instead (with the relevant args), no error is displayed. The page just displays normally - as if I had commented out the line.

It's trivial to me, but I guess it might give someone debug nightmares if he/she has several thousands of lines of code, IMHO :)

Reproduce code:
---------------
$result_prepaidcards = mysql_query("SELECT * FROM atrium.prepaidcards WHERE vendorid = '".$row_vendors['id']."';");

						if(mysql_num_rows($result_prepaidcards) > 0)
{
	for($i = 0; $i < mysql_num_rows($result_prepaidcards); $i++)
	{
		mysql_daat_seek($result_prepaidcards,$i);
		$row_prepaidcards = mysql_fetch_assoc($result_prepaidcards);
// more code here...

	}
}

Expected result:
----------------
I should see a syntax error line for the erroneous mysql_daat_seek() line...

Actual result:
--------------
The page displays just as usual, NO errors raised! Seems a problem with the syntax checker, or am I wrong?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-10 10:15 UTC] jani@php.net
Please give feedback once you have upgraded to the latest stable release. (Anything below 5.2.4 is prone to security exploits too!)
 [2007-09-18 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Nov 29 14:04:16 2022 UTC