[PHP-DEV] Re: #20035 [Asn-Opn]: __LINE__ miscounts with #!/path/php scripts

2002-10-24 Thread Jani Taskinen
Er...You propably know then where this stripping happens in PHP or Zend ?? (I couldn't find it..) --Jani On 23 Oct 2002 [EMAIL PROTECTED] wrote: ID: 20035 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Assigned

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / Makefile.global

2002-10-24 Thread Yasuo Ohgaki
Jon Parise wrote: I still do not understand what magical values in php.ini-dist need to be applied to run-tests.php and why those values, if they are so important, can't be explicitly enabled via ini_set() calls. Glad to explain :) If you install php.ini-recommended as you default php.ini for

Re: [PHP-DEV] I hope this is the last email about this :) (was RFC:

2002-10-24 Thread Yasuo Ohgaki
Alan Knowles wrote: Im +1 for reverting the patch - (for what it's worth) Why? Well - most 'average' (and below) PHP programmers when attempting to do CLI programming, will get a serious WTF reaction from wondering why when they 'echo' stuff, it doesnt appear. The more advanced Users can

Re: [PHP-DEV] PHP and OCI8

2002-10-24 Thread Thies C. Arntzen
On Wed, Oct 23, 2002 at 06:15:19PM +0200, Roderick Groesbeek wrote: Howdy People, Info: === I am witnessing problems with PHP, Apache and OCI8. We have profiles on our Oracle databases, so sessions get sniped if they hang on to long. what do you

[PHP-DEV] Test suite and user space (Was: Re: [PHP-DEV] I hope this is the last email about this :))

2002-10-24 Thread Melvyn Sopacua
At 00:27 24-10-2002, Yasuo Ohgaki wrote: PS: If you would like to write INI independent scripts, I suggest you to use php.ini-recommended at least. You don't/ didn't know phps crashing and make test does not work well with php.ini-recommended, nonetheless, you're insisting there is no problems.

Re: [PHP-DEV] Re: #20035 [Asn-Opn]: __LINE__ miscounts with #!/path/php scripts

2002-10-24 Thread Masaki Fujimoto
hi, (Zeev and Andi, and other core devlopers are surely familiar with this, but maybe I can help, too) the cause of this problem is something like this: (1) in sapi/cgi/cgi_main.c(1118) or sapi/cli/php_cli.c(643), if the very begginig of the script is '#', PHP strips that line. at that

Re: [PHP-DEV] I hope this is the last email about this :) (was RFC: CLI behave like SH or PERL/RUBY/PYTHON?)

