Re: Stored procedures, PDO, and PHP issue - Mailing list pgsql-php

From Andy Shellam
Subject Re: Stored procedures, PDO, and PHP issue
Date
Msg-id 4A8C7E77.4030902@networkmail.eu
Whole thread Raw
In response to Re: Stored procedures, PDO, and PHP issue  (Eric Chamberlain <Eric.Chamberlain@zonarsystems.com>)
List pgsql-php
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

pgsql-php by date:

Previous
From: Eric Chamberlain
Date:
Subject: Re: Stored procedures, PDO, and PHP issue
Next
From: "Hajek, Nick"
Date:
Subject: Re: Stored procedures, PDO, and PHP issue