Re: [PHP-DEV] Can we call Apache 2 API function from a PHP 5 extension module?

2010-01-16 Thread mm w
yep nevermind I don't you post this question on php-internal and don't understand this ugly suggestion, Brian when I read your cv it seems to be something serious ... when I see the line with your type recasting I am not sure you understood something during these 15 years. Best On Sat, Jan 16, 2

Re: [PHP-DEV] __toString(), __toArray()

2010-01-12 Thread mm w
y magics, I'm worried your knowledge of social skills? Theirs > people be your friends? Weird > > On Jan 12, 2010 9:10 PM, "mm w" <0xcafef...@gmail.com> wrote: > > I don't move any magics,I am worried about your knowledge of php, > there's people to give

Re: [PHP-DEV] __toString(), __toArray()

2010-01-12 Thread mm w
y ) > > I would definitely love to be able to, at the very least, cast an object to > an array but I figured a more general purpose __cast() would be most > beneficial to all. > > I think the ambiguity question for some functions accepting mixed as a > parameter type could be solved i

Re: [PHP-DEV] __toString(), __toArray()

2010-01-12 Thread mm w
he amount of > magic, only obfuscate it.  And it certainly offers no alternative to > "__cast", at least not that I can see. > > On Tue, Jan 12, 2010 at 9:11 PM, mm w <0xcafef...@gmail.com> wrote: >> the multiplication of magic, the pointed point, need to read more ca

Re: [PHP-DEV] __toString(), __toArray()

2010-01-12 Thread mm w
the multiplication of magic, the pointed point, need to read more carefully On Tue, Jan 12, 2010 at 6:10 PM, Eddie Drapkin wrote: > How does this have *anything* to do with the discussion at hand? > > On Tue, Jan 12, 2010 at 9:09 PM, mm w <0xcafef...@gmail.com> wrote: >>

Re: [PHP-DEV] __toString(), __toArray()

2010-01-12 Thread mm w
t-object-built-in-class that is naturally observable, or a root classObject at all, anyway it's only something for people who are doing OO programming, so don't worry On Tue, Jan 12, 2010 at 2:40 PM, Chris Stockton wrote: > Hello, > > On Mon, Jan 11, 2010 at 8:32 PM, mm w <0xcaf

Re: [PHP-DEV] __toString(), __toArray()

2010-01-11 Thread mm w
cast is not needed in PHP i 'd rather be more interesting in class Obj { function __catch($data, $type) { //$type [ static_method, method, get_property, set_property] if (observed && $type == set_property && somevalueIsObserved) { $observer->notify(

Re: [PHP-DEV] php for android

2010-01-10 Thread mm w
so why not patching the configure.in ? // give the possibility to add other embedded targets and be able to manage next versions --with-embedded-target=droid- --with-embedded-ldflags= // toolchain ldflags --with-embedded-cflags= // toolchain cflags --with-embedded-cppflags= // toolchain cppfla

Re: [PHP-DEV] array position isfirst / islast / valid ?

2010-01-02 Thread mm w
reversed = $reversed; $this->arr = $arr; if ($this->reversed) { end($this->arr); } } public function first() { if ($this->reversed) { $cnt = count($this->arr);

Re: [PHP-DEV] PHP6's future

2009-12-31 Thread mm w
Those things were already deprecated, it's good thing that php 5.3 finally broke bad code, php 5 (since the first alpha) is there since a while, drupal is drupal if folks don't want to fix it, what's the big deal there? just pach it yourself it's open source isn't it? so nothing stop you to fork,

Re: [PHP-DEV] [PATCH] Fix for 32 bits limit on file size (see bug 48886)

2009-12-22 Thread mm w
Thx, yep a long convertion, not a big deal, we don't work with 4.3GB files :-D, well minded people try to avoid that On Tue, Dec 22, 2009 at 7:10 AM, X Ryl wrote: > Hi, > >  I'm not a C developer, so I can't really help with the attached patch. > However, I've tried it with PHP 5.3.0 version I h

Re: [PHP-DEV] How does the interpreter work

2009-12-21 Thread mm w
Pas mieux, and I am sure johannes did not find the need to express himself and/or these mind limitations on his blog :) harf I am so bad I know. -mmw 2009/12/21 Johannes Schlüter : > Hi, > > On Mon, 2009-12-21 at 14:56 +0100, Christian Grobmeier wrote: >> I would like to learn more about how th

Re: [PHP-DEV] How does the interpreter work

2009-12-21 Thread mm w
Hello, this document is clearly outdated and for me so far confuse just gave a try for 5 mins, and I am worry about the printf tech, lucky you are not to be in multi-thread env..., at least fprintf on the stderr to read un-buffered results, those guys have a job? maybe greenhouse keepers certainly

Re: [PHP-DEV] is_a() versus instanceof

2009-12-19 Thread mm w
class rootObject { ... function isMemberOrInstanceOfClass($object) { $className = is_object($object) ? get_class($object) : $object; return ($this instanceof $className); } }; On Sat, Dec 19, 2009 at 2:20 AM, Johannes Mueller wrote: > Johannes "Schl

Re: [PHP-DEV] suggestion about ternary operator

2009-11-21 Thread mm w
More interesting behaviors to dig are there: variable = ?? ; variable = ? : ?? ; or a la javascript variable = || ; Best, On Sat, Nov 21, 2009 at 10:21 AM, Rasmus Lerdorf wrote: > Alban wrote: >> Le Sat, 21 Nov 2009 09:48:10 +0100, Lukas Kahwe Smith a écrit : >> >>> On 21.11.2009, at 0

Re: [PHP-DEV] Intervals representation with brackets

2009-11-20 Thread mm w
s, and somehow Ijust trolled you like you did, so please we are people we need a context. Best, On Fri, Nov 20, 2009 at 2:22 PM, Samuel ROZE wrote: > Hi, > > This isn't bad, but it's not really what i want, and... what I wrote! ;-) > > Samuel. > > 2009/11/20 mm w

