[PHP-DEV] PHP 4.0 Bug #9186: string compare with == does not work correctly

2001-02-09 Thread tom . anheyer
From: [EMAIL PROTECTED] Operating system: any PHP version: 4.0.4pl1 PHP Bug Type: Scripting Engine problem Bug description: string compare with "==" does not work correctly First the test script: ? $a = '012345678901234567'; $b = '012345678901234568'; echo ($a == $b) ? "a

[PHP-DEV] Why do we want to give YOU money?

2001-02-09 Thread justforyou
Simple answer, you were randomly selected from our recently purchased opt-in lists. OK so why are we giving away money you ask? Another simple answer. We want you to discover what 10,000's of other people just like you already know... our Casino is fast-paced, interactive and just plain old fun.

[PHP-DEV] PHP 4.0 Bug #9187: unable to use socket

2001-02-09 Thread floweb
From: [EMAIL PROTECTED] Operating system: windows PHP version: 4.0.4pl1 PHP Bug Type: Sockets related Bug description: unable to use socket when trying to create a Socket i get a undefined function error i think it has something to do with --enable-sockets and not being

[PHP-DEV] PHP 4.0 Bug #9188: it seems that mysql-module doesn't support any charsets except latin1

2001-02-09 Thread changx
From: [EMAIL PROTECTED] Operating system: Linux (k:2.2.16) PHP version: 4.0.4pl1 PHP Bug Type: MySQL related Bug description: it seems that mysql-module doesn't support any charsets except latin1 ./configure --with-mysql --with-apxs=/var/lib/apache/bin/apxs make make

[PHP-DEV] how-to get array[0] and array[name] to actually reference only 1 value?

2001-02-09 Thread Marc Boeren
What I'm trying to do is get the following php-script to work... (the only thing about this that doesn't work is in the fourth 'echo' line...) $db = dbx_connect("mysql", "localhost", "username", "password"); // works $result = dbx_query($db, "use dbname"); // works $q = dbx_query($db, "select

[PHP-DEV] ¯Â°Ó·~¿ì¤½«Ç¥X¯² ¡I¡I

2001-02-09 Thread b2xridlp1zo
** ¯Â°Ó·~¿ì¤½«Ç¥X¯² ** ±MªùªA°È°Ó¥Î¿ì¤½«Ç¤§©Ó¯²¤H¡C ¥x¥_¦Uµ¥¯Å°Ó¥Î¿ì¤½«Ç®×¥ó¡A¾A¦X¦UºØ°Ó·~»Ý¨D¡I¡I

[PHP-DEV] PHP 4.0 Bug #9076 Updated: GregorianToJD function returns incorrect values

2001-02-09 Thread basil . hussain
ID: 9076 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: Calendar related Description: GregorianToJD function returns incorrect values I found more thoroughly-researched algorithms for calculating to and from Gregorian/Julian calender dates to Julian Day Count values:

[PHP-DEV] PHP 4.0 Bug #9191: Problems when rejecting cookies

2001-02-09 Thread darren
From: [EMAIL PROTECTED] Operating system: Linux Mandrake 7.2 PHP version: 4.0.4pl1 PHP Bug Type: *Session related Bug description: Problems when rejecting cookies In all instances I am using a simple templete class that prints the html. Instance 1 = 1 script which

[PHP-DEV] PHP 4.0 Bug #9192: configure script needs -lxml2 for XML-DOM

2001-02-09 Thread ivan
From: [EMAIL PROTECTED] Operating system: Solaris (irrelevant) PHP version: 4.0.4pl1 PHP Bug Type: *Install and Config Bug description: configure script needs "-lxml2" for XML-DOM For XML-DOM support, the PHP docs say you need libxml 2.00. These are known as "libxml2", and

[PHP-DEV] file upload

2001-02-09 Thread Manuele Ferraro
hi ng For file upload i compare temp file with "none". It's OK. From yesterday, the string tha corresponding at null file is null string ? why ?? Manuele -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[PHP-DEV] PHP 4.0 Bug #9186 Updated: string compare with == does not work correctly

2001-02-09 Thread zak
ID: 9186 Updated by: zak Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: Scripting Engine problem Assigned To: Comments: Actually, this is a feature - it is described in the manual. Strings that look like numbers are converted to numbers. Large numbers - like the ones

Re: [PHP-DEV] how-to get array[0] and array[name] to actually reference only 1 value?

2001-02-09 Thread Zak Greant
This list is for discussing issues that relate to the development of the PHP language. For mailing lists that discuss development with PHP, see www.php.net/support.php Also, even though [0] and ['id'] initially contain the same value, they are not bound together in any way. You may be able to

[PHP-DEV] PHP 4.0 Bug #9194: Objects not properly stored as session variables

