#41645 [Opn->Fbk]: php crashes with an empty function
| From: | scottmac@php.net | Date: | Sat, 09 Jun 2007 23:12:43 +0000 |
| Subject: | #41645 [Opn->Fbk]: php crashes with an empty function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-113618@lists.php.net to get a copy of this message | ||
ID: 41645
Updated by: scottmac@php.net
Reported By: slogster at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: FreeBSD 6-STABLE
PHP Version: 5.2.3
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
I however can't reproduce this with the provided test case.
Previous Comments:
------------------------------------------------------------------------
[2007-06-09 22:44:23] slogster at gmail dot com
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 this bug report at http://bugs.php.net/?id=41645&edit=1