Bug #73707 [Fbk->NoF]: Zend_Db_Statement_Exception: SQLSTATE[HY000]
| From: | php-bugs at lists dot php dot net | Date: | Sun, 22 Aug 2021 04:22:09 +0000 |
| Subject: | Bug #73707 [Fbk->NoF]: Zend_Db_Statement_Exception: SQLSTATE[HY000] | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-236001@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: php-bugs@lists.php.net
Reported by: bartek at bugpoint dot pl
Summary: Zend_Db_Statement_Exception: SQLSTATE[HY000]
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: PDO related
Operating System: Linux
PHP Version: Irrelevant
Assigned To: cmb
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2021-08-09 11:25:13] cmb@php.net
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/>
------------------------------------------------------------------------
[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