[PATCH] ext/spl/examples/dbareader.inc

php.internals

Mathieu Bruneau

22 years ago
This patches fixes a simple error in the dbareader.inc files. Enjoy
-- Math aka ROunofF ====== argontechnologies.ca Index: dbareader.inc =================================================================== RCS file: /repository/php-src/ext/spl/examples/dbareader.inc,v retrieving revision 1.3 diff -u -h -r1.3 dbareader.inc --- dbareader.inc 28 Jul 2004 22:52:11 -0000 1.3 +++ dbareader.inc 27 Aug 2004 20:26:59 -0000 @@ -45,7 +45,7 @@ */ function rewind() { $this->key = dba_firstkey($this->db); - fetch_data(); + $this->fetch_data(); } /** @@ -55,7 +55,7 @@ */ function next() { $this->key = dba_nextkey($this->db); - fetch_data(); + $this->fetch_data(); } /** @@ -93,4 +93,4 @@ } } -?> \ No newline at end of file +?>

Marcus Börger

22 years ago
Hello Mathieu, thanks for the fix. Friday, August 27, 2004, 10:33:31 PM, you wrote:
> This patches fixes a simple error in the dbareader.inc files. > Enjoy > -- > Math > aka ROunofF
[...] -?>>
> \ No newline at end of file
+?>> btw: The missing new line is intentional. best regards marcus

Markus Fischer

22 years ago
Marcus Boerger wrote:
> -?>> > >>\ No newline at end of file > > +?>> > > btw: The missing new line is intentional.
It happens to me that vi always puts this newlines in. Does anybody know how to prevent this? thanks :) - Markus

Derick Rethans

22 years ago
On Sun, 29 Aug 2004, Markus Fischer wrote:
> Marcus Boerger wrote: > > -?>> > > > >>\ No newline at end of file > > > > +?>> > > > > btw: The missing new line is intentional. > > It happens to me that vi always puts this newlines in. Does anybody know > how to prevent this?
Vi is supposed to do that, it is WRONG not to add it for most C compilers. And yes there is a way, but I won't tell you ;-) Also, Marcus said that the missing ?> was intentional, not the newline. regards, Derick
-- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org