php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #72601 Stringify 'uniqidentifier' fields
Submitted: 2016-07-15 07:53 UTC Modified: 2016-09-12 21:27 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:3 (100.0%)
From: axelhex at gmail dot com Assigned: adambaratz (profile)
Status: Closed Package: PDO DBlib
PHP Version: 7.0Git-2016-07-15 (Git) OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
39 - 37 = ?
Subscribe to this entry?

 
 [2016-07-15 07:53 UTC] axelhex at gmail dot com
Description:
------------
Before PHP 7.0 pdo_dblib returns `uniqidentifier` fields as 36-byte hex string, a 'human' representation of GUID, like '82A88958-672B-4C22-842F-216E2B88E72A'.  
Now such fields returns as 16-byte raw binary string. 

I propose keep old behavior and return fields in human representation when `PDO::ATTR_STRINGIFY_FETCHES == true`.

PR #2001
https://github.com/php/php-src/pull/2001


Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-09-12 21:27 UTC] adambaratz@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: adambaratz
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 15:01:28 2024 UTC