Re: [PHP-DEV] [RFC] E_USER_DEPRECATED

2008-07-20 Thread James Dempster
+1 from me in PHP 5.3 deprecation notices have been split of from E_STRICT into E_DEPRECATED On Sun, Jul 20, 2008 at 6:45 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Sat, Jul 19, 2008 at 4:55 AM, Lars Strojny [EMAIL PROTECTED] wrote: Hi everbody, regarding my mail from yesterday, I've

Re: [PHP-DEV] [RFC] E_USER_DEPRECATED

2008-07-20 Thread Gwynne Raskind
On Jul 19, 2008, at 6:55 AM, Lars Strojny wrote: Hi everbody, regarding my mail from yesterday, I've also created an RFC for the new error level. http://wiki.php.net/rfc/e-user-deprecated-warning cu, Lars A large +1 from me too. -- Gwynne, Daughter of the Code This whole world is an asylum

Re: [PHP-DEV] New string functions: str_startswith() and str_endswith()

2008-07-20 Thread Stan Vassilev | FM
Hi, Actually starts with and ends with is a very common case. I see your concerns, but I can see instantly quite a lot of places in my code where I'd use those. And I bet it'll be faster too. Many of the string functions can be replicated with one-liners using other string functions, same

Re: [PHP-DEV] New string functions: str_startswith() and str_endswith()

2008-07-20 Thread Rasmus Lerdorf
I agree that many existing functions can be implemented with a combination of others, but in this case it is really just one call. The strlen() call is almost free, and in many cases you wouldn't even use it. If you are looking for .php files, for example: if(str_endswith($path,'.php'))

[PHP-DEV] Syscall Optimization

2008-07-20 Thread Rasmus Lerdorf
On most requests we end up with a getcwd() followed by a chdir() to the same directory and then a second chdir() to the same directory at the end of the request: getcwd(/var/www, 4095) = 14 chdir(/var/www) = 0 ... request is processed ... chdir(/var/www)

Re: [PHP-DEV] [RFC] E_USER_DEPRECATED

2008-07-20 Thread Nathan Nobbe
On Sun, Jul 20, 2008 at 2:02 PM, Lukas Kahwe Smith [EMAIL PROTECTED] wrote: On 20.07.2008, at 07:45, Nathan Nobbe wrote: On Sat, Jul 19, 2008 at 4:55 AM, Lars Strojny [EMAIL PROTECTED] wrote: Hi everbody, regarding my mail from yesterday, I've also created an RFC for the new error

Re: [PHP-DEV] [RFC] E_USER_DEPRECATED

2008-07-20 Thread Lukas Kahwe Smith
On 20.07.2008, at 22:19, Nathan Nobbe wrote: and anyway, there are other examples as well, for example mktime(), PHP Strict standards: mktime(): You should be using the time() function instead in ... would this be another candidate to port to E_DEPRECATED ? so i imagine there will be

[PHP-DEV] Patch for #44301

2008-07-20 Thread Martin Jansen
Attached is a patch plus test case for bug #44301. The patch is for the PDO_OCI that comes with the PHP_5_3 branch, but it should fit for HEAD, too. Martin Index: oci_statement.c === RCS file: