segfault in version_compare
| From: | Rasmus Lerdorf | Date: | Tue, 21 May 2002 05:45:35 +0000 |
| Subject: | segfault in version_compare | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-84209@lists.php.net to get a copy of this message | ||
Stig, I was going to fix this, but then I saw your code...
So here you go. "pear install XML_RSS" ends up causing this call:
version_compare('', '1.0', 'ge');
This tosses php_version_compare() into an infinite recursive loop
eventually ending in a segfault. Now, why exactly php_version_compare()
needs to be a recursive function is a bit beyond me and hence the handoff.
-Rasmus