pdo_sqlite error 5.1

php.internals

Kevin Waterson

20 years ago
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."

Wez Furlong

20 years ago
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. On 9/11/05, Kevin Waterson <kevin@oceania.net> wrote:

Kevin Waterson

20 years ago
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."

Wez Furlong

20 years ago
It's something for Marcus to look at, as he added that line. --Wez. On 9/11/05, Kevin Waterson <kevin@oceania.net> wrote:

Marcus Börger

20 years ago
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:
>> 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."
Best regards, Marcus