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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
4 + 26 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 04:01:38 2024 UTC