php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41950 Sybase module complains that date strings are not null terminated
Submitted: 2007-07-10 13:02 UTC Modified: 2007-07-18 01:00 UTC
From: ivan dot s dot borisov at gmail dot com Assigned:
Status: No Feedback Package: Sybase (dblib) related
PHP Version: 5.2.3 OS: gentoo linux
Private report: No CVE-ID: None
 [2007-07-10 13:02 UTC] ivan dot s dot borisov at gmail dot com
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          ?МЏ*
) (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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-07-18 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 00:01:30 2024 UTC