Re: [PHP-DEV] Intervals representation with brackets

2009-11-20 Thread mm w
http://code.google.com/p/foundation-kit/source/browse/trunk/FKRange.php http://code.google.com/p/foundation-kit/source/browse/trunk/FKIndexSet.php On Fri, Nov 20, 2009 at 1:56 PM, Samuel ROZE wrote: > Hello, > > I'm working on two classes, Interval and IntervalList which describe > an interval an

Re: [PHP-DEV] RFC: Custom Factories (SPL)

2009-11-18 Thread mm w
what you call factory objects are "more" proxy objects, please make the difference, semantics are sometimes important. anyway , what I can read this document is a bit a mess, it needs to be split by "topic", your approach is really confuse. Best, On Wed, Nov 18, 2009 at 8:06 AM, Robert Lemke wr

Re: [PHP-DEV] Request for Karma

2009-11-15 Thread mm w
then an embedded karma is granted karma On Sun, Nov 15, 2009 at 1:14 PM, Pierre Joye wrote: > Hi! > > I second this request as well :) > > On Sun, Nov 15, 2009 at 9:51 PM, Pierrick Charron > wrote: >> Hi, >> >> Felipe suggested me to request Karma for php-src to do bug fixing. My >> SVN usernam

Re: [PHP-DEV] Regarding constructions like func()[0]

2009-11-07 Thread mm w
Hi Melfar, from my point of view I am totally to make this a legal call like in python or ruby java, as I liked compact code I liked to avoid temp vars especially on a read-only call, but it might require some effort there and the final patch might be not so simple, anyway this is a community call,

Re: [PHP-DEV] Feedback requested on using #defines to improve the performance of the TSRMG macro

2009-11-05 Thread mm w
so should be a UUID rather than a user defined int you cannot avoid collision with your system, it's a dangerous way to go. Best, On Thu, Nov 5, 2009 at 11:20 AM, Arvind Srinivasan wrote: >> Does the GLOBALS_ID_BASE idea work?  In >> "ts_allocate_reserved_id(GLOBALS_ID_BASE+1...)" each extension

Re: [PHP-DEV] PHP socket automatically shuts down after ? hours of idling?

2009-11-01 Thread mm w
Hi what is your platform ?2. Provide a working, migth be a recent problem regarding x socket, can you observe and dump your tcp connexion? On Sunday, November 1, 2009, Chris Jiang wrote: > Hi Hannes, > > It just shuts down the socket server without any error, warning or notice. > I'm sorry tha

Re: [PHP-DEV] Where is the EG macro defined?

2009-10-28 Thread mm w
grep is your friend, something like that grep -R "define EG(" /usr/include/php/Zend, it's a quite common issue you crossed Best On Wed, Oct 28, 2009 at 3:03 PM, Graham Kelly wrote: > Hi, > > You might find http://lxr.php.net to be a useful tool to help with finding > definitions in the PHP code

Re: [PHP-DEV] bug when using foreach with references?

2009-10-21 Thread mm w
Richard, enumerator exhausted, repeat your sub-sequence again you will get it e.g pointer and pointed Best Regards On Wed, Oct 21, 2009 at 7:01 PM, Richard K Miller wrote: > Hi Jill, > >>> >> $items = array('apple', 'banana', 'carrot'); >>> print_r($items); >>> foreach ($items as &$item) { } >>