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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ivan dot s dot borisov at gmail dot com
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2020 The PHP Group
All rights reserved.
Last updated: Sat Aug 15 20:01:25 2020 UTC