following another of those long silences for which the internals list is becoming famous, joe committed his patch a few days later. he mailed the list once more, this time asking hans – and any other interested party – to test the new configuration option and to get back to him directly if there were any problems with it, as he hadn´t been able to test every pecl extension himself. 【程序编程相关:用正则表达式得到网页上的链接】
hans zaunere of the new york php group wrote in to ask whether there was as yet a solution to the amd64/suse configuration issues he´d highlighted a couple of weeks ago. joe orton replied, saying that there had been no objections to his --with-libdir patch and he would commit it at the end of the week if this continued to be the case. 【推荐阅读:ORACLE应用中常见的傻瓜问题1000】
tlk: negative string offset continued 【扩展信息:stan lippman 对中国程序员的】short version: run ./configure --with-libdir and then e.g. --with-mysql=/usr to pick up mysql libs stored in /usr/lib64.
mike ford wrote in to add his opinion to the ongoing debate; [] is marked as deprecated in the php manual so should be completely dropped by php 6.0 if it was separated fully from {}, and he would dearly love to see $string{-1} introduced to the language. he´d also like to see substr() functionality folded into $string{x, x}, and the introduction of $string{$a:$b} to mean ´from offset $a to offset $b´, but understood that this was potentially confusing syntax. andrey hristov pointed out that substr_replace($string, $a, $b) already existed and he didn´t see any need for mike´s $string[$a:$b]on syntactical grounds. ilia alshanetsky said that using substr_replace() for the purpose of changing one char was "like using a tank for a flyswatter". he also argued for $string{-1}, pointing out that it was simpler to use – as well as much faster – than either substr($string, -1) for read or $string[strlen($string) - 1] for write, both of which are the current equivalents in php.
john coggeshall didn´t care about speed, saying that this would account for a very small portion of it, but backed the introduction of $string{-1}, as a matter purely of syntax.
... 下一页