[PHP] Re: What do you get for ...

2011-06-07 Thread Geoff Lane
On Tuesday, June 7, 2011, Richard Quadling wrote: > But the surprising issue is that your 5.1.6 returns bool(false). So > far, that's the only report I've got that shows inconsistent > behaviour for PHP5+ I too was surprised, which is why I took the time to report. AFAICT, I've got the standard L

Re: [PHP] Re: What do you get for ...

2011-06-07 Thread Richard Quadling
On 7 June 2011 13:04, Geoff Lane wrote: > On Tuesday, June 7, 2011, Richard Quadling wrote: > >> What do you get for ... > >> php -r "var_dump(realpath(null));" > > PHP 5.3.5-1ubuntu7.2 on Ubuntu 11.04 kernel 2.6.18 returns the same > value as __DIR__ > > However, PHP 5.1.6 on CentOS 5.6 kernel 2.

[PHP] Re: What do you get for ...

2011-06-07 Thread Geoff Lane
On Tuesday, June 7, 2011, Richard Quadling wrote: > What do you get for ... > php -r "var_dump(realpath(null));" PHP 5.3.5-1ubuntu7.2 on Ubuntu 11.04 kernel 2.6.18 returns the same value as __DIR__ However, PHP 5.1.6 on CentOS 5.6 kernel 2.6.18 returns bool(false). Doing php -r "var_dump(__DIR_