#41950 [NEW]: Sybase module complains that date strings are not null terminated

From: Date: Tue, 10 Jul 2007 13:02:24 +0000
Subject: #41950 [NEW]: Sybase module complains that date strings are not null terminated
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-114845@lists.php.net to get a copy of this message
From: ivan dot s dot borisov at gmail dot com Operating system: gentoo linux PHP version: 5.2.3 PHP Bug Type: Sybase (dblib) related Bug description: Sybase module complains that date strings are not null terminated Description: ------------ Bug #30224 Sybase module complains that date strings are not null terminated I'v got result of script but i also got this warning: Warning: String is not zero-terminated (Jul 10 2007 09:40PM „&#1052;&#1039;* ) (source: /var/tmp/portage/dev-lang/php-5.1.6-r11/work/php-5.1.6/Zend/zend_variables.h:35) in Unknown on line 0 Reproduce code: --------------- #!/usr/bin/php -q <?php require_once 'PEAR.php'; require_once 'DB.php'; $dsn = array ( 'phptype' => 'sybase', 'username' => 'sa', 'password' => '123456', 'hostspec' => '10.1.1.101:5000', 'database' => 'kinomir' ); $DB_options = array ( 'debug' => 2, 'persistent' => TRUE, 'portability' => DB_PORTABILITY_ALL, ); $db =& DB::connect($dsn, $DB_options); if (PEAR::isError($db)) { echo 'mes:'.$db->getMessage(); exit; } $db->setFetchMode(DB_FETCHMODE_ASSOC); $q = "SELECT * FROM performance"; $res =& $db->query($q); $kol_vo_strok = $res->numRows(); if($kol_vo_strok >=1) { while($res->fetchInto($row)) { print $row['idperformance']."\n"; } } $db->disconnect(); ?> Expected result: ---------------- Warning: String is not zero-terminated (Jul 11 2007 12:00AM „&#1052;&#1039;*) (source: /var/tmp/portage/dev-lang/php-5.1.6-r11/work/php-5.1.6/Zend/zend_variables.h:35) in Unknown on line 0 Warning: String is not zero-terminated (4551130 „&#1052;&#1039;*) (source: /var/tmp/portage/dev-lang/php-5.1.6-r11/work/php-5.1.6/Zend/zend_variables.h:35) in Unknown on line 0 Warning: String is not zero-terminated (4550026 „&#1052;&#1039;*) (source: /var/tmp/portage/dev-lang/php-5.1.6-r11/work/php-5.1.6/Zend/zend_variables.h:35) in Unknown on line 0 Warning: String is not zero-terminated (2 „&#1052;&#1039;*) (source: /var/tmp/portage/dev-lang/php-5.1.6-r11/work/php-5.1.6/Zend/zend_variables.h:35) in Unknown on line 0 Warning: String is not zero-terminated (120.00 „&#1052;&#1039;*) (source: /var/tmp/portage/dev-lang/php-5.1.6-r11/work/php-5.1.6/Zend/zend_variables.h:35) in Unknown on line 0 Warning: String is not zero-terminated (3 „&#1052;&#1039;*) (source: /var/tmp/portage/dev-lang/php-5.1.6-r11/work/php-5.1.6/Zend/zend_variables.h:35) in Unknown on line 0 Warning: String is not zero-terminated (Jul 10 2007 09:40PM „&#1052;&#1039;*) (source: /var/tmp/portage/dev-lang/php-5.1.6-r11/work/php-5.1.6/Zend/zend_variables.h:35) in Unknown on line 0 Warning: String is not zero-terminated (Jul 11 2007 12:00AM „&#1052;&#1039;*) (source: /var/tmp/portage/dev-lang/php-5.1.6-r11/work/php-5.1.6/Zend/zend_variables.h:35) in Unknown on line 0 Warning: String is not zero-terminated (4551130 „&#1052;&#1039;*) (source: /var/tmp/portage/dev-lang/php-5.1.6-r11/work/php-5.1.6/Zend/zend_variables.h:35) in Unknown on line 0 Warning: String is not zero-terminated (4550026 „&#1052;&#1039;*) (source: /var/tmp/portage/dev-lang/php-5.1.6-r11/work/php-5.1.6/Zend/zend_variables.h:35) in Unknown on line 0 Warning: String is not zero-terminated (2 „&#1052;&#1039;*) (source: /var/tmp/portage/dev-lang/php-5.1.6-r11/work/php-5.1.6/Zend/zend_variables.h:35) in Unknown on line 0 Warning: String is not zero-terminated (120.00 „&#1052;&#1039;*) (source: /var/tmp/portage/dev-lang/php-5.1.6-r11/work/php-5.1.6/Zend/zend_variables.h:35) in Unknown on line 0 Warning: String is not zero-terminated (4 „&#1052;&#1039;*) (source: /var/tmp/portage/dev-lang/php-5.1.6-r11/work/php-5.1.6/Zend/zend_variables.h:35) in Unknown on line 0 Warning: String is not zero-terminated (Jul 10 2007 09:40PM „&#1052;&#1039;*) (source: /var/tmp/portage/dev-lang/php-5.1.6-r11/work/php-5.1.6/Zend/zend_variables.h:35) in Unknown on line 0 Warning: String is not zero-terminated (Jul 11 2007 12:00AM „&#1052;&#1039;*) (source: /var/tmp/portage/dev-lang/php-5.1.6-r11/work/php-5.1.6/Zend/zend_variables.h:35) in Unknown on line 0 Warning: String is not zero-terminated (4551130 „&#1052;&#1039;*) (source: /var/tmp/portage/dev-lang/php-5.1.6-r11/work/php-5.1.6/Zend/zend_variables.h:35) in Unknown on line 0 Warning: String is not zero-terminated (4550026 „&#1052;&#1039;*) (source: /var/tmp/portage/dev-lang/php-5.1.6-r11/work/php-5.1.6/Zend/zend_variables.h:35) in Unknown on line 0 Warning: String is not zero-terminated (2 „&#1052;&#1039;*) (source: /var/tmp/portage/dev-lang/php-5.1.6-r11/work/php-5.1.6/Zend/zend_variables.h:35) in Unknown on line 0 Warning: String is not zero-terminated (250.00 „&#1052;&#1039;*) (source: /var/tmp/portage/dev-lang/php-5.1.6-r11/work/php-5.1.6/Zend/zend_variables.h:35) in Unknown on line 0 Warning: String is not zero-terminated (5 „&#1052;&#1039;*) (source: /var/tmp/portage/dev-lang/php-5.1.6-r11/work/php-5.1.6/Zend/zend_variables.h:35) in Unknown on line 0 -- Edit bug report at http://bugs.php.net/?id=41950&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41950&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41950&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41950&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41950&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41950&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41950&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41950&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41950&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41950&r=support Expected behavior: http://bugs.php.net/fix.php?id=41950&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41950&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41950&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41950&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41950&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41950&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41950&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41950&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41950&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41950&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41950&r=mysqlcfg

« previous php.bugs (#114845) next »