2001-02-09 Thread ltning
From: [EMAIL PROTECTED] Operating system: Slackware Linux PHP version: 4.0.4pl1 PHP Bug Type: Class/Object related Bug description: Objects not properly stored as session variables Look at http://mail2.anduin.net/index.phps for sourcecode of failing page.

[PHP-DEV] PHP 4.0 Bug #9186 Updated: string compare with == does not work correctly

2001-02-09 Thread tom . anheyer
ID: 9186 User Update by: [EMAIL PROTECTED] Status: Bogus Bug Type: Scripting Engine problem Description: string compare with "==" does not work correctly I think there is no reason to convert any type if both operands of the comparision are of the same type. It costs time and it's completely

[PHP-DEV] PHP 4.0 Bug #9186 Updated: string compare with == does not work correctly

2001-02-09 Thread zak
ID: 9186 Updated by: zak Reported By: [EMAIL PROTECTED] Old-Status: Bogus Status: Open Bug Type: Scripting Engine problem Assigned To: Comments: Incorrectly flagged as bogus. Previous Comments: --- [2001-02-09 10:59:10]

Re: [PHP-DEV] PHP 4.0 Bug #9186 Updated: string compare with == does not work correctly

2001-02-09 Thread Zak Greant
Alan van den Bosch wrote: [snip] This issue arises from the loose typing in PHP with the introduction of first class boolean type (the true and false keywords), from my understanding the sematics being applied here are as follows (poetic license applied liberally); == is (has become?) a

Re: [PHP-DEV] PHP 4.0 Bug #9186 Updated: string compare with == does not work correctly

2001-02-09 Thread Zeev Suraski
At 17:59 9/2/2001, [EMAIL PROTECTED] wrote: ID: 9186 User Update by: [EMAIL PROTECTED] Status: Bogus Bug Type: Scripting Engine problem Description: string compare with "==" does not work correctly I think there is no reason to convert any type if both operands of the comparision are of the same

Re: [PHP-DEV] PHP 4.0 Bug #9186 Updated: string compare with == does not work correctly

2001-02-09 Thread Zeev Suraski
At 19:34 9/2/2001, Hartmut Holzgraefe wrote: Alan van den Bosch wrote: == is (has become?) a boolean logic operator, dealing in terms of 'true' and 'false' values, so its terms are type cast to either 'true' or 'false'. When applied to strings, a 'false' string is zero length or contains

Re: [PHP-DEV] PHP 4.0 Bug #9186 Updated: string compare with == does not work correctly

2001-02-09 Thread Zak Greant
Zeev Suraski wrote: At 17:59 9/2/2001, [EMAIL PROTECTED] wrote: ID: 9186 User Update by: [EMAIL PROTECTED] Status: Bogus Bug Type: Scripting Engine problem Description: string compare with "==" does not work correctly I think there is no reason to convert any type if both operands of

Re: [PHP-DEV] PHP 4.0 Bug #9186 Updated: string compare with == does not work correctly

2001-02-09 Thread Zeev Suraski
Yep, we should. It came up many times over the years, this behavior haven't changed since early PHP 3.0.0... Zeev At 19:47 9/2/2001, Zak Greant wrote: Zeev Suraski wrote: At 17:59 9/2/2001, [EMAIL PROTECTED] wrote: ID: 9186 User Update by: [EMAIL PROTECTED] Status: Bogus Bug Type:

[PHP-DEV] PHP 4.0 Bug #9195: Default class function arguments

2001-02-09 Thread nathan
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.0.2 PHP Bug Type: Feature/Change Request Bug description: Default class function arguments I'm requesting that the default function arguments for a class method be able to reference the class variable members

[PHP-DEV] Building stand-alone/built-in

2001-02-09 Thread Emiliano
Hi all, I'm building a PHP extension that I'd like to be able to build both as fully external and embedded into PHP. I include some apache headers si I need the build environment to either tell me where apxs is or have the include directories 'handed to me' in the php-provided build environment.

Re: [PHP-DEV] PHP 4.0 Bug #9195: Default class function arguments

2001-02-09 Thread Zeev Suraski
Default function arguments have to be static, non dynamic values. The way to do it is function foo($bar=unset) { if (!isset($bar)) { $bar = ...; } } At 20:00 9/2/2001, [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] Operating system: Linux PHP

Re: [PHP-DEV] PHP 4.0 Bug #9195: Default class function arguments

2001-02-09 Thread Zak Greant
After doing a few tests and some reading, it looks like the rule is pretty simple: If either expression on either side of a == operator looks like a number, then the value of the expression is converted to a number. --zak - Original Message - From: "Zeev Suraski" [EMAIL PROTECTED] To:

[PHP-DEV] PHP 4.0 Bug #9196: Cannot create ADO objects with MDAC 2.6

