Re: [PHP-DEV] Bug #20460 (Feature Request)

2002-11-30 Thread Stig S. Bakken
On Wed, 27 Nov 2002, Derick Rethans wrote: On Wed, 27 Nov 2002, Sara Pollita Golemon wrote: User complains that maximum length of a line used by fscanf is too short (he has lines 1600 chars). Looking at file.h I agree (it's only 512). The user requested two options: 1) Add an

Re: [PHP-DEV] Bug #20460 (Feature Request)

2002-11-30 Thread Derick Rethans
On Sat, 30 Nov 2002, Stig S. Bakken wrote: 4) Make sure we can use fscanf on a dynamically sized buffer. This will definitely the hardest solution, but also the most beautiful one. [4] is definitely the best option. formatted_print.c already does something similar. Stig, it's already

Re: [PHP-DEV] Bug #20308 (Feature Request)

2002-11-29 Thread Ilia A.
On November 29, 2002 01:05 am, Sara Golemon wrote: I disagree with this, the current behaviour is imho wrong. mailto: is a url, rejecting the patch because it introduces a special case, is not a good thing. parse_url() is for _all_ url's, not just http:// url's, and besides, the current

Re: [PHP-DEV] Bug #20308 (Feature Request)

2002-11-29 Thread Sara Golemon
It looks like php_url_parse can be modified to return user and host for mailto schemes without making it a 'special case', but that would also remove the current 'path' index which would break existing PHP code ((bad)). So we can (A) put in a special case, or (B) not modify the function at

Re: [PHP-DEV] Bug #20308 (Feature Request)

2002-11-29 Thread Wez Furlong
On Fri, 29 Nov 2002, Sara Golemon wrote: I'm not so much worried about the user in this case, a few explodes will keep them happy. I'm more worried about the behavior of parse_url being just plain lacking. mailto:[EMAIL PROTECTED]?subject=Bug+20308 should be entitled to everybit as much

Re: [PHP-DEV] Bug #20308 (Feature Request)

2002-11-29 Thread Ilia A.
On November 29, 2002 12:41 pm, Sara Golemon wrote: It looks like php_url_parse can be modified to return user and host for mailto schemes without making it a 'special case', but that would also remove the current 'path' index which would break existing PHP code ((bad)). So we can (A)

Re: [PHP-DEV] Bug #20308 (Feature Request)

2002-11-29 Thread Sara Golemon
I'm not so much worried about the user in this case, a few explodes will keep them happy. I'm more worried about the behavior of parse_url being just plain lacking. mailto:[EMAIL PROTECTED]?subject=Bug+20308 should be entitled to everybit as much parsing as http://joe:[EMAIL

Re: [PHP-DEV] Bug #20308 (Feature Request)

2002-11-28 Thread Sara Golemon
I disagree with this, the current behaviour is imho wrong. mailto: is a url, rejecting the patch because it introduces a special case, is not a good thing. parse_url() is for _all_ url's, not just http:// url's, and besides, the current syntax for mailto is completely valid, and should be

Re: [PHP-DEV] Bug #20460 (Feature Request)

