Re: [PHP-DEV] [PATCH] Scalar type hinting ;)

2006-11-08 Thread Richard Quadling
My suggestion was to introduce type hinting gradually. First of all type hints, would be just that, hints. A suggestion as to the recommended type. If hints are used and the types do not agree, then this is an E_NOTICE. If you are using hints then you are expecting the types to be right. If you do

Re: [PHP-DEV] Re: Problems with 301 redirects

2006-11-08 Thread Edin Kadribasic
[EMAIL PROTECTED] wrote: >>> header("Location: http://...",false,301); >>> >> This works here with PHP 5.1.7-dev and 5.2.1-dev and mod_fastcgi. >> Have you tried just that line? Without any HTTP/-header? >> > > I've tried every combination. Just tried it again and it still returns a 302

[PHP-DEV] CVS Account Request: antoniojoser

2006-11-08 Thread Antonio Rodriguez Linares
Afianzar mas mis conocimientos y algun dia poder certificarme en PHP. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] array/HashTable filling optimization

2006-11-08 Thread Dmitry Stogov
The patch is fine. I applied it. Dmitry. > -Original Message- > From: Ilia Alshanetsky [mailto:[EMAIL PROTECTED] On Behalf Of > Ilia Alshanetsky > Sent: Tuesday, November 07, 2006 11:35 PM > To: Matt Wilmas > Cc: internals@lists.php.net; Dmitry Stogov > Subject: Re: [PHP-DEV] array/HashT

[PHP-DEV] Newbie question: zend_hash_find

2006-11-08 Thread Arnold Daniels
Hi, I'm new at PHP internals and have read the 'Extension Writing' tutorial (part 1-3) of devzone.zend.com. I'm writing a set of parsers, to parse different kind of configuration formats. The first is an .ini parser. The code almost works correctly. The only problem I have is that sections ge

[PHP-DEV] Re: Newbie question: zend_hash_find

2006-11-08 Thread M.Sokolewicz
hi, Have you tried looking at how the parse_ini_file function works? that should answer your questions on this. - tul Arnold Daniels wrote: Hi, I'm new at PHP internals and have read the 'Extension Writing' tutorial (part 1-3) of devzone.zend.com. I'm writing a set of parsers, to parse di

RE: [PHP-DEV] Re: Newbie question: zend_hash_find

2006-11-08 Thread Arnold Daniels
Hi again, Well I first though of copying and changing parse_ini_file. But the implementation of the function is located in the zend core, spread out of 3 files and does all kind of strange things with global variables. My C skills are ok but not great and I've got next to no experience in writin

Re: [PHP-DEV] Newbie question: zend_hash_find

2006-11-08 Thread Matt Wilmas
Hi Arnold, zend_hash_find() is always returning FAILURE because its "key_length" parameter *includes* the terminating '\0'. :-) So you need strlen(key) + 1. BTW, are any of your keys going to have numeric values ([123] sections etc.)? Then you'll also have a problem with hash_find() as it doesn

[PHP-DEV] Optimization for ..._MULTIPLY_LONG on more systems

2006-11-08 Thread Matt Wilmas
Hi, Here's an additional ZEND_SIGNED_MULTIPLY_LONG() for platforms with 32-bit longs that don't use the assembly version (so all Windows systems at least?). On my Windows system, mul_function() is 40% faster with this version (no overflow), which makes PHP's * operator 20% faster; with overflow m

RE: [PHP-DEV] Optimization for ..._MULTIPLY_LONG on more systems

2006-11-08 Thread Andi Gutmans
Nice patch! Looks good to me... Any other thoughts? > -Original Message- > From: Matt Wilmas [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 08, 2006 8:47 PM > To: internals@lists.php.net > Subject: [PHP-DEV] Optimization for ..._MULTIPLY_LONG on more systems > > Hi, > > Here's a