Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jun 2007 14:30:02 +0200
From:      Momchil Ivanov <idiotbg@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   php 5.2.3 selgmentation fault, can somebody else reproduce it?
Message-ID:  <200706101430.07034.idiotbg@gmail.com>

next in thread | raw e-mail | index | archive | help
--nextPart131276304.Gx3yPhK8jx
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi,

I`m having trouble with php5-5.2.3 and filled out a bug report=20
http://bugs.php.net/bug.php?id=3D41645 can somebody else reproduce this wit=
h=20
the code given in the bug report, or am I the only one experiencing this? I=
t=20
crashes without debug, and it works with debug on my machine.


<snip>

Description:
=2D-----------
php crashes with segmentation fault after executing a dummy function
with some default vars

Reproduce code:
=2D--------------
<?php
function get_links($category =3D -1,
			$before =3D '',
			$after =3D '<br />',
			$between =3D ' ',
			$show_images =3D true,
			$orderby =3D 'name',
			$show_description =3D true,
			$show_rating =3D false,
			$limit =3D -1,
			$show_updated =3D -1,
			$echo =3D true) {
};
get_links(-1, '<li>','</li>', '', false, 'name', false, false, -1);
?>

Expected result:
=2D---------------
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

</snip>

=2D-=20
PGP KeyID: 0x3118168B
Keyserver: pgp.mit.edu
Key fingerprint BB50 2983 0714 36DC D02E =C2=A0158A E03D 56DA 3118 168B
 =20

--nextPart131276304.Gx3yPhK8jx
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQBGa+7K4D1W2jEYFosRAiT/AJ4/4bCQxQDfOdCeRNC7cReZeD8yNACePlRE
hbqcY1c/r5tyawIPiyOAT8g=
=R/4J
-----END PGP SIGNATURE-----

--nextPart131276304.Gx3yPhK8jx--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706101430.07034.idiotbg>