Re: Stored procedures, PDO, and PHP issue

From: Andy Shellam <andy-lists(at)networkmail(dot)eu>
To: Eric Chamberlain <Eric(dot)Chamberlain(at)zonarsystems(dot)com>
Cc: "pgsql-php(at)postgresql(dot)org" <pgsql-php(at)postgresql(dot)org>
Subject: Re: Stored procedures, PDO, and PHP issue
Date: 2009-08-19 22:36:39
Message-ID: 4A8C7E77.4030902@networkmail.eu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-php by date

  From Date Subject
Next Message dimitris.sakellarios 2009-09-02 17:23:18 How to select the source ip address for a connection to the database server
Previous Message Eric Chamberlain 2009-08-19 22:25:25 Re: Stored procedures, PDO, and PHP issue