Hello Andi,
wow i didn't remember seeing that. So with default being a
reserved word to me it seems like one of the best choices.
Monday, July 12, 2004, 10:01:47 PM, you wrote:
> It's a reserved word so I doubt it'll break scripts.
> Andi
> At 05:37 PM 7/12/2004 +0200, Marcus Boerger wro
The file_get_contents() bug still seems to be present in the test roll, but
not in the latest snap:
Reproduce code (from the bug report for 29099):
--
#!/usr/bin/php
http://www.php.net/";);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$str1 = curl_exec($ch);
curl_close($ch);
$str
Adam Maccabee Trachtenberg wrote:
On Thu, 8 Jul 2004, Marc Richards wrote:
Are you saying PHP will never introduce an operator that doesn't already
exist in a large number of other languages?
I certainly hope not. (Well, I guess === and !=== are exceptions to
this statement.)
Compound Ternary op
Andi Gutmans <[EMAIL PROTECTED]> writes:
> I did a test roll of PHP 5.0.0 (without version change). Please download and
> make sure there are no serious show stoppers. You can grab it at
> http://snaps.php.net/~andi/
5.0.0 Test Roll is working fine for me, including the sqlite 2.8.14 upgrade.
Th
On Mon, 12 Jul 2004, John Coggeshall wrote:
> Not to bust everyone's bubble here, but frankly what is the point of a
> 90-100+ thread on this? I mean can't this just be implemented as a PHP
> function without all this discussion?
Maybe we should name the function bikeshed()? :)
http://www.unixgu
Not to bust everyone's bubble here, but frankly what is the point of a
90-100+ thread on this? I mean can't this just be implemented as a PHP
function without all this discussion?
Coogle.
--
-=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=-
John Coggeshall http://www
I guess this is too late for 5.0, and I feel like there is bound to be
opposition, but this has been bugging me for a while, so I figured I
would ask.
I use the alternative syntax for control structures almost exclusively
within my HTML code but I have to revert to braces for do...while. Why
c
Marc Richards wrote:
I also think that what Rasmus suggeted is a good idea:
"So, perhaps introduce the value() function which doesn't do any type
casting and enhance the intval(), strval() and floatval() functions to
act like value() but cast appropriately unless the default arg is
returned."
I
Jason Garber wrote:
MR> $level = value($_POST['level'], NULL, INT);
MR> switch($level){ MR> case 0: MR> echo "Welcome to level 0";
MR> break; MR> case 1: MR> echo "Welcome to level 1"; MR>
break; MR> case 2: MR> echo "Welcome to level 2"; MR> break;
MR> default: MR> echo "
* Thus wrote Rasmus Lerdorf:
>
> So, perhaps introduce the value() function which doesn't do any type
> casting and enhance the intval(), strval() and floatval() functions to act
> like value() but cast appropriately unless the default arg is returned.
> To retain backward compatibility the intval
MR> $level = value($_POST['level'], NULL, INT);
MR> switch($level){
MR> case 0:
MR> echo "Welcome to level 0";
MR> break;
MR> case 1:
MR> echo "Welcome to level 1";
MR> break;
MR> case 2:
MR> echo "Welcome to level 2";
MR> break;
MR> default:
MR> echo "That level is in
Jason Garber wrote:
Sunday, July 11, 2004, 10:48:06 PM, you wrote:
RL> On Sun, 11 Jul 2004, Jason Garber wrote:
The concept is desirable, but can be achieved if you need it just as
simply using already available syntax (ie a cast):
$level = (integer) value($_SESSION['level'], 1);
RL> The problem
I did a test roll of PHP 5.0.0 (without version change). Please download
and make sure there are no serious show stoppers. You can grab it at
http://snaps.php.net/~andi/
Edin, it might be a good idea for you to roll a test package too.
If all goes well, I'll do version changes and will roll the r
There was a bugfix that wasn't merged from the 4.3 branch.
Fixed in CVS now.
--Wez.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
> More info please... how big is a "certain size"?
for me, the "certain size" is right at 12kb. 12,000 bytes es ok; 12,001 no
es ok.
i would trace/step if i knew how.
> How about running "strace -e trace=net" ?
> Even better, can you sit down and step through and find out where the
> read is bei
It's a reserved word so I doubt it'll break scripts.
Andi
At 05:37 PM 7/12/2004 +0200, Marcus Boerger wrote:
Hello Derick,
Monday, July 12, 2004, 11:21:06 AM, you wrote:
> On Mon, 12 Jul 2004, Sebastian Bergmann wrote:
>> Andi Gutmans wrote:
>> > How about default($var, expr)?
>>
>> It might be a
More info please... how big is a "certain size"?
How about running "strace -e trace=net" ?
Even better, can you sit down and step through and find out where the
read is being cut short?
The thing is that file_get_contents() should not have been sensitive
to the greedy read problem (since it reads
works fine with the latest CVS-Snap for me
php5-win32-200407121430.zip Win2K Apache2
-- red
Curt Zirzow wrote:
* Thus wrote Antony Dovgal:
On Mon, 12 Jul 2004 15:00:09 +
Curt Zirzow <[EMAIL PROTECTED]> wrote:
* Thus wrote Andi Gutmans:
When did you try that? Did you check with latest CVS beca
Hello George,
Monday, July 12, 2004, 6:36:22 PM, you wrote:
> On Jul 12, 2004, at 11:37 AM, Marcus Boerger wrote:
>> Hello Derick,
>>
>> Monday, July 12, 2004, 11:21:06 AM, you wrote:
>>
>>> Agreed, and I also like default()
>>
>> The problem with default() is that there will be tons of scripts
* Thus wrote Antony Dovgal:
> On Mon, 12 Jul 2004 15:00:09 +
> Curt Zirzow <[EMAIL PROTECTED]> wrote:
>
> > * Thus wrote Andi Gutmans:
> > > When did you try that? Did you check with latest CVS because Wez
> > > made some fixes.
> >
> > Just rechecked with current CVS version this morning and
Let's not end up like this.
http://www.ozonehouse.com/mark/blog/code/PeriodicTable.pdf
- Andrei
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
>>
>> The problem with default() is that there will be tons of scripts out
>> there
>> that will be broken by this. Hence i'd like to see a more non intuitive
>> name (like the ifsetor). Probably getvalue() was the best compromise so
>> far.
GS> what was wrong with nvl() (of oracle fame)?
ifset(
Weird, maybe the commit failed. I just commited it again.
At 01:25 AM 7/12/2004 -0700, Kamesh Jayachandran wrote:
I could not see the patch yet.
With regards
Kamesh Jayachandran
On Sun, 11 Jul 2004 23:26:54 -0700, "Andi Gutmans" <[EMAIL PROTECTED]> said:
> You seem to be right. I commited a patch.
On Jul 12, 2004, at 11:37 AM, Marcus Boerger wrote:
Hello Derick,
Monday, July 12, 2004, 11:21:06 AM, you wrote:
Agreed, and I also like default()
The problem with default() is that there will be tons of scripts out
there
that will be broken by this. Hence i'd like to see a more non intuitive
name
it's broken for me too using latest snap: php5-win32-200407121430
file_get_contents('http://php.net/');
> On Mon, 12 Jul 2004 15:00:09 +
> Curt Zirzow <[EMAIL PROTECTED]> wrote:
>
>> * Thus wrote Andi Gutmans:
>> > When did you try that? Did you check with latest CVS because Wez
>> > made som
Hello Derick,
Monday, July 12, 2004, 11:21:06 AM, you wrote:
> On Mon, 12 Jul 2004, Sebastian Bergmann wrote:
>> Andi Gutmans wrote:
>> > How about default($var, expr)?
>>
>> It might be a good idea to decide on a name for the construct before
>> the PHP 5.0.0 release in order to make it a r
On Mon, 12 Jul 2004 15:00:09 +
Curt Zirzow <[EMAIL PROTECTED]> wrote:
> * Thus wrote Andi Gutmans:
> > When did you try that? Did you check with latest CVS because Wez
> > made some fixes.
>
> Just rechecked with current CVS version this morning and the
> problem still persists.
>
> Not only
* Thus wrote Andi Gutmans:
> When did you try that? Did you check with latest CVS because Wez made some
> fixes.
Just rechecked with current CVS version this morning and the
problem still persists.
Not only is it comming back with partial content, there seems to be
blocks of ^@ chars between the
Marc Richards wrote:
3) So this leaves a function call which begs two questions: What do we
call it, and what is the function syntax.
(a) What do we call it
We have a function that pretty much serves the same purpose:
makeset($var, 'default').
The name was born because this function was made to
On Mon, 12 Jul 2004, l0t3k wrote:
>
> "Andi Gutmans" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > How about default($var, expr)?
> my only reservation is that "default" is already part of a language
> construct :
...
> i'd say use defaultvalue
Too long IMO.
Derick
--
PHP
"Andi Gutmans" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> How about default($var, expr)?
my only reservation is that "default" is already part of a language
construct :
switch ($param = $_GET["param"]) {
case "foo" : bar(); break;
case "this" : that();
On Mon, 12 Jul 2004, Derick Rethans wrote:
> You should *never* do that, always use cvs diff + patch + cvs commit to
> revert changes. "cvs admin" is dangerous and should only be used if you
> are REALLY sure what you are doing.
Ok, sorry.
--
PHP Internals - PHP Runtime Development Mailing Lis
On Mon, 12 Jul 2004, Marco Cucinato wrote:
> > > Whooops... dunno what happened
> > > perhaps the CVS directory got copied from the EN section...
> > > I'm reverting them now.
> >
> > I did not see the revert commit message, can you please check?
>
> Yes, i did a "cvs admin" and deleted the la
I am maintainer of the new PEAR Package File_Formats::Bittorrent and I want to
administrate the code in PHP CVS.
http://pear.php.net/pepr/pepr-proposal-show.php?id=100
So access is needed to File/Bittorrent
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http:/
On Mon, 12 Jul 2004, Sebastian Bergmann wrote:
> Andi Gutmans wrote:
> > How about default($var, expr)?
>
> It might be a good idea to decide on a name for the construct before
> the PHP 5.0.0 release in order to make it a reserved word (marked for
> future use).
Agreed, and I also like def
On Fri, 9 Jul 2004, Wez Furlong wrote:
> Stas already came up with a solution for the non-oo api; it probably
> just needs porting to the oo interface.
It already is it seams, the execQuery() method. Though I still don't
like the way how things are working :)
regards,
Derick
--
PHP Internals -
I could not see the patch yet.
With regards
Kamesh Jayachandran
On Sun, 11 Jul 2004 23:26:54 -0700, "Andi Gutmans" <[EMAIL PROTECTED]> said:
> You seem to be right. I commited a patch. Please take a look and see if
> it
> solves your problems.
>
> At 11:02 PM 7/11/2004 -0700, Kamesh Jayachandran
37 matches
Mail list logo