Re: Stored procedures, PDO, and PHP issue

Andy Shellam <[email protected]> Wed, 19 Aug 2009 23:36:39 +0100
Newsgroups gmane.comp.db.postgresql.php
Message-ID <[email protected]>
Hi Eric,

Ah cool well I guess we all learnt something now then huh!?  Cheers for 
letting us know the solution.  Strange that PDO won't let you use the 
"?" syntax as well as named data types in the query.

>
> Here is what is in the Apache log:
>
> [Wed Aug 19 15:07:02 2009] [notice] child pid 31897 exit signal 
> Segmentation fault (11)
> [Wed Aug 19 15:07:03 2009] [notice] child pid 4163 exit signal 
> Segmentation fault (11)
> [Wed Aug 19 15:07:05 2009] [notice] child pid 4122 exit signal 
> Segmentation fault (11)
> [Wed Aug 19 15:07:07 2009] [notice] child pid 4209 exit signal 
> Segmentation fault (11)

Yeah that's PHP crashing (explaining why you only get the blank 
screen.)  If you have the time, maybe report it to the PHP guys 
(http://bugs.php.net.)  I can't see why you cannot use "?::BIGINT" but 
you can use ":name::BIGINT."  As far as we as developers are concerned, 
the two should be interchangeable (and the documentation certainly 
suggests that.)

At any rate even if you couldn't use that syntax, PHP shouldn't segfault.
>
> This was after 5 successive hits using the ?::BIGINT, ?::VARCHAR syntax.
>

Regards,
Andy

-- 
Sent via pgsql-php mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-php