pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andy Shellam <andy-lists@networkmail.eu>
To: Eric Chamberlain <Eric.Chamberlain@zonarsystems.com>
Cc: pgsql-php@postgresql.org <pgsql-php@postgresql.org>
Subject: Re: Stored procedures, PDO, and PHP issue
Date: Wed, 19 Aug 2009 23:36:39 +0100
Message-ID: <4A8C7E77.4030902@networkmail.eu> (raw)
In-Reply-To: <B6A537B5-C287-44CD-A8A2-265086D3DB4F@zonarsystems.com>
References: <A11E730E-82D7-4EE6-AD80-ECD95982D78A@zonarsystems.com>
	<4A8C6432.2050500@networkmail.eu>
	<2AE0AB18-0F9D-4A32-92D3-4D86F176D432@zonarsystems.com>
	<4A8C6B7D.7020806@networkmail.eu>
	<B6A537B5-C287-44CD-A8A2-265086D3DB4F@zonarsystems.com>

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



view thread (10+ messages)  latest in thread

Message-ID: <4A8C7E77.4030902@networkmail.eu>
Permalink:  ../4A8C7E77.4030902@networkmail.eu/
Also on:    postgresql.org/message-id/4A8C7E77.4030902@networkmail.eu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: andy-lists@networkmail.eu, Eric.Chamberlain@zonarsystems.com
  Subject: Re: Stored procedures, PDO, and PHP issue
  In-Reply-To: <4A8C7E77.4030902@networkmail.eu>
  References: <A11E730E-82D7-4EE6-AD80-ECD95982D78A@zonarsystems.com> <4A8C6432.2050500@networkmail.eu> <2AE0AB18-0F9D-4A32-92D3-4D86F176D432@zonarsystems.com> <4A8C6B7D.7020806@networkmail.eu> <B6A537B5-C287-44CD-A8A2-265086D3DB4F@zonarsystems.com> <4A8C7E77.4030902@networkmail.eu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox