|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-04-01 17:31 UTC] sergei dot solomonov at gmail dot com
-PHP Version: 7.0.5
+PHP Version: 7.0.4
[2016-04-01 17:31 UTC] sergei dot solomonov at gmail dot com
[2016-04-12 02:24 UTC] sixd@php.net
[2016-04-12 02:50 UTC] sergei dot solomonov at gmail dot com
[2016-08-16 06:28 UTC] sixd@php.net
-Status: Open
+Status: Duplicate
[2016-08-16 06:28 UTC] sixd@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 03:00:02 2025 UTC |
Description: ------------ Os info: Ubuntu 15.04, Linux 4.2.0-19-generic Php version: 7.0.5 Configure command: './configure' '--enable-zip' '--enable-intl' '--with-oci8' '--disable-cgi' '--with-apxs2=/usr/local/apache/bin/apxs' '--enable-opcache' '--enable-sigchild' '--enable-mbstring' '--with-xsl' '--with-gd' '--with-config-file-scan-dir=/usr/local/apache/conf' '--with-openssl' '--with-curl' '--with-zlib' '--enable-timezonedb' Php ini: php.ini-production, no changes I'm in migrating process from php 5.6.9 to 7.0.5. I noticed very strange errors with oci8 + call_user_func_array functions. Test script shows how to get other bind value rather then you were supplied as a parameter. If you'll try to do some little changes you may have different results. Also I had a segfaults, but now I can't reproduce it. Test script: --------------- class dbTest { private $stmt; public function __construct() { $conn = oci_connect('user', 'password', 'dbmane'); $this->stmt = oci_parse($conn, 'select :bindValue as result from dual'); } public function runOciFunc($funcName, array $funcArgs) { call_user_func_array("oci_$funcName", $funcArgs); } public function bindVal(array $bind) { foreach ($bind as $k => $v) { $this->runOciFunc('bind_by_name', [$this->stmt, ':bindValue', &$v]); } return $this; } public function execute() { $this->runOciFunc('execute', [$this->stmt]); return $this; } public function result() { var_dump(oci_fetch_assoc($this->stmt)); } } (new dbTest)->bindVal(['expected value']) ->execute() ->result(); Expected result: ---------------- array(1) { ["RESULT"]=> string(14) "expected value" } Actual result: -------------- array(1) { ["RESULT"]=> string(11) "oci_execute" }