php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17433 version_compare segfaults
Submitted: 2002-05-26 07:51 UTC Modified: 2002-05-26 08:14 UTC
From: mfischer@php.net Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.0CVS-2002-05-26 OS: Any
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mfischer@php.net
New email:
PHP Version: OS:

 

 [2002-05-26 07:51 UTC] mfischer@php.net
$ php -r "version_compare('', '1.0', 'ge');"
Segmentation fault

#0  0x400e61ce in malloc () from /lib/libc.so.6
#1  0x400e6074 in malloc () from /lib/libc.so.6
#2  0x0815badf in _emalloc (size=1, __zend_filename=0x81b08a0 "/home/mfischer/isrc/cvs/php4/ext/standard/versioning.c", __zend_lineno=37, __zend_orig_filename=0x0, __zend_orig_lineno=0)
    at /home/mfischer/isrc/cvs/php4/Zend/zend_alloc.c:165
#3  0x0810c448 in php_canonicalize_version (version=0x8d56efc "") at /home/mfischer/isrc/cvs/php4/ext/standard/versioning.c:37
#4  0x0810c696 in php_version_compare (orig_ver1=0x8d56efc "", orig_ver2=0x81b08da "#N#") at /home/mfischer/isrc/cvs/php4/ext/standard/versioning.c:108
#5  0x0810c8e7 in php_version_compare (orig_ver1=0x8d56e8c "", orig_ver2=0x81b08da "#N#") at /home/mfischer/isrc/cvs/php4/ext/standard/versioning.c:154
#6  0x0810c8e7 in php_version_compare (orig_ver1=0x8d56e1c "", orig_ver2=0x81b08da "#N#") at /home/mfischer/isrc/cvs/php4/ext/standard/versioning.c:154
#7  0x0810c8e7 in php_version_compare (orig_ver1=0x8d56dac "", orig_ver2=0x81b08da "#N#") at /home/mfischer/isrc/cvs/php4/ext/standard/versioning.c:154
#8  0x0810c8e7 in php_version_compare (orig_ver1=0x8d56d3c "", orig_ver2=0x81b08da "#N#") at /home/mfischer/isrc/cvs/php4/ext/standard/versioning.c:154
#9  0x0810c8e7 in php_version_compare (orig_ver1=0x8d56ccc "", orig_ver2=0x81b08da "#N#") at /home/mfischer/isrc/cvs/php4/ext/standard/versioning.c:154


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-26 07:52 UTC] mfischer@php.net
Setting to critical, needs to be fixed before 4.3 release
 [2002-05-26 08:14 UTC] jan@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Nov 25 15:01:32 2024 UTC