2002-10-24 Thread Melvyn Sopacua
At 02:51 24-10-2002, Alan Knowles wrote: Im +1 for reverting the patch - (for what it's worth) Why? Well - most 'average' (and below) PHP programmers when attempting to do CLI programming, will get a serious WTF reaction from wondering why when they 'echo' stuff, it doesnt appear. The more

Re: [PHP-DEV] I hope this is the last email about this :) (was RFC:

2002-10-24 Thread Melvyn Sopacua
At 08:42 24-10-2002, Yasuo Ohgaki wrote: I think this kind of code will be taught at the first class of programming course. (I could be wrong, since I don't know where people learned programming ;) Why do you assume people learned programming? I think Rasmus has made the case for PHP to be a

Re: [PHP-DEV] I hope this is the last email about this :) (was RFC:

2002-10-24 Thread Yasuo Ohgaki
Melvyn Sopacua wrote: At 08:42 24-10-2002, Yasuo Ohgaki wrote: I think this kind of code will be taught at the first class of programming course. (I could be wrong, since I don't know where people learned programming ;) Why do you assume people learned programming? I think Rasmus has made

[PHP-DEV] Re: Test suite and user space (Was: Re: [PHP-DEV] I hope this is the last email about this :))

2002-10-24 Thread Yasuo Ohgaki
Melvyn Sopacua wrote: At 00:27 24-10-2002, Yasuo Ohgaki wrote: PS: If you would like to write INI independent scripts, I suggest you to use php.ini-recommended at least. You don't/ didn't know phps crashing and make test does not work well with php.ini-recommended, nonetheless, you're

Re: [PHP-DEV] I hope this is the last email about this :) (was RFC:

2002-10-24 Thread Melvyn Sopacua
At 16:42 10/24/2002 +0900, Yasuo Ohgaki wrote: Melvyn Sopacua wrote: At 08:42 24-10-2002, Yasuo Ohgaki wrote: I think this kind of code will be taught at the first class of programming course. (I could be wrong, since I don't know where people learned programming ;) Why do you assume people

Re: [PHP-DEV] I hope this is the last email about this :) (was

2002-10-24 Thread Yasuo Ohgaki
Melvyn Sopacua wrote: At 02:51 24-10-2002, Alan Knowles wrote: Im +1 for reverting the patch - (for what it's worth) Why? Well - most 'average' (and below) PHP programmers when attempting to do CLI programming, will get a serious WTF reaction from wondering why when they 'echo' stuff, it

Re: [PHP-DEV] I hope this is the last email about this :) (was

2002-10-24 Thread Derick Rethans
On Thu, 24 Oct 2002, Yasuo Ohgaki wrote: Melvyn Sopacua wrote: My thoughts exactly. Defaults should work for the masses - it's not like it's enforced behavior, that is irreversible. ? Which mass ? Are you going to insist most scripts need inefficient auto flushing? __ __ \ \ /

[PHP-DEV] ? vs. ?php - a statistic

2002-10-24 Thread Kristian Koehntopp
We have heard a lot of anecdotal evidence about the usage of ? vs. ?php vs. other methods of PHP invocation. In order to clear things up a little, I have asked a friend of mine for more detailed numbers from a real world example. The following tests have been done very much ad hoc, and the

Re: [PHP-DEV] ? vs. ?php - a statistic

2002-10-24 Thread Zeev Suraski
I don't think that matters that much really. Even if it's 2%, and not 12% or 50%, we're still talking about billions of lines of code... Let's, please, give it a rest. Zeev At 11:13 24/10/2002, Kristian Koehntopp wrote: We have heard a lot of anecdotal evidence about the usage of ? vs. ?php

Re: [PHP-DEV] I hope this is the last email about this :) (was RFC:

2002-10-24 Thread Zeev Suraski
This has nothing to do with academical correctness. Flushing or not flushing is not a matter of right or wrong, it's a matter of choice. There's one 'real language' that does automatic flushing, it's called PHP, and it's going to stay that way. Why other languages chose not to do it (maybe

Re: [PHP-DEV] I hope this is the last email about this :) (was

2002-10-24 Thread Zeev Suraski
At 10:01 24/10/2002, Yasuo Ohgaki wrote: Melvyn Sopacua wrote: At 02:51 24-10-2002, Alan Knowles wrote: Im +1 for reverting the patch - (for what it's worth) Why? Well - most 'average' (and below) PHP programmers when attempting to do CLI programming, will get a serious WTF reaction from

Re: [PHP-DEV] ? vs. ?php - a statistic

2002-10-24 Thread Kristian Koehntopp
On Thursday 24 October 2002 11:28, Zeev Suraski wrote: I don't think that matters that much really. Even if it's 2%, and not 12% or 50%, we're still talking about billions of lines of code... Yes, we do. I am still offering the opportunity to run a statistical analysis of choice across a

[PHP-DEV] running tests with CGI binary

2002-10-24 Thread Hartmut Holzgraefe
fact #1: some tests *require* cgi sapi (eg. POST stuff) fact #2: current test suid *does not work* with php-cgi conclusion: a lot of stuff doesn't get any automatic testing solution: (see attached patch) - run-tests.php sets USER_AGENT=run-tests.php - run-tests.php prepends

[PHP-DEV] PHP usage stats

2002-10-24 Thread Maxim Maletsky
I think we should listen to Kristian here. It's never bad having some statistics about PHP usage. P.S: changins the subject. Other seem not to work too well. I Wonder why :) -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // PHP for Beginners www.maxim.cx // my Home // my

Re: [PHP-DEV] I hope this is the last email about this :)

2002-10-24 Thread Yasuo Ohgaki
Zeev Suraski wrote: At 10:01 24/10/2002, Yasuo Ohgaki wrote: Melvyn Sopacua wrote: At 02:51 24-10-2002, Alan Knowles wrote: Im +1 for reverting the patch - (for what it's worth) Why? Well - most 'average' (and below) PHP programmers when attempting to do

Re: [PHP-DEV] I hope this is the last email about this :)

2002-10-24 Thread Yasuo Ohgaki
Just wanted to add little more emphasis for the reason why I say "weak reasoning". My thoughts exactly. Defaults should work for the masses - it's not like it's enforced behavior, that is irreversible. Anyway, what kind of default we have for implicit flush in

Re: [PHP-DEV] running tests with CGI binary

2002-10-24 Thread Derick Rethans
On Thu, 24 Oct 2002, Hartmut Holzgraefe wrote: comments? ;) sure :) -8- Index: run-tests.php === RCS file: /repository/php4/run-tests.php,v retrieving revision 1.83 diff -u -2 -r1.83

[PHP-DEV] Upload broken?

2002-10-24 Thread Steve Alberty
Hi, is in the cvs tree the file upload currently broken? I miss the $_FILES['myfile'] variables. Regards, Steve -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: [PHP-CVS] cvs: php4(PHP_4_2_0) /ext/bcmath/libbcmath/src config.h

2002-10-24 Thread Sebastian Bergmann
Anantha Kesari H Y wrote: hyanantha Thu Oct 24 05:15:12 2002 EDT Modified files: (Branch: PHP_4_2_0) /php4/ext/bcmath/libbcmath/src config.h Log: NetWare related changes/modifications. Why are all these patches committed to the (dead?) PHP_4_2_0

Re: [PHP-DEV] [PATCH] Changing entity charset handlinginext/standard/html.c

2002-10-24 Thread Edin Kadribasic
Hey Moriyoshi, Sorry for my late entry into the debate, but I run into htmlentities() default charset problem today. I wonder why did you opt to use mbstring ini setting (thus making this nice feature mbstring dependant) when we have default_charset ini setting. It just sounds more logical to me

[PHP-DEV] algebra code

2002-10-24 Thread Diana Castillo
does anyone know where I can get the code to solve equations with three unknowns? eg. 2x+4y+3z=234 3x+2y+44z=70 8x+33y+9z= 8 I need the code to solve for x , y and z Thanks -- Ve mis pinturas - See my paintings:: http://www.nvtechnologies.com/hgh/paintingweb -- PHP Development Mailing List

Re: [PHP-DEV] algebra code

2002-10-24 Thread Wez Furlong
Get a math text book that explains gaussian elimination, learn it, then ask your question on php-general. This list is for development of php itself, not writing programs with PHP. --Wez. On 10/24/02, Diana Castillo [EMAIL PROTECTED] wrote: does anyone know where I can get the code to solve

RE: [PHP-DEV] I hope this is the last email about this :) (was

2002-10-24 Thread Ford, Mike [LSS]
-Original Message- From: Yasuo Ohgaki [mailto:yohgaki;ohgaki.net] Sent: 24 October 2002 09:01 To: [EMAIL PROTECTED]; Melvyn Sopacua Are you going to insist most scripts need inefficient auto flushing? For CLI, yes. Have you ever used other programming languages? Yes -- over 40

RE: [PHP-DEV] I hope this is the last email about this :) (was RFC:

2002-10-24 Thread Ford, Mike [LSS]
-Original Message- From: Yasuo Ohgaki [mailto:yohgaki;ohgaki.net] Sent: 24 October 2002 07:42 To: [EMAIL PROTECTED]; Alan Knowles Alan Knowles wrote: Im +1 for reverting the patch - (for what it's worth) This makes 2+ for having auto flushing :) Add one more -- or even

Re: [PHP-DEV] I hope this is the last email about this :)

2002-10-24 Thread Zeev Suraski
At 12:23 24/10/2002, Yasuo Ohgaki wrote: function prompt($prefix) { echo $prefix; flush(); } is _TRIVIAL_ to write. People should have this kind of function instead of enabling inefficient implicit flushing since it's more efficient and reliable. You print something, it doesn't print out.

[PHP-DEV] ZE2 compile failure with xml-rpc ext

2002-10-24 Thread Jan Schneider
/bin/sh libtool --silent --mode=compile gcc -I/home/jan/software/php4/ext/xmlrpc/libxmlrpc -DVERSION=0.50 -Iext/xmlrpc/ -I/home/jan/software/php4/ext/xmlrpc/ -DPHP_ATOM_INC -I/home/jan/software/php4/include -I/home/jan/software/php4/main -I/home/jan/software/php4 -I/home/jan/software/php4/Zend

[PHP-DEV] Re: [PHP-CVS] cvs: php4(PHP_4_2_0)/ext/bcmath/libbcmath/src config.h

2002-10-24 Thread Ananth Kesari
Hi, NetWare has a very old PHP, version 4.0.8! We are moving to a later stabler version for release on NetWare next month. In that connection Zeev Suraski suggested that we move to 4.2 branch which is significantly more stabler than 4.3 branch. So, I am checking in files for the 4.2 branch so

Re: [PHP-DEV] [PATCH] Changing entity charset handlinginext/standard/html.c

2002-10-24 Thread Moriyoshi Koizumi
Hello Edin, I don't know if your proposal is logical or not, I figured the problem in the historical context, that it shouldn't rely on mbstring ext too much because it's been there since mbstring(formerly called as jstring) was introduced. But, It's a problem that the internal encoding is

[PHP-DEV] -=

2002-10-24 Thread Diana Castillo
What does it mean in the code when it says - = for instance a[k][j] -= a[k][i] * a[i][j] / a[i][i]; thanks, Diana -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] -=

2002-10-24 Thread Derick Rethans
Can you please direct questions like this to the [EMAIL PROTECTED] mailing list, this list is for development _of_ PHP, not for developing _with_ PHP. Thank you, Derick On Thu, 24 Oct 2002, Diana Castillo wrote: What does it mean in the code when it says - = for instance a[k][j] -=

Re: [PHP-DEV] -=

2002-10-24 Thread Maxim Maletsky
current value minus this. int a = 10; int b = 6; a -= b; now a is 4; But, this is not PHP-DEV question. -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // PHP for Beginners www.maxim.cx // my Home // my Wish List: ( Get me something! )

Re: [PHP-DEV] [PATCH] Changing entity charset handlinginext/standard/html.c

2002-10-24 Thread Edin Kadribasic
BTW, the temporary solution is to give a priority to each setting, like 1. MBSTRG(internal_encoding) 2. SG(default_charset) 3. System's locale setting How about this option? This sounds fine. This way people who compile php without mbstring support can alter the default charset. Edin --

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4(PHP_4_2_0) /ext/bcmath/libbcmath/src config.h

2002-10-24 Thread Markus Fischer
On Thu, Oct 24, 2002 at 07:06:43AM -0600, Ananth Kesari wrote : We have checked-in most of the files already for the 4.3 branch as well. We will be completing that also soon. Congratulations on the work! -- GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc $ grep docref_root

Re: [PHP-DEV] from one hash to another, in an extension

2002-10-24 Thread Tim Daly, Jr.
Andrei Zmievski [EMAIL PROTECTED] writes: On Wed, 23 Oct 2002, Tim Daly, Jr. wrote: You don't need to SEPARATE_ZVAL() in this case. I don't need to, or I need not to? Don't use SEPARATE_ZVAL() when copying zval from one hash to another. -Andrei

Re: [PHP-DEV] Re: Unsigned Problems Revisited

2002-10-24 Thread David M. Lloyd
On Thu, 24 Oct 2002, Andi Gutmans wrote: At 02:49 PM 10/23/2002 -0500, David M. Lloyd wrote: The reality of twos-complement, bitwise arithmatic is that there are three basic shift operations: shift left, bitwise shift right, and arithmetic shift right. This simple fact is one of the basic

[PHP-DEV] Can't build HEAD on Linux

2002-10-24 Thread Sebastian Bergmann
/usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14. /usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14. ext/mysql/libmysql/my_tempnam.lo: In function `my_tempnam': /usr/src/php4/ext/mysql/libmysql/my_tempnam.c:103: the use of `tempnam' is dangerous, better use

Re: [PHP-DEV] Can't build HEAD on Linux

2002-10-24 Thread Markus Fischer
Upgraded your GCC? Googles first hit reads something like: FORM 14 is DW_FORM_strp, recently added to GCC. You need a newer binutils. On Thu, Oct 24, 2002 at 11:18:15PM +0200, Sebastian Bergmann wrote : /usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14.

Re: [PHP-DEV] Can't build HEAD on Linux

2002-10-24 Thread Sebastian Bergmann
Markus Fischer wrote: Upgraded your GCC? Googles first hit reads something like: FORM 14 is DW_FORM_strp, recently added to GCC. You need a newer binutils. Interesting. I updated to gcc 3.2 a while ago and it worked fine. This morning, for instance, I was able to build HEAD without

[PHP-DEV] linking php code to html link

2002-10-24 Thread Alan Rawkins
Hi there, I'm wondering if there is a way to attach a php function to an html a href tag. I basically want to have a button, that when clicked, will execute some PHP code. Thanks, Alan -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] cannot read /repository/php4/ext/overload/CVS/fileattr

2002-10-24 Thread Sebastian Bergmann
During a fresh CVS checkout I got the following message cvs server: cannot read /repository/php4/ext/overload/CVS/fileattr: Operation not supported What does this mean? -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help

Re: [PHP-DEV] linking php code to html link

2002-10-24 Thread Jason T. Greene
Alan, PHP-DEV(Internals) is the list for the development OF the PHP Language not WITH the PHP language. The PHP-GENERAL list is what you want. Before emailing this particular question, I would highly suggest you read the documentation available on PHP's website (http://www.php.net), and possibly

[PHP-DEV] PHP and Java

2002-10-24 Thread Marc Richards
Hi, I am looking for any info or documentation on using PHP in a servlet environment. I read what I could find on php.net, and found a couple things using google, but not enough to answer my questions. If someone could tell me where to look that would be great. I am very interested in seing

Re: [PHP-DEV] PHP and Java

2002-10-24 Thread Brad LaFountain
--- Marc Richards [EMAIL PROTECTED] wrote: Hi, I am looking for any info or documentation on using PHP in a servlet environment. I read what I could find on php.net, and found a couple things using google, but not enough to answer my questions. If someone could tell me where to look that

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / Makefile.global

2002-10-24 Thread Yasuo Ohgaki
Sander Roobol wrote: On Thu, Oct 24, 2002 at 11:59:19AM -0400, Jon Parise wrote: - Change the compiled default value for output_buffering to 0. - Allow output_buffering to be set by ini_set(). - Specify 'output_buffering = 0' via the -D command line option for run-tests.php. -

Re: [PHP-DEV] PHP and Java

2002-10-24 Thread Dan Kalowsky
On Thursday, October 24, 2002, at 09:46 PM, Marc Richards wrote: 5) Who is responsible for development of this extension? Sam Ruby wrote it originally, but alas he seems to have disappeared from maintaining it. A few people have done matiaince on it, you can see the bonzai tree, or cvs logs