User Tools

Site Tools


hd:working_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
hd:working_notes [2005/10/12 21:46] – (old revision restored) 127.0.0.1hd:working_notes [2012/01/13 15:40] fgm
Line 1: Line 1:
  
   * per-user settings can be stored in a more or less standard way using hook_user and/or user_save   * per-user settings can be stored in a more or less standard way using hook_user and/or user_save
- 
   * something strange in PHP. It seems that global arrays defined in an INCLUDED files are local to the included file and their range disappears in the including file:   * something strange in PHP. It seems that global arrays defined in an INCLUDED files are local to the included file and their range disappears in the including file:
  
-<php>+<code php>
 <?php <?php
 // foo.php // foo.php
- 
 $ar = array('alice', 'bob') ; $ar = array('alice', 'bob') ;
  
Line 16: Line 14:
   }   }
 ?> ?>
-</php>+</code>
  
-<php>+<code php>
 <?php <?php
 // bar.php // bar.php
Line 25: Line 23:
 baz(); baz();
 ?> ?>
-</php>+</code>
  
-<php>+<code php>
 <?php <?php
 // qux.php // qux.php
 require 'foo.php'; require 'foo.php';
- 
 baz(); baz();
 ?> ?>
-</php>+</code>
  
   * qux.php displays True as expected.   * qux.php displays True as expected.
-  * bar.php displays False instead of True as would seem logical. To be examined in more detail.+  * bar.php displays False (???) 
 +  * bug, feature, or test error ?
   * Tested with PHP 5.0.4   * Tested with PHP 5.0.4
- 
hd/working_notes.txt · Last modified: 2020/11/23 17:23 by 127.0.0.1