|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-12-15 02:14 UTC] david at tulloh dot id dot au
Description:
------------
pg_execute will change the type of a passed parameter into a string.
Reproduce code:
---------------
<?php
$i = 42;
var_dump($i);
pg_pconnect("insert connect details here");
@pg_execute('dummy_entry', array($i) );
var_dump($i);
?>
Expected result:
----------------
int(42)
int(42)
Actual result:
--------------
int(42)
string(2) "42"
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 05:00:01 2025 UTC |
work around until it's fixed and for older versions: $type = gettype($i); @pg_execute('dummy_entry', array($i) ); settype($i, $type);