|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-08-19 17:25 UTC] bukka@php.net
-Package: FPM related
+Package: OCI8 related
[2018-08-19 17:25 UTC] bukka@php.net
[2018-08-20 03:48 UTC] sixd@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: sixd
[2018-08-20 03:48 UTC] sixd@php.net
[2018-11-18 22:33 UTC] cmb@php.net
-Status: Feedback
+Status: No Feedback
[2018-11-18 22:33 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Description: ------------ looks like oci_bind_by_name has some memory allocation issue when clave == ''; running oci_bind_by_name($stid, ":password", strtoupper($clave)) produces 'Only variables should be passed by reference' which is expected, but then all empty strings are string(6) "\x00\x00\x00\x00\x00\x00" instead of string(0) "" substr("", 0, 0) still produces string(0) "" though Test script: --------------- $clave = ''; oci_bind_by_name($stid, ":password", strtoupper($clave)) $test = ''; var_dump($test); will produce string(6) "\x00\x00\x00\x00\x00\x00"; Expected result: ---------------- I expect $test = ''; var_dump($test); to produce string(0) "" Actual result: -------------- after reaching clave=""; oci_bind_by_name($stid, ":password", strtoupper($clave)) $test = ''; var_dump($test); produces string(6) "\x00\x00\x00\x00\x00\x00"