2002-11-27 Thread Derick Rethans
On Wed, 27 Nov 2002, Sara Pollita Golemon wrote: User complains that maximum length of a line used by fscanf is too short (he has lines 1600 chars). Looking at file.h I agree (it's only 512). The user requested two options: 1) Add an optional length field. No way to do that without

Re: [PHP-DEV] Bug #20460 (Feature Request)

2002-11-27 Thread Sterling Hughes
User complains that maximum length of a line used by fscanf is too short (he has lines 1600 chars). Looking at file.h I agree (it's only 512). The user requested two options: 1) Add an optional length field. No way to do that without breaking parameter list. :( 2) Increase to a

Re: [PHP-DEV] Bug #20460 (Feature Request)

2002-11-27 Thread Moriyoshi Koizumi
Derick Rethans [EMAIL PROTECTED] wrote: On Wed, 27 Nov 2002, Sara Pollita Golemon wrote: User complains that maximum length of a line used by fscanf is too short (he has lines 1600 chars). Looking at file.h I agree (it's only 512). The user requested two options: 1) Add an

Re: [PHP-DEV] Bug #20460 (Feature Request)

2002-11-27 Thread Sterling Hughes
I don't like us adding a new ini entry for this, I think we should try another option: 4) Make sure we can use fscanf on a dynamically sized buffer. This will definitely the hardest solution, but also the most beautiful one. I like this fourth option, because the internal scanf

Re: [PHP-DEV] Bug #20460 (Feature Request)

2002-11-27 Thread Derick Rethans
On Thu, 28 Nov 2002, Moriyoshi Koizumi wrote: Derick Rethans [EMAIL PROTECTED] wrote: I don't like us adding a new ini entry for this, I think we should try another option: 4) Make sure we can use fscanf on a dynamically sized buffer. This will definitely the hardest solution, but

Re: [PHP-DEV] Bug #20460 (Feature Request)

2002-11-27 Thread Moriyoshi Koizumi
err. it didn't need a reimplementation, i fixed it, it works fine in cvs. Then, ?php $buf = 123 456 \0 567 sscanf($buf, %d%d%s%d, $a, $b, $c, $d); var_dump($a, $b, $c, $d); ? How about this? The result was the same as for fscanf. Moriyoshi -Sterling Moriyoshi Derick

Re: [PHP-DEV] Bug #20460 (Feature Request)

2002-11-27 Thread Sterling Hughes
err. it didn't need a reimplementation, i fixed it, it works fine in cvs. Then, ?php $buf = 123 456 \0 567 sscanf($buf, %d%d%s%d, $a, $b, $c, $d); var_dump($a, $b, $c, $d); ? How about this? The result was the same as for fscanf. Yes, but it didn't need a reimplementation

Re: [PHP-DEV] Bug #20460 (Feature Request)

2002-11-27 Thread Moriyoshi Koizumi
Sterling Hughes [EMAIL PROTECTED] wrote: err. it didn't need a reimplementation, i fixed it, it works fine in cvs. Then, ?php $buf = 123 456 \0 567 sscanf($buf, %d%d%s%d, $a, $b, $c, $d); var_dump($a, $b, $c, $d); ? How about this? The result was the same as

Re: [PHP-DEV] Bug #20460 (Feature Request)

2002-11-27 Thread Sara
Derick Rethans [EMAIL PROTECTED] wrote: I don't like us adding a new ini entry for this, I think we should try another option: 4) Make sure we can use fscanf on a dynamically sized buffer. This will definitely the hardest solution, but also the most beautiful one. I'll admit to not

Re: [PHP-DEV] Bug #20460 (Feature Request)

2002-11-27 Thread Sterling Hughes
Derick Rethans [EMAIL PROTECTED] wrote: I don't like us adding a new ini entry for this, I think we should try another option: 4) Make sure we can use fscanf on a dynamically sized buffer. This will definitely the hardest solution, but also the most beautiful one. I'll

Re: [PHP-DEV] Bug #20460 (Feature Request)

2002-11-27 Thread Derick Rethans
On Wed, 27 Nov 2002, Sara Pollita Golemon wrote: Derick Rethans [EMAIL PROTECTED] wrote: I don't like us adding a new ini entry for this, I think we should try another option: 4) Make sure we can use fscanf on a dynamically sized buffer. This will definitely the hardest

Re: [PHP-DEV] Bug #20308 (Feature Request)

2002-11-27 Thread Sterling Hughes
While waiting for opinions on Bug#20460 I went ahead and addressed #20308. User complains that parse_url returns the full email address in 'path' element. Makes reference to documents which claim it should return 'user' and 'host' element. To address this request and maintain backward

Re: [PHP-DEV] Bug #20308 (Feature Request)

2002-11-27 Thread Ilia A.
I am not so sure that adding special cases for things like mailto: and so on is a good idea. The code works identically to how it worked in 4.2.3 and prior. Ilia On November 27, 2002 04:19 pm, Sara Pollita Golemon wrote: While waiting for opinions on Bug#20460 I went ahead and addressed

Re: [PHP-DEV] Bug #20308 (Feature Request)

2002-11-27 Thread Sara
That was one of the comments I was looking for Is this really necessary? After all the user can certainly use explode() to take it apart. I'm not against giving him that answer, it was just a quick patch to write... Is that a -1 then? I am not so sure that adding special cases for things like

Re: [PHP-DEV] Bug #20308 (Feature Request)

2002-11-27 Thread Ilia A.
On November 27, 2002 04:45 pm, Sara Pollita Golemon wrote: That was one of the comments I was looking for Is this really necessary? After all the user can certainly use explode() to take it apart. I'm not against giving him that answer, it was just a quick patch to write... Is that a -1

Re: [PHP-DEV] Bug #20308 (Feature Request)

2002-11-27 Thread Sterling Hughes
On November 27, 2002 04:45 pm, Sara Pollita Golemon wrote: That was one of the comments I was looking for Is this really necessary? After all the user can certainly use explode() to take it apart. I'm not against giving him that answer, it was just a quick patch to write... Is that a

Re: [PHP-DEV] Bug #20308 (Feature Request)

2002-11-27 Thread Ilia A.
On November 27, 2002 04:32 pm, Sterling Hughes wrote: On November 27, 2002 04:45 pm, Sara Pollita Golemon wrote: That was one of the comments I was looking for Is this really necessary? After all the user can certainly use explode() to take it apart. I'm not against giving him that

Re: [PHP-DEV] Bug or Feature: ini_get() return value

2002-05-01 Thread derick
Hello Ian, On Wed, 1 May 2002, Ian Thurlbeck wrote: Is this a bug or a feature? Tested on Apache 1.3.22 + PHP 4.1.2 and Apache 2.0.35 + PHP 4.2.0RC4 With php.ini setting some_var=On I get the following: ini_get(some_var) returns 1 Fair enough. If you set some_var=Off the

Re: [PHP-DEV] Bug system feature request

2002-01-25 Thread derick
Hello, On Fri, 25 Jan 2002, Robinson, Mike wrote: Just a thought Would it be possible to add a drop down for some pre-defined comments, such as: 1. Fixed in CVS, thanks for your report. 2. Please provide a backtrace to this report. See ... for instructions... 3. Old version, please

Re: [PHP-DEV] bug or feature?

2001-05-22 Thread Kristian Köhntopp
Zeev Suraski wrote: It's good that this question was asked, but really, be prepared to the fact that 'no' can also be an answer. Then let me rephrase the question: What is the recommended way to signal error conditions from the inside of an object constructor? Kristian -- Kristian Köhntopp,

Re: [PHP-DEV] bug or feature?

2001-05-22 Thread Zeev Suraski
At 15:49 22/5/2001, Kristian Köhntopp wrote: Zeev Suraski wrote: It's good that this question was asked, but really, be prepared to the fact that 'no' can also be an answer. Then let me rephrase the question: What is the recommended way to signal error conditions from the inside of an object

Re: [PHP-DEV] bug or feature?

2001-05-21 Thread Kristian Köhntopp
Stig Sæther Bakken wrote: I disagree with your conclusion here. If a side-effect is useful enough and people want to use it, why not document it de-bastardize it? The fact that other OO languages implement this should be a hint that it shouldn't be impossible to do in a different OO model.

Re: [PHP-DEV] bug or feature?

2001-05-18 Thread Andrei Zmievski
On Fri, 18 May 2001, Stig Bakken wrote: Anyway, I'd like to see $this assignment in constructor: 1. dismissed as a bug 2. documented as a feature, or +1 from me on this one. -Andrei Hacker: Any person who derives joy from discovering ways to circumvent limitations. -- PHP

Re: [PHP-DEV] bug or feature?

2001-05-18 Thread Zeev Suraski
At 16:08 18/5/2001, Andrei Zmievski wrote: On Fri, 18 May 2001, Stig Bakken wrote: Anyway, I'd like to see $this assignment in constructor: 1. dismissed as a bug 2. documented as a feature, or +1 from me on this one. +1 on what? :) It's generally a side effect of the implementation, so

Re: [PHP-DEV] bug or feature?

2001-05-18 Thread Andrei Zmievski
On Fri, 18 May 2001, Zeev Suraski wrote: It's generally a side effect of the implementation, so I wouldn't be too keen on documenting as a feature, but as an undefined behavior. A very useful side effect, perhaps? -Andrei Computers are useless. They can only give you answers.

Re: [PHP-DEV] bug or feature?

2001-05-18 Thread Oyvind Moll
* Zeev Suraski [EMAIL PROTECTED] | | At 16:08 18/5/2001, Andrei Zmievski wrote: | On Fri, 18 May 2001, Stig Bakken wrote: | Anyway, I'd like to see $this assignment in constructor: | | 1. dismissed as a bug | 2. documented as a feature, or | | +1 from me on this one. | | +1 on what? :)

Re: [PHP-DEV] bug or feature?

2001-05-18 Thread Kristian Köhntopp
Oyvind Moll wrote: Could the current behaviour be hard to keep in the future, with the $this assignment in constructor syntax? Assignments to self (to $this) are a very useful features and common in other OO languages as well. I'd vote for keeping the feature, document it as such and making it

Re: [PHP-DEV] bug or feature?

2001-05-18 Thread Sebastian Bergmann
Kristian Köhntopp wrote: Assignments to self (to $this) are a very useful features and common in other OO languages as well. I'd vote for keeping the feature, document it as such and making it legal. +1 -- sebastian bergmann[EMAIL PROTECTED]

Re: [PHP-DEV] bug or feature?

2001-05-18 Thread Zeev Suraski
At 16:27 18/5/2001, Andrei Zmievski wrote: On Fri, 18 May 2001, Zeev Suraski wrote: It's generally a side effect of the implementation, so I wouldn't be too keen on documenting as a feature, but as an undefined behavior. A very useful side effect, perhaps? Yes, but still, a side effect.

Re: [PHP-DEV] bug or feature?

2001-05-18 Thread Andrei Zmievski
On Fri, 18 May 2001, Zeev Suraski wrote: Yes, but still, a side effect. Could end up changing in the future, and we don't want to have to limit ourselves to implementations that have this side effect. Well, if we define it as a feature, wouldn't you be able to support it in the future

Re: [PHP-DEV] bug or feature?

2001-05-18 Thread Zeev Suraski
At 16:31 18/5/2001, Oyvind Moll wrote: Could the current behaviour be hard to keep in the future, with the $this assignment in constructor syntax? Yes, it is. Zeev -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP-DEV] bug or feature?

2001-05-18 Thread Zeev Suraski
Guys, This isn't up for a vote... It's a side effect of implementation, and other implementations may invalidate it. We can't document it as a feature, because it may bite us big time in the future. Zeev At 19:21 18/5/2001, Sebastian Bergmann wrote: Kristian Köhntopp wrote: Assignments to

Re: [PHP-DEV] bug or feature?

2001-05-18 Thread Zeev Suraski
At 20:00 18/5/2001, Andrei Zmievski wrote: On Fri, 18 May 2001, Zeev Suraski wrote: Yes, but still, a side effect. Could end up changing in the future, and we don't want to have to limit ourselves to implementations that have this side effect. Well, if we define it as a feature,

Re: [PHP-DEV] bug or feature?

2001-05-18 Thread Hartmut Holzgraefe
Zeev Suraski wrote: Guys, This isn't up for a vote... It's a side effect of implementation, and other implementations may invalidate it. We can't document it as a feature, because it may bite us big time in the future. Is it just me, or are you refering to very different people by 'we'

Re: [PHP-DEV] bug or feature?

2001-05-18 Thread Zeev Suraski
At 20:39 18/5/2001, Hartmut Holzgraefe wrote: Zeev Suraski wrote: Guys, This isn't up for a vote... It's a side effect of implementation, and other implementations may invalidate it. We can't document it as a feature, because it may bite us big time in the future. Is it just me, or

Re: [PHP-DEV] bug or feature?

2001-05-18 Thread Stig Sæther Bakken
I disagree with your conclusion here. If a side-effect is useful enough and people want to use it, why not document it de-bastardize it? The fact that other OO languages implement this should be a hint that it shouldn't be impossible to do in a different OO model. Why care more about forward

Re: [PHP-DEV] Bug #10309: feature request

2001-04-12 Thread teo
Hi fabiankessler! On Thu, 12 Apr 2001, [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] Operating system: all PHP version: 4.0.4 PHP Bug Type: Feature/Change Request Bug description: feature request $a = 'foo'; $b = 'bar'; $c = (true) ? $a : $b; suggestions: