|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-05-19 08:44 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 15:00:02 2025 UTC |
Description: ------------ when executing pg_execute it modifies the null values in the params array to an empty string Reproduce code: --------------- $conn = pg_connect('dbname=test'); $param_list = array(null, ); var_dump($param_list); pg_prepare($conn, 'test', 'INSERT INTO nullproblem2 VALUES ($1)'); pg_execute($conn, 'test', $param_list); var_dump($param_list); Expected result: ---------------- array(1) { [0]=> NULL } array(1) { [0]=> NULL } Actual result: -------------- array(1) { [0]=> NULL } array(1) { [0]=> string(0) "" }