From:             spam2 at rhsoft dot net
Operating system: 
PHP version:      5.5.27
Package:          Testing related
Bug Type:         Bug
Bug description:MySQL PDO ignores env-vars

Description:
------------
why are with that environment vars a ton of tests still try to connect
as root without a password? that's unacceptable for security reasons and
frankly there should be in general a test-user with it's own database be
the default instead root
____________________________________

export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
MYSQL_TEST_HOST="localhost" MYSQL_TEST_PORT="3306"
MYSQL_TEST_USER="php_autotest" MYSQL_TEST_PASSWD="*****"
MYSQL_TEST_DB="php_autotest" PDO_MYSQL_TEST_HOST="localhost"
PDO_MYSQL_TEST_SOCKET="%{_sharedstatedir}/mysql/mysql.sock"
PDO_MYSQL_TEST_USER="php_autotest" PDO_MYSQL_TEST_PASS="****"
PDO_MYSQL_TEST_DB="php_autotest" PDO_MYSQL_TEST_ENGINE="MyISAM"
____________________________________

SKIP MySQL PDO: PDOStatement->fetchObject()
[ext/pdo_mysql/tests/pdo_mysql_stmt_fetchobject.phpt] reason:
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using
password: NO)
SKIP MySQL: PDOStatement->getColumnMeta()
[ext/pdo_mysql/tests/pdo_mysql_stmt_getcolumnmeta.phpt] reason:
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using
password: NO)
SKIP PDOStatements and multi query
[ext/pdo_mysql/tests/pdo_mysql_stmt_multiquery.phpt] reason:
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using
password: NO)
SKIP MySQL PDOStatement->nextRowSet()
[ext/pdo_mysql/tests/pdo_mysql_stmt_nextrowset.phpt] reason:
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using
password: NO)
SKIP MySQL PDOStatement->rowCount() @ SELECT
[ext/pdo_mysql/tests/pdo_mysql_stmt_rowcount.phpt] reason:
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using
password: NO)


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


-- 
PHP Quality Assurance Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to