Re: [PHP-DEV] Bringing the 'include' discussion to an end

2005-06-30 Thread Shaun Thomas
Russell Nelson wrote: Okay, I'm leaving for vacation in 7 hours. I'd like to bring the 'include' discussion to an end. There have been a lot of weak points made... Russell, no offense, but the developers, and many random other people have attempted to stop this conversation many times. Thi

Re: [PHP-DEV] allow_url_fopen should be INI_ALL

2005-06-29 Thread Shaun Thomas
[EMAIL PROTECTED] wrote: Please troll, do you go away if I close my eyes? That's not fair. Russell is providing strong arguments and rebuttals for every point. You may not agree with his points, but what he's doing is not trolling. This discussion seems to have strong backing on both sides

Re: [PHP-DEV] PHP broken pipe in fork

2004-11-17 Thread Shaun Thomas
[EMAIL PROTECTED] wrote: The child process doesn't use any database connection, just to run some shell scripts, but it closes the connection anyway. You still don't get it. As a fork, the child process has all of the same resources as the parent before the fork occurred. When the child exits,

Re: [PHP-DEV] PHP broken pipe in fork

2004-11-16 Thread Shaun Thomas
[EMAIL PROTECTED] wrote: I'm using a query in loop and go through all records to do some operations in the middle of the script i fork(); to do other things When i return to the parent process i try to make one update and i get the following error [nativecode=Unable to complete network request to h

Re: [PHP-DEV] SQLite security

2004-08-23 Thread Shaun Thomas
Ilia Alshanetsky wrote: An Sqlite database is nothing more then a binary file, and you should treat it such. If you do not want to have people being able to download it, do not put it inside a web accessible directory. Or, don't forget the existance of .htaccess files. Want to block sqlite file

Re: [PHP-DEV] GOTO operator

2004-07-30 Thread Shaun Thomas
Hartmut Holzgraefe wrote: The JAVA approach is even superior to PHPs "break n;" where n has to be an integer and you have to be very carefull to not wrap another loop around the break but within the loop supposed to be broken Very true. Labeled breaks would be the "goto" that people seem to want

Re: [PHP-DEV] GOTO operator

2004-07-30 Thread Shaun Thomas
Jeff Moore wrote: function pseudocode() { try { $a = allocate_resource_z(); $b = allocate_resource_y(); $res = do_stuff(); $c = allocate_resource_x(); $res = do_more_stuff(); $d = allocate_resource_foo(); $res = do_even_more_stuff();

Re: [PHP-DEV] GOTO operator

2004-07-30 Thread Shaun Thomas
Paul G wrote: function pseudocode() { $a=allocate_resource_z(); $b=allocate_resource_y(); $res=do_stuff(); if(!$res) goto err_out; $c=allocate_resource_x(); $res=do_more_stuff(); if(!$res) goto err_out; $d=allocate_resource_foo(); $res=do_even_mor

Re: [PHP-DEV] RE : [PHP-DEV] variable_exists() patch

2003-08-19 Thread Shaun Thomas
On Wed, 20 Aug 2003, Stefan Walk wrote: > Won't work. > [EMAIL PROTECTED]:~$ php -r 'var_dump(isset($var) || is_null($var));' > > Notice: Undefined variable: var in Command line code on line 1 > bool(true) Ah yes. I was writing from the perspective of having set a value to null beforehand. M

Re: [PHP-DEV] RE : [PHP-DEV] variable_exists() patch

2003-08-19 Thread Shaun Thomas
On Tue, 19 Aug 2003, fabrice wrote: > Empty($var) ? DoSomethingIfNotSetOrNull() : DoOther(); That won't work. empty() will return true if the variable is set to a literal zero, false, blank, or null. So for your use, it's actually worse than isset assuming your data can have zeros or blank val