ID:               36117
 Updated by:       [EMAIL PROTECTED]
 Reported By:      alejosimon at yahoo dot com dot ar
-Status:           Open
+Status:           Feedback
 Bug Type:         SQLite related
 Operating System: Win 2k3
 PHP Version:      5.1.2
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.




Previous Comments:
------------------------------------------------------------------------

[2006-01-21 22:25:04] alejosimon at yahoo dot com dot ar

SORRY 2 :) !!!

all functions with prfix "db_" are equivalent to "sqlite_" functions.
Rewrite the code.


$db_res = sqlite_query( $db, " SELECT * FROM clientes " ) ;

while ( $db_reg = sqlite_fetch_array( $db_res ) ) {

   echo "1ro: " . $db_reg['cliente'] . "<br>" ;

   sqlite_next( $db_res ) ;
   $db_reg = sqlite_current( $db_res ) ;

   echo "2do: " . $db_reg['cliente'] . "<br>" ;

   sqlite_prev( $db_res ) ; // aca esta el problema.

}

------------------------------------------------------------------------

[2006-01-21 22:20:57] alejosimon at yahoo dot com dot ar

Sorry!!! :(

... but please! run this php code and view the problem.

thanks!

------------------------------------------------------------------------

[2006-01-21 20:15:09] [EMAIL PROTECTED]

Please use English for bug reports.

------------------------------------------------------------------------

[2006-01-21 19:48:48] alejosimon at yahoo dot com dot ar

Description:
------------
Actualmente estoy usando PHP 5.1.2 for win32 en windows 2k3, y
experimento un bucle interminable.

Puede ser esto un bug ???

Saludos.

Reproduce code:
---------------
$db_res = db_query( $db, " SELECT * FROM clientes " ) ;

while ( $db_reg = db_fetch_array( $db_res ) ) {

   echo "1ro: " . $db_reg['cliente'] . "<br>" ;

   db_next( $db_res ) ;
   $db_reg = db_current( $db_res ) ;

   echo "2do: " . $db_reg['cliente'] . "<br>" ;

   db_prev( $db_res ) ; // aca esta el problema.

}


Expected result:
----------------
sumar un registro para verificarlo, y luego retroceder para seguir con
el while. 

Actual result:
--------------
bucle interminable.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=36117&edit=1

Reply via email to