Bug #71476 [NEW]: Binding insert_id into prepared statement fails

From: Date: Thu, 28 Jan 2016 10:08:22 +0000
Subject: Bug #71476 [NEW]: Binding insert_id into prepared statement fails
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-198940@lists.php.net to get a copy of this message
From:             j dot nord at ntlworld dot com
Operating system: ubuntu4.14
PHP version:      5.5.31
Package:          MySQLi related
Bug Type:         Bug
Bug description:Binding insert_id into prepared statement fails

Description:
------------
Using binding insert id into mysql prepared statement fails where a
variable with the same value works perfectly.

Test script:
---------------
http://pastebin.com/umgSYhrz

Expected result:
----------------
Code should echo:
Able to commit

Actual result:
--------------
Code echoes:
Error executing query: Column 'Barcode' cannot be null

-- 
Edit bug report at https://bugs.php.net/bug.php?id=71476&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=71476&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=71476&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=71476&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=71476&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=71476&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=71476&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=71476&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=71476&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=71476&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=71476&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=71476&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=71476&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=71476&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71476&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=71476&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=71476&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=71476&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71476&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=71476&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=71476&r=mysqlcfg



Thread (3 messages)

« previous php.bugs (#198940) next »