Re: [PHP-DEV] imap4 search criteria
There's an open bug on this, #15238 (http://bugs.php.net/bug.php?id=15238;). I'm sure patches would be welcomed. On Fri, Jan 29, 2010 at 03:49:18PM -0500, Dominik Gehl wrote: Hi, I noticed that the imap extension seems to support only IMAP2 search criteria. This is caused by the fact that in ext/imap/php_imap.c, the imap_search function uses a call to mail_criteria. And the University of Washington IMAP toolkit mentions in docs/internal.txt: SEARCHPGM *mail_criteria (char *criteria); criteria IMAP2-format search criteria string This function accepts an IMAP2-format search criteria string and parses it. If the parse is successful, it returns a search program suitable for use in mail_search_full(). WARNING: This function does not accept IMAP4 search criteria. Is there any specific reason why PHP uses this mail_criteria call ? It really would be nice to be able to use IMAP4 search criteria ! Thanks, Dominik -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] About optimization
On Sat, January 23, 2010 2:26 pm, steve wrote: The guys at Zend muscled in to change the culture as well, and have I'm not sure that's a fair representation of the historical reality of how Zend came into existence... succeeded to a large degree, pushing PHP into the enterprise by offering a full version of PHP, not free of course. And thus the And that doesn't even make any sense at all. What Zend product are you claiming is a full version of PHP? And how is the non-Zend PHP not full? reason for not having a byte code cache in the core. And the whole optimizer which was their decoder part of their encoder project was just making bad karma. Bundling the decoder into the optimizer may not have been the best move ever... Enough time has passed for a new round to wrestle control. We'll see how the FBJIT goes. Which just goes to show, if you really want something done, put some muscle into, take over or fork. Or keep to yourself. Sounds good. Which are you doing? :-) -- Some people ask for gifts here. I just want you to buy an Indie CD for yourself: http://cdbaby.com/search/from/lynch -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Dots and spaces in variable names are converted to underscores.
I have taken the liberty of making an RFC for this: http://wiki.php.net/rfc/url_dots Feel free to add/edit it as fit, particularly since it's my first use of that RFC wiki, and I'm not good at wiki markup, and I probably missed something from this thread. I intentionally left out the ?a_b=1a.b=2 because that seemed to me to be beyond the scope, since ?a_b=1a_b=2 is equally problematic in PHP... That said, I am now leaning towards not trying to be BC, and just dropping 'a_b' entirely. It seems unlikely that anybody doing anything sane to attempt to reconstruct their original keys is going to be hurt by PHP not messing them up anymore. Most likely, their revisionary code is simply not going to find any 'a_b' to blindly revert to 'a.b' anymore, and the 'a.b' is going to just sail through. Of course, their a.b might be a^b or a*b or whatever, but whatever it is, PHP not messing it up will just mean their code won't find anything to un-do any more. I did think of one other issue though: There may be some really funky character that is valid in the URL, but that is not kosher for an array/hash key which is currently being masked... It would still have to be masked if such a character exists... I can't think of any such character, but what with i18n of DNS records and whatnot these days, I am woefully ignorant of what might be in the keys. I put that into the RFC already. -- Some people ask for gifts here. I just want you to buy an Indie CD for yourself: http://cdbaby.com/search/from/lynch -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] About optimization
The gc code when combined with apc is still a bit shaky in 5.3. I haven't figured out why yet. And my motivation for figuring it out is pretty low as code that relies on gc is slow. -Rasmus Motivation for relying on GC in 5.3 is pretty low because 5.3 is still a bit shaky... -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] newbie: my extension not getting compiled/included in Php-5.3.1 (RH linux)
I am new to Php-dev and trying to add an extension to Php I downloaded php-5.3.1 src on RedHatLinux4 . After adding my extension, the configure/make doesn't build my extension and include in Php. commands that I ran after unzipping the php5.3.1 src: cd ext ./ext_skel --extname=pdo-mydbext enabled in pdo-mydbext/config.m4 cd .. ./buildconf --force ./configure --enable-pdo-mydbext make My issue: No objects are compiled for my pdo-mydbext. In fact, seeing the output of ./configure on screen, I can see that my ext didn't called in extensions list. .. whether to enable pdo-myext ... didn't get displayed by ./configure make didn't build myext. What do I need to add my extension(to be compiled, and so on..) thanks, -sanjeev
Re: [PHP-DEV] newbie: my extension not getting compiled/included in Php-5.3.1 (RH linux)
Hello, Please attach your config.m4 file which will help understand what's wrong. You should also try to compare yours with an existing one, maybe the problem will become apparent simply by comparison. May the source be with you, Best regards, Jess Portnoy Sanjeev Kumar wrote: I am new to Php-dev and trying to add an extension to Php I downloaded php-5.3.1 src on RedHatLinux4 . After adding my extension, the configure/make doesn't build my extension and include in Php. commands that I ran after unzipping the php5.3.1 src: cd ext ./ext_skel --extname=pdo-mydbext enabled in pdo-mydbext/config.m4 cd .. ./buildconf --force ./configure --enable-pdo-mydbext make My issue: No objects are compiled for my pdo-mydbext. In fact, seeing the output of ./configure on screen, I can see that my ext didn't called in extensions list. .. whether to enable pdo-myext ... didn't get displayed by ./configure make didn't build myext. What do I need to add my extension(to be compiled, and so on..) thanks, -sanjeev -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php