Bug #73707 [NEW]: Zend_Db_Statement_Exception: SQLSTATE[HY000]

From: Date: Sat, 10 Dec 2016 04:36:54 +0000
Subject: Bug #73707 [NEW]: Zend_Db_Statement_Exception: SQLSTATE[HY000]
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205889@lists.php.net to get a copy of this message
From:             bartek at bugpoint dot pl
Operating system: Linux
PHP version:      Irrelevant
Package:          PDO related
Bug Type:         Bug
Bug description:Zend_Db_Statement_Exception: SQLSTATE[HY000]

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 bug report at https://bugs.php.net/bug.php?id=73707&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=73707&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=73707&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=73707&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=73707&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=73707&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=73707&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=73707&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=73707&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=73707&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=73707&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=73707&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=73707&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=73707&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73707&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=73707&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=73707&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=73707&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73707&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=73707&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=73707&r=mysqlcfg



Thread (3 messages)

« previous php.bugs (#205889) next »