From: slogster at gmail dot com
Operating system: FreeBSD 6-STABLE
PHP version: 5.2.3
PHP Bug Type: Reproducible crash
Bug description: php crashes with an empty function
Description:
------------
php crashes with segmentation fault after executing a dummy function with
some default vars
Reproduce code:
---------------
<?php
function get_links($category = -1,
$before = '',
$after = '<br />',
$between = ' ',
$show_images = true,
$orderby = 'name',
$show_description = true,
$show_rating = false,
$limit = -1,
$show_updated = -1,
$echo = true) {
};
get_links(-1, '<li>','</li>', '', false, 'name', false, false, -1);
?>
Expected result:
----------------
a function with this prototype exists in wordpress. this one here should
exit normally, but it crashes php. if you execute it without the last
argument (corresponding to the $limit var): get_links(-1, '<li>','</li>',
'', false, 'name', false, false) php doesn`t crash
Actual result:
--------------
there is a core dump here http://xaxo.eu/php.core
--
Edit bug report at http://bugs.php.net/?id=41645&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=41645&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=41645&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=41645&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41645&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=41645&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41645&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41645&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41645&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41645&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41645&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=41645&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=41645&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41645&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41645&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41645&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41645&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41645&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41645&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41645&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41645&r=mysqlcfg