2001-02-09 Thread peter . johnson
From: [EMAIL PROTECTED] Operating system: Win2K Winnt4 PHP version: 4.0.4pl1 PHP Bug Type: COM related Bug description: Cannot create ADO objects with MDAC 2.6 The code snippet below fails on the line which sets the Active Connection of the Command Object. It works OK

Re: [PHP-DEV] PHP 4.0 Bug #9195: Default class function arguments

2001-02-09 Thread Zeev Suraski
No, it's more complicated than that. Actually, it's not that complicated if you explain it the other way around: - The only case in which a char-by-char comparison is made, is if both arguments are strings, and at least one of them doesn't "look" like a number. Or, in other words: - If at

Re: [PHP-DEV] PHP 4.0 Bug #9186 Updated: string compare with == does not work correctly

2001-02-09 Thread Zak Greant
How is this? I modified what Zeev said a wee bit: == is a 'loose' comparison operator [1]. In most cases, this is more convenient - the operator does the right thing without needing any coaxing. In some cases, things will happen that are confusing - particularly when comparing values that have

[PHP-DEV] PHP 4.0 Bug #9079 Updated: PHP seg faults in alloca() at first PHP request to Apache

2001-02-09 Thread mchampagne
ID: 9079 User Update by: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Scripting Engine problem Description: PHP seg faults in alloca() at first PHP request to Apache We undefined HAS_ALLOCA from all the makefiles, recompiled and this fixed our problem. One of our compiler gurus

[PHP-DEV] NSAPI Modifications for iPlanet/NES 4.1

2001-02-09 Thread Andrew Johnson
I've been working on sapi/nsapi/nsapi.c to get it to work properly under the iPlanet 4.1 server (there are several problems with the version shipped with PHP 4.0.4pl1). What should I do with my patch file (~300 lines long) to get these changes incorporated? - Andrew -- Every great idea appears

RE: [PHP-DEV] NSAPI Modifications for iPlanet/NES 4.1

2001-02-09 Thread Chris Newbill
If you think you are going to be making more changes then you should probably get CVS access. http://bugs.php.net/cvs-php.php Otherwise post the patch to the list, the maintainer will review it. (eventually) Chris Newbill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

[PHP-DEV] Function request

2001-02-09 Thread Thomas Deliduka
I think this would be nice. To be able to pull a multi-dimentional array from a mysql result. For instance, if I do this: Select field1,field2 from mytable Calling something like: $alldata = mysql_fetch_all($dbpointer) Would give me: $alldata["field1"] as an array with values, i.e.:

[PHP-DEV] PHP 4.0 Bug #9198: ocassional session blackouts

2001-02-09 Thread jj
From: [EMAIL PROTECTED] Operating system: Debian/GNU Linux 2.2 PHP version: 4.0.0 PHP Bug Type: *Session related Bug description: ocassional session blackouts My application used to run PHPLIB for the sake of session variables. After migrating to PHP4, I made it use the

[PHP-DEV] PHP 4.0 Bug #9199: 'ld: No reference to __DYNAMIC' error

2001-02-09 Thread andrew
From: [EMAIL PROTECTED] Operating system: OpenBSD 2.8 PHP version: 4.0.4pl1 PHP Bug Type: Compile Failure Bug description: 'ld: No reference to __DYNAMIC' error I configured with './configure --with-apxs --with-mysql' successfully. I type 'gmake', and most of it builds.

[PHP-DEV] PHP 4.0 Bug #9198 Updated: ocassional session blackouts

2001-02-09 Thread cnewbill
ID: 9198 Updated by: cnewbill Reported By: [EMAIL PROTECTED] Status: Open Bug Type: *Session related Assigned To: Comments: Can you include the [Session] section from your php.ini file? Previous Comments: --- [2001-02-09

[PHP-DEV] PHP 4.0 Bug #9199 Updated: 'ld: No reference to __DYNAMIC' error

2001-02-09 Thread andrew
ID: 9199 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: Compile Failure Description: 'ld: No reference to __DYNAMIC' error This also occurs with only './configure --with-apxs'. Previous Comments: --- [2001-02-09

[PHP-DEV] ReportLab

2001-02-09 Thread clayton collie
Has anyone had a change to check out ReportLab ( http://www.reportlab.com ) ? what i wouldn't do to have this puppy ported to a PHP extension -- _ "Fried Ice-Cream is a reality !" - George Clinton -- PHP Development Mailing List http://www.php.net/ To

Re: [PHP-DEV] PHP 4.0 Bug #9197: crash in _efree

2001-02-09 Thread Zeev Suraski
Is there a short script (independent of other scripts) that reproduces this problem? Can you try to cut it down to the smallest piece of code that still produces a crash? Zeev At 23:45 9/2/2001, [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] Operating system: Linux PHP version:

[PHP-DEV] PHP 4.0 Bug #9200: strtolower handle arrays in addition to strings

2001-02-09 Thread ben
From: [EMAIL PROTECTED] Operating system: linux PHP version: 4.0.4pl1 PHP Bug Type: Feature/Change Request Bug description: strtolower handle arrays in addition to strings It would be nice to have strtolower() accept arrays as arguments (or just make a function such as

[PHP-DEV] THTTPD

2001-02-09 Thread [EMAIL PROTECTED]
Hey, instead of putting patches in PHP for THTTPD, is there anything against putting it into future builds? Just curious... -Szii -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP-DEV] Database connection pooling

2001-02-09 Thread Mathijs Brands
Hi all, This is my first post to this list, so please bear with me ;) Anyway, I've been running/developing a PHP application (fairly simple content management system) for some time now and it has been running pretty well. I'm using Apache 1.3.14, PHP 3.0.16 and PostgreSQL 6.5.3. The problem is

[PHP-DEV] PHP 4.0 Bug #9201: automatically inserted HTML with --trans-sid breaks page compliance to w3c std

2001-02-09 Thread lintec
From: [EMAIL PROTECTED] Operating system: Linux 2.4 PHP version: 4.0.4pl1 PHP Bug Type: Feature/Change Request Bug description: automatically inserted HTML with --trans-sid breaks page compliance to w3c std I'm trying to use the latest w3c recommendation (xhtml 1.0) in

[PHP-DEV] PHP 4.0 Bug #9202: Parse error when using terniary (?:) and unset()

2001-02-09 Thread mlr
From: [EMAIL PROTECTED] Operating system: Linux 2.2.14-5.0smp PHP version: 4.0.3pl1 PHP Bug Type: Scripting Engine problem Bug description: Parse error when using terniary (?:) and unset() ? $avariable = "test"; $avariable=="test" ? $avariable .=" No problem with is_bool" :

[PHP-DEV] FINANCIAL FREEDOM

2001-02-09 Thread [EMAIL PROTECTED]
Title: FOLLOW ME TO FINANCIAL FREEDOM FOLLOW ME TO FINANCIAL FREEDOM!! NO SPECIAL SKILLS OR EXPERIENCE REQUIRED 100% LIFE TIME SUPPORT AND TRAINING LEGITIMATE HOME-BASED INCOME OPPORTUNITY CALL 1-800-587-9046 ext. 9160 TO LISTEN TO A 1 MINUTE MESSAGE! THIS IS DIFFERENT

Re: [PHP-DEV] PHP 4.0 Bug #9202: Parse error when using terniary (?:) and unset()

2001-02-09 Thread Zeev Suraski
unset() is not a function, but a statement. It returns no value, and thus, you can't use it as an expression for the ? operator. Zeev At 03:29 10/2/2001, [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] Operating system: Linux 2.2.14-5.0smp PHP version: 4.0.3pl1 PHP Bug Type:

Re: [PHP-DEV] Database connection pooling

2001-02-09 Thread John Donagher
Mathijs- It would seem that a better model is to simply state that there are resources that would like to be persisted outside of PHP threads of execution, possibly outside of a webserver's process space, perhaps even outside of a physical machine or network. Many people will agree with you.

[PHP-DEV] PHP 4.0 Bug #9202 Updated: Parse error when using terniary (?:) and unset()

2001-02-09 Thread mlr
ID: 9202 User Update by: [EMAIL PROTECTED] Status: Open Old-Bug Type: Scripting Engine problem Bug Type: Documentation problem Description: Parse error when using terniary (?:) and unset() The documentation for Unset() states: Description int unset (mixed var [, mixed var [, ...]]) unset()

Re: [PHP-DEV] PHP 4.0 Bug #9186 Updated: string compare with == does not work correctly

2001-02-09 Thread Alan van den Bosch
OK, I was way off base in my reasoning... :-) Thanks for the clarification Zeev and Zak. Alan. How is this? I modified what Zeev said a wee bit: == is a 'loose' comparison operator [1]. In most cases, this is more convenient - the operator does the right thing without needing any

[PHP-DEV] PHP 4.0 Bug #9203: flock doesn't work properly on Windows 2000

2001-02-09 Thread davidspe
From: [EMAIL PROTECTED] Operating system: NT PHP version: 4.0.4pl1 PHP Bug Type: Scripting Engine problem Bug description: flock doesn't work properly on Windows 2000 #Dummy initial filehandle to obtain lock via $fd = fopen('c:/temp/php_flock_test', 'a'); $locked =

[PHP-DEV] PHP 4.0 Bug #9187 Updated: unable to use socket

2001-02-09 Thread chrisv
ID: 9187 Updated by: chrisv Reported By: [EMAIL PROTECTED] Status: Open Old-Bug Type: Sockets related Bug Type: Feature/Change Request Assigned To: Comments: The sockets extension is not currently supported on Win32 (9x/ME/NT/2k). Changing to feature request. (Something to add to my to-do