# pdo_sqlite error 5.1

- Thread: https://externals.io/message/18776
- Original archive: https://news-web.php.net/php.internals/18776
- Started by Kevin Waterson on 2005-09-11T13:24:18+00:00
- Messages: 5
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #18776 — Kevin Waterson — 2005-09-11T13:24:18+00:00

URL: https://externals.io/message/18776#18776

PHP Fatal error:  Class PDOStatement must implement interface Traversable as part of either Iterator or IteratorAggregate i
n Unknown on line 0
make: [test] Error 254 (ignored)
exit 0; /home/kevin/html/php/dev/this/php5-200509110430/ext/sqlite/libsqlite/src/parse.y
Installing PHP SAPI module:       apache2handler
/usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/local/apache/build/libtool' libphp5.la /usr/local/apache/modules
/usr/local/apache/build/libtool --mode=install cp libphp5.la /usr/local/apache/modules/
cp .libs/libphp5.so /usr/local/apache/modules/libphp5.so
cp .libs/libphp5.lai /usr/local/apache/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish /home/kevin/html/php/dev/this/php5-200509110430/libs'
chmod 755 /usr/local/apache/modules/libphp5.so
[activating module `php5' in /usr/local/apache/conf/httpd.conf]
Installing PHP CLI binary:        /usr/local/apache/php/bin/
Installing PHP CLI man page:      /usr/local/apache/php/man/man1/
Installing PEAR environment:      /usr/local/apache/php/lib/php/
+----------------------------------------------------------------------+
| The installation process is incomplete. The following resources were |
| not installed:                                                       |
|                                                                      |
|   PEAR: PHP Extension and Application Repository                     |
|                                                                      |
| To install these components,                                         |
| download http://pear.php.net/install-pear.phar to php-src/pear/      |
| become the superuser and execute:                                    |
|                                                                      |
|   # make install-su                                                  |
+----------------------------------------------------------------------+
make: *** [install-pear] Error 5

###################################################################################

./configure --with-config-file-path=/etc --with-apxs2=/usr/local/apache/bin/apxs --prefix=/usr/local/apache/php --with-sqlite --enable-sqlite-utf8 --enable-gd-native-ttf --with-gd --with-jpeg-dir=/usr --with-zlib --with-mysql=/usr/local --enable-safe-mode --enable-debug --with-pdo-sqlite

-- 
"Democracy is two wolves and a lamb voting on what to have for lunch. 
Liberty is a well-armed lamb contesting the vote."

---

## #18778 — Wez Furlong — 2005-09-11T14:28:42+00:00

URL: https://externals.io/message/18776#18778 · In reply to: #18776

Looks like implementing traversable also requires implementing some
other interfaces.
I've removed this line from the code in CVS, so that people can
actually use the snapshots; they're currently all hard-broken with
this error when a class implements traversable.

If there's any other code doing this same thing, it also needs to be
fixed before release.

--Wez.



> 
> PHP Fatal error:  Class PDOStatement must implement interface Traversable as part of either Iterator or IteratorAggregate i
> n Unknown on line 0

---

## #18785 — Kevin Waterson — 2005-09-12T00:03:53+00:00

URL: https://externals.io/message/18776#18785 · In reply to: #18778

This one time, at band camp, Wez Furlong <kingwez@gmail.com> wrote:

> Looks like implementing traversable also requires implementing some
> other interfaces.
> I've removed this line from the code in CVS, so that people can
> actually use the snapshots; they're currently all hard-broken with
> this error when a class implements traversable.

I was un-aware you could directly implement traversable. My understanding
was that you needed to Implement Iterator.

Kevin
-- 
"Democracy is two wolves and a lamb voting on what to have for lunch. 
Liberty is a well-armed lamb contesting the vote."

---

## #18787 — Wez Furlong — 2005-09-12T01:19:43+00:00

URL: https://externals.io/message/18776#18787 · In reply to: #18785

It's something for Marcus to look at, as he added that line.

--Wez.


> This one time, at band camp, Wez Furlong <kingwez@gmail.com> wrote:
> 
> > […]
> 
> I was un-aware you could directly implement traversable. My understanding
> was that you needed to Implement Iterator.
> 
> Kevin
> --
> "Democracy is two wolves and a lamb voting on what to have for lunch.
> Liberty is a well-armed lamb contesting the vote."

---

## #18898 — Marcus Boerger — 2005-09-14T14:02:30+00:00

URL: https://externals.io/message/18776#18898 · In reply to: #18785

Hello Kevin,

  interface traversable is only a tag. And as such it can only be
implemented by either interfaces Iterator and Aggregate or by internal
classes. That said there is either something wrong with the check for
implementers being internal classes or PDO classes aren't internal
classes when traversable gets implemented.

best regards
marcus

Monday, September 12, 2005, 2:03:53 AM, you wrote:

> This one time, at band camp, Wez Furlong <kingwez@gmail.com> wrote:

> > […]

> I was un-aware you could directly implement traversable. My understanding
> was that you needed to Implement Iterator.

> Kevin
> -- 
> "Democracy is two wolves and a lamb voting on what to have for lunch. 
> Liberty is a well-armed lamb contesting the vote."




Best regards,
 Marcus
