Bug #73707 [Opn->Fbk]: Zend_Db_Statement_Exception: SQLSTATE[HY000]
| From: | cmb@php.net | Date: | Mon, 09 Aug 2021 11:25:14 +0000 |
| Subject: | Bug #73707 [Opn->Fbk]: Zend_Db_Statement_Exception: SQLSTATE[HY000] | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-235703@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73707&edit=1
ID: 73707
Updated by: cmb@php.net
Reported by: bartek at bugpoint dot pl
Summary: Zend_Db_Statement_Exception: SQLSTATE[HY000]
-Status: Open
+Status: Feedback
Type: Bug
Package: PDO related
Operating System: Linux
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
If this issue still persists with any of the actively supported
PHP versions[1], please provide a simple self-contained reproduce
script[2]. Also clarify whether this affects only PostGreSQL, or
is a general PDO issue, if possible.
[1] <https://www.php.net/supported-versions.php>
[2] <http://sscce.org/>
Previous Comments:
------------------------------------------------------------------------
[2016-12-10 04:36:53] bartek at bugpoint dot pl
Description:
------------
I couldn't re-open https://bugs.php.net/bug.php?id=62571 so I post
here new bug.
Test script:
---------------
test1.php:
<?php
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(__DIR__ . '/application'));
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ?
getenv('APPLICATION_ENV') : 'development'));
require_once 'Zend/Application.php';
$application = new Zend_Application(
APPLICATION_ENV,
APPLICATION_PATH . '/configs/application.ini'
);
$db = new Zend_Db_Adapter_Pdo_Pgsql(array(
'host' => 'localhost',
'username' => 'test',
'password' => 'hasÅodlatest',
'dbname' => 'test'
));
echo 'start' . "\n";
$select = $db->select()->from('aaa', '*');
print_r($db->fetchOne($select));
echo "\n";
$pid = pcntl_fork();
if ($pid == -1) {
// pcntl_fork() failed
echo('could not fork');
} elseif ($pid) {
} elseif ($pid == 0) {
// you're in the new (child) process
exec('/usr/bin/php /home/idea/CLI/test2.php &>/home/idea/CLI/test.log &');
exit;
}
echo 'After fork' . "\n";
while (true) {
sleep(5);
$select = $db->select()->from('aaa', '*');
print_r($db->fetchOne($select));
}
test2.php:
<?php
echo 'Forked' . "\n";
Expected result:
----------------
See https://bugs.php.net/bug.php?id=62571
Actual result:
--------------
See https://bugs.php.net/bug.php?id=62571
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73707&edit=1