php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #426 Text strings longer than 1040 chars crash php
Submitted: 1998-06-02 18:00 UTC Modified: 1998-06-06 19:46 UTC
From: sam at daemoninc dot com Assigned: zeev (profile)
Status: Closed Package: Sybase (dblib) related
PHP Version: 3.0 Release Candidate 5 OS: Solaris 2.5.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sam at daemoninc dot com
New email:
PHP Version: OS:

 

 [1998-06-02 18:00 UTC] sam at daemoninc dot com
Text fields longer than 1040 chars cause php to core dump during select.
Reproduce with:

for ($i = 0; $i <2200; ++$i) {
    $text .= "x";
}
 
echo "Drop=", sybase_query("drop table t"), "\n";
echo "Create=", sybase_query("create table t (t text)"), "\n";
echo "Insert=", sybase_query("insert into t values ('$text')"), "\n";
echo "Select=", sybase_query("select t from t"), "\n";

If I run this I see:
Drop=1
Create=1
Insert=1
Segmentation fault

If I reduce 2200 down to 1000 I see:
Drop=1
Create=1
Insert=1
Select=2

php3.ini:
sybase.interface_file=/tools1/pkgs/sybase/interfaces
doc_root=/web/cgi-bin/RC_internal/phpdir/scripts

Do-conf:
./configure --with-gd=no --with-sybase=/tools1/pkgs/sybase --with-config-file-path=/web/cgi-bin/RC_internal/phpdir/lib --enable-debug=no --enable-safe-mode=yes --with-exec-dir=/web/cgi-bin/RC_internal/phpdir/scripts --bindir=/web/cgi-bin/RC_internal/phpdir/bin


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-06-06 19:46 UTC] rasmus
Fixed by Zeev in 3.0 release
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Jan 25 05:01:24 2020 UTC