[PHP-DEV] date('w') return type

2004-06-08 Thread dharana
I know I can just cast to int, but is it ok to return an string for things that can only be numbers? prints false, but I expected it to return an int. Am I wrong? I imagine it's the same thing with the rest of date's return values. Btw, I don't hope it will be changed because it would probably bre

Re: [PHP-DEV] date('w') return type

2004-06-10 Thread dharana
I think I just smoked something illegal before posting that question. The brain damage seems to be gone, sorry for the spam. It just did made sense at that moment. Hartmut Holzgraefe wrote: dharana wrote: I know I can just cast to int, but is it ok to return an string for things that can only

Re: [PHP-DEV] Fwd: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_language_parser.y zend_language_scanner.l

2004-07-16 Thread dharana
Excuse my ignorance, but why does this breaks compatibility? Sterling Hughes wrote: > woops, discussion should be on [EMAIL PROTECTED] > > > -- Forwarded message -- > From: Sterling Hughes <[EMAIL PROTECTED]> > Date: Fri, 16 Jul 2004 00:11:53 -0700 > Subject: Re: [ZEND-ENGINE-CVS] c

Re: [PHP-DEV] Patch: Rasmus statcallpatch with configure option

2004-09-15 Thread dharana
Rasmus Lerdorf wrote: > Derick and I are both deploying controlled code on a huge scale and > turning off edge-case stuff we know we will never use can make a big > difference. Even a 1 or 2 req/sec difference is significant when you > serve up billions of pages a day. A good example of that is t

Re: [PHP-DEV] Copying HTML from a document to another document

2004-09-19 Thread dharana
http://www.catb.org/~esr/faqs/smart-questions.html Sam Hobbs wrote: "Christian Stocker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I did try many things, including importNode. I did look at the documentation as much as I can. I looked at many other sites. I converted the PHP cod

Re: [PHP-DEV] PHP 5.1 time() caching

2004-10-22 Thread dharana
Ilia Alshanetsky wrote: As of PHP 5.1, the request start time is stored by PHP inside the sapi structure. This data is populated by the information offered by the SAPI (Apache sapis populate it) otherwise time(0) is used to get the same data. This means that PHP has a "free" unix timestamp that

Re: [PHP-DEV] DOM Examples?

2004-01-07 Thread dharana
classes (node, nodeList, etc). I hope this helps, Ken Tossell wrote: Hey Internals, Would anyone be able to write, or point me to, some examples for using the new DOM extension? I'm looking to do some documenting, but I need to know how to use our implementation first. Thanks, Ken -- dh