apache throws error with realpath()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
incrypt
Forum Newbie
Posts: 2
Joined: Tue Jan 19, 2010 4:45 am

apache throws error with realpath()

Post by incrypt »

Hi,

I don't know whether this falls under an apache forum or php, so I'll just try it here.

I'm working with Zend Framework and I'm trying to move the application from a windows machine to a solaris server. Apache and PHP are installed but when I run the index.php it tries to define the APPLICATION_PATH to a location using the realpath() function. At this point apache throws the following error:

Code: Select all

Incurred fault #6, FLTBOUNDS %pc=0xFDF18A0C
 siginfo: SIGSEGV SEGV_MAPERR addr=0x00000008
Recieved signal #11, SIGSEGV [caught]
 siginfo: SIGSEGV SEGV_MAPERR addr=0x00000008
even when I just run 'echo realpath('/home');' it throws the error above. This also happens with the function dirname(__FILE__), but __FILE__ itself echo's without problems.

Does anybody know why this is happening, and how I can solve it.

regards,

I.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: apache throws error with realpath()

Post by requinix »

Looks like a bug in PHP. Are you running the most recent version of whatever branch of PHP? That is, running 4.4.9 (the 4.x branch is old - upgrade to 5.2), 5.2.12, or 5.3.1?
incrypt
Forum Newbie
Posts: 2
Joined: Tue Jan 19, 2010 4:45 am

Re: apache throws error with realpath()

Post by incrypt »

I'm running 5.3.1
Post Reply