#232: __FILE__ is not defined in PIPP
------------------------+---------------------------------------------------
 Reporter:  H4ck3rm1k3  |        Type:  feature 
   Status:  new         |    Priority:  trivial 
Milestone:              |   Component:  language
  Version:  trunk       |    Severity:  low     
 Keywords:  pipp        |        Lang:  php     
    Patch:              |    Platform:  linux   
------------------------+---------------------------------------------------
Description changed by cotto:

Old description:

> (08:45:08) Phurl: quite simple : define('JPATH_BASE', dirname(__FILE__)
> ); where __FILE__ is not defined.
>
> Note:
> (08:46:31) cotto: Annotations (i.e. filename and line #) were only
> recently added to Parrot.  It'll be a little while before they filter to
> the HLLs like Pipp.
>
> <?php
>
> define('JPATH_BASE', dirname(__FILE__) );

New description:

 (08:45:08) Phurl: quite simple : define('JPATH_BASE', dirname(!__FILE!__)
 ); where !__FILE!__ is not defined.

 Note:
 (08:46:31) cotto: Annotations (i.e. filename and line #) were only
 recently added to Parrot.  It'll be a little while before they filter to
 the HLLs like Pipp.

 {{{
 <?php
 define('JPATH_BASE', dirname(__FILE__) );
 }}}

--

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/232#comment:2>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to