Re: [PHP-DEV] Globals unavailable, require oddity

2005-10-14 Thread Derick Rethans
On Thu, 13 Oct 2005, Antony Dovgal wrote: > On 13.10.2005 20:51, Marcus Bointon wrote: > > > in a.inc.php: > > > > > $a = 1; > > ?> > > > > in b.class.php: > > > > > require 'a.inc.php'; > > class b { > > function test() { > > global $a; > > echo $a; > > } > > } >

Re: [PHP-DEV] Re: Globals unavailable, require oddity

2005-10-14 Thread Marcus Bointon
On 14 Oct 2005, at 07:07, Unknown W. Brackets wrote: If you include a file within a function, that file will be loaded in that function's scope. Example: The same happens if b.class.php is included within a function (or class member, etc.) and includes a.inc.php, as in your example (I am

Re: [PHP-DEV] Re: Globals unavailable, require oddity

2005-10-14 Thread Derick Rethans
On Fri, 14 Oct 2005, Marcus Bointon wrote: > I'm aware of how it's supposed to work, but the problem is that it's doing > something very screwy for me and not working like it should. Because it's so > different to how it normally works, I can only conclude that it's a php.ini > problem (though I c

[PHP-DEV] Bug #30931 is_writable() and is_readable() return false when access is permitted via ACL

2005-10-14 Thread Cristiano Duarte
This bug has many comments waiting for answer. Can someone, please, take a look at it? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] milestone

2005-10-14 Thread Davey Shafik
Jani Taskinen wrote: On Thu, 13 Oct 2005, Lukas Smith wrote: Jani Taskinen wrote: Unnecessary, you can tell the user within the closing comment in which branches you fixed the bug. Don't forget that it can CHANGE later, someone reverts the fix or the fix wasn't needed or.. y

[PHP-DEV] patch to make mysql select correct encoding on client libraries.

2005-10-14 Thread scuzzy
Hi, I've attached a patch, that will allow people to be able to change the client default encoding type, as this was not possible before. I looked through the php mysql client source, and found no traces of something that could actually set the default client encoding type. basically mysql_options(

[PHP-DEV] report of date functions on windows

2005-10-14 Thread Nuno Lopes
Hi, In the last hours I've been debugging and testing the new implementation of the date related functions on windows. I've found some little problems: 1) timelib_tz_lookup_table defines the gmtoffset as an int, but in the fallback table there are some decimals numbers. So, either remove thos