Re: Bug #1910: eval causes core dump with math functions that retun NaN

From: Date: Wed, 28 Jul 1999 20:51:48 +0000
Subject: Re: Bug #1910: eval causes core dump with math functions that retun NaN
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-9289@lists.php.net to get a copy of this message
ccunning@math.ohio-state.edu wrote: > From: ccunning@math.ohio-state.edu > Operating system: Solaris 2.6 > PHP version: 4.0b1 > PHP Bug Type: Reproduceable crash > Bug description: eval causes core dump with math functions that retun NaN > > Doing something like eval("\$one = log(-1)"); on Solaris causes a core dump. Doing the log(-1) outside of eval returns NaN. Any function that can return NaN or Infinity with the right argument seems to do this when executed inside an eval. Doing the eval on RedHat 6 with php4 works fine, and PHP3 on Solaris handles it fine. Here is the dbx output as well as some stuff that showed up in the error log. I believe this should be fixed in the latest CVS. Zeev? -Andrey * If it ain't broken, it doesn't have enough features yet. *

« previous php.dev (#9289) next »