Bug #72141 [Opn->Dup]: Sybase not loading date format from Freetds

From: Date: Tue, 31 Oct 2017 21:58:50 +0000
Subject: Bug #72141 [Opn->Dup]: Sybase not loading date format from Freetds
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212394@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72141&edit=1 ID: 72141 Updated by: adambaratz@php.net Reported by: andremoniz at gmail dot com Summary: Sybase not loading date format from Freetds -Status: Open +Status: Duplicate Type: Bug Package: PDO DBlib Operating System: Ubuntu 14.04.4 LTS PHP Version: 7.0.6 Block user comment: N Private report: N New Comment: See #74243. Previous Comments: ------------------------------------------------------------------------ [2017-08-09 20:02:59] maxiwheat at gmail dot com Would be great if the format would at least be customizable in php.ini or just go back to use the format friom freetds' locales.conf. We are now stuck with a fixed format that us missing some info and it's bad. ------------------------------------------------------------------------ [2016-05-03 13:38:39] andremoniz at gmail dot com I am thinking this is related to https://github.com/php/php-src/blob/PHP-7.0.6/ext/pdo_dblib/dblib_stmt.c#L322 ------------------------------------------------------------------------ [2016-05-03 09:38:15] andremoniz at gmail dot com Description: ------------ The bug is that php7.0-sybase is not loading locales.conf date format from freetds. If I go back to php5 it works. The locales.conf has [default] date format = %Y-%m-%d %H:%M:%S.%z But when results come from database it returns in this format: %Y-%m-%d %H:%M:%S freetds version 8.0. PHP 7.0.6-1+donate.sury.org~trusty+1 (cli) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies with Xdebug v2.4.0, Copyright (c) 2002-2016, by Derick Rethans ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72141&edit=1

« previous php.bugs (#212394) next »