Re: [PHP-DEV] Re: [PHP-DOC] Problem with sessions

2001-01-27 Thread Lars Torben Wilson
Derick Rethans writes: On Sat, 27 Jan 2001, Lars Torben Wilson wrote: Yes, just make sure that you're not outputting *anything* (even blank these lists. Adrian Pitulac writes: I have Apache 1.3.14 and Php 4.0.4 on RedHat Linux 7.0! I started a session from a html and i

Re: [PHP-DEV] RE: PHP 4.0 Bug #9064 Updated: Functions inside functions cause errors if the outer function is called twice.

2001-02-02 Thread Lars Torben Wilson
What does that buy you that this doesn't? function test2() { echo "hi"; } function test() { test2(); } ...other than a new scoping rule? Christopher Kings-Lynne writes: Shouldn't you at least be able to register the "nested function" as 'static? This causes syntax errors in

RE: [PHP-DEV] RE: PHP 4.0 Bug #9064 Updated: Functions inside functions cause errors if the outer function is called twice.

2001-02-02 Thread Lars Torben Wilson
Sam Liddicott writes: -Original Message- From: Lars Torben Wilson [mailto:[EMAIL PROTECTED]] Sent: Friday, February 02, 2001 09:49 To: Christopher Kings-Lynne Cc: Bug Database Subject: Re: [PHP-DEV] RE: PHP 4.0 Bug #9064 Updated: Functions inside functions cause errors

Re: [PHP-DEV] why doesn't list() handle associative arrays?

2001-02-06 Thread Lars Torben Wilson
Cynic writes: $a['x'] = 'one' ; $a['y'] = 'two' ; $a['z'] = 'three' ; list( $x , $y , $z ) = $a ; Warning: Undefined offset: 2 in ... Warning: Undefined offset: 1 in ... Warning: Undefined offset: 0 in ... You mean that this: $a['x'] = 'one'; $a['y'] = 'two'; $a['z'] =

[PHP-DEV] tsrm_error undefined...anybody have a quick answer or should i call it a bug report?

2001-03-01 Thread Lars Torben Wilson
I've got a clean checkout of php4, Zend, and TSRM, and the following configuration script: ./configure \ --with-apxs=/usr/local/apache/bin/apxs \ --with-pspell \ --with-mysql=/usr \ --with-gd \ --with-xml \ --with-zlib \ --with-curl \ --with-sablot \ --with-java \

Re: [PHP-DEV] where is the source is nl2br()?

2001-03-02 Thread Lars Torben Wilson
Lucas Rockwell writes: hi, i know the subject of changing the source code for the community at large is a touchy one, so i want to start off by saying that i want to make this change for our php implementation for use on our site. so, with that said, i would like to modify the nl2br()

Re: [PHP-DEV] where is the source is nl2br()?

2001-03-02 Thread Lars Torben Wilson
Lars Torben Wilson writes: Lucas Rockwell writes: hi, i know the subject of changing the source code for the community at large is a touchy one, so i want to start off by saying that i want to make this change for our php implementation for use on our site. so, with that said, i

Re: [PHP-DEV] manual?

2001-03-09 Thread Lars Torben Wilson
Andrew Hill writes: Hi gurus, Who can I bug about the manual? :) The ODBC page http://www.php.net/manual/en/ref.odbc.php is a little misleading, namely that iODBC is a database, and the subsequent text implies that the unified ODBC functions don't use ODBC when connecting via iODBC, which

Re: [PHP-DEV] manual?

2001-03-09 Thread Lars Torben Wilson
[EMAIL PROTECTED] writes: On Fri, Mar 09, 2001 at 04:22:12PM -0500, Andrew Hill wrote: Who can I bug about the manual? :) The ODBC page http://www.php.net/manual/en/ref.odbc.php is a little misleading, namely that iODBC is a database, and the subsequent text implies that the unified

Re: [PHP-DEV] PHP 4.0 Bug #8935 Updated: A reference to 'this' cannot be used in the constructor method for a class.

2001-03-11 Thread Lars Torben Wilson
Jani Taskinen writes: On Sun, 11 Mar 2001, Stanislav Malyshev wrote: JT Uhm..I have always closed the duplicates after the original (which they JT refer to) was closed. Any opinions about this? As the current bug system I thought "Duplicate" itself is a closed status. Like, work continues

Re: [PHP-DEV] PHP 4.0 Bug #8935 Updated: A reference to 'this' cannot be used in the constructor method for a class.

2001-03-11 Thread Lars Torben Wilson
Jani Taskinen writes: On Sun, 11 Mar 2001, Lars Torben Wilson wrote: Now, it's Sunday morning, I just crawled out of my nice warm bed, and I haven't finished my first cup of bad coffee yet--but if Have that cup of coffee first.. :) Duplicate == Repeated information, and Repeated

[PHP-DEV] Patch for Bug #7488 (pass-by-ref deprecated yet necessary)

2001-03-28 Thread Lars Torben Wilson
Re: Bug #7488, where I tripped upon the fact that call-time pass-by-reference, while deprecated in the language, is required by some functions. (The one which bit me was odbc_fetch_into(), but exec(), getmxrr(), and a few others also appear to require it). For the case of odbc_fetch_into(), the

[PHP-DEV] Question about socket ext. file descriptors

2001-03-28 Thread Lars Torben Wilson
At present, the sockets extension uses integers as file descriptors (e.g. socket() return value). At first I thought maybe they should have been resources until I tried writing some socket code, when I realized that it's easier under many circumstances for them to be ints. Is this going to be

Re: [PHP-DEV] Question about socket ext. file descriptors

2001-03-29 Thread Lars Torben Wilson
s not very PHP to do that. You already have an fd resource as far as I know in ext/standard so you can use that. Andi At 02:02 AM 3/29/2001 -0800, Lars Torben Wilson wrote: Andi Gutmans writes: Why do you need to rely on such behavior? Are you trying to do something naught? :) I t

Re: [PHP-DEV] Question about socket ext. file descriptors

2001-03-29 Thread Lars Torben Wilson
Zeev Suraski writes: ext/sockets does indeed appear to be broken; It doesn't obey the standard PHP return value rules at all (errors are negative numbers instead of false, resource are passed back as-is instead of as resources). I was actually looking at the other socket functions,

Re: [PHP-DEV] Question about socket ext. file descriptors

2001-03-29 Thread Lars Torben Wilson
Andi Gutmans writes: At 12:44 PM 3/29/2001 -0800, Lars Torben Wilson wrote: Slightly different topic--is it a problem that call-time pass-by-ref is being deprecated but several functions require it in order to work? It is possible. Functions which require their argument by reference

[PHP-DEV] mktime() oddity

2001-04-19 Thread Lars Torben Wilson
Hi there, I was just wondering whether I could get a better explanation for the fact that mktime() breaks consistency with itself by not allowing you to get Nov 30 1999 by supplying 0s for month, day, and year. The manual and the source both say that the reason is that the returned timestamp

[PHP-DEV] Possible fix for Bug #8045

2001-04-22 Thread Lars Torben Wilson
Howdy, I was just researching the CCVS extension and noted that its config.m4 doesn't search automatically for the CCVS install dir, and leaving the DIR out of the --with-ccvs=[DIR] causes a blank -L to be added to $LIBS, which makes configure fail on the next test to be run. (Bug #8045 had

[PHP-DEV] Integer casts broken or...?

2001-05-14 Thread Lars Torben Wilson
Type casting to int from string works only for decimal values--is this by design? Example: echo (int) '09' . ', ' . (int) '0x24'; ...produces: 9, 0 which seems intuitively wrong (I'd have expected 0, 36). Is this wrong, or should I just document it? Thanks, Torben -- Torben Wilson

Re: [PHP-DEV] Integer casts broken or...?

2001-05-14 Thread Lars Torben Wilson
: Lars Torben Wilson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 14, 2001 1:29 PM Subject: [PHP-DEV] Integer casts broken or...? Type casting to int from string works only for decimal values--is this by design? Example: echo (int) '09' . ', ' . (int) '0x24'; ...produces

Re: [PHP-DEV] Integer casts broken or...?

2001-05-14 Thread Lars Torben Wilson
-- dealnews.com, Inc. Makers of dealnews, dealmac http://dealnews.com/ | http://dealmac.com/ - Original Message - From: Lars Torben Wilson [EMAIL PROTECTED] To: Brian Moon [EMAIL PROTECTED] Cc: [EMAIL PROTECTED

Re: [PHP-DEV] Lame support for win32 mail() function -rant

2001-05-22 Thread Lars Torben Wilson
[EMAIL PROTECTED] writes: Open source obviously will take a LONGER time because only programmers that want to work for free will do it. Hobbyists and wanna be half ass lamerZ take up the rest of the slack. Joel, I mean no offense here. But what people have been saying is true: in the open

Re: [PHP-DEV] Need Help!!

2001-05-22 Thread Lars Torben Wilson
Brian Little writes: Yes. There is nothing specific in there about compiling the code under windows. Brian Is this not helpful, or are you specifically looking for something else? http://www.php.net/manual/en/install-windows.php#install.windows.build Torben James Moore [EMAIL PROTECTED]

[PHP-DEV] POSIX ext. on Win32?

2001-07-05 Thread Lars Torben Wilson
Can someone clarify for me whether the POSIX extension is expected to work on any Windows variants? Thanks... (Please Cc: me as I had to leave the list temporarily...) -- Torben Wilson [EMAIL PROTECTED] http://www.thebuttlesschaps.com +1.604.709.0506 -- PHP Development Mailing List

Re: [PHP-DEV] Bug #7634 Updated: mysql_pconnect() + lock tables can hang server

2001-11-20 Thread Lars Torben Wilson
Markus Fischer writes: Does this change if you explicetly close the connection? Nope. :) Actually, I had almost forgotten about this problem, but I guess it's still relevant since I do have places where I use table locking, and if the script were to bail there (which it never has in almost 3

Re: [PHP-DEV] Bug #7634 Updated: mysql_pconnect() + lock tables can hang server

2001-11-20 Thread Lars Torben Wilson
Markus Fischer writes: Hmm well ... thinking about this again, the behaviour is expected isn't it? You're locking the table, you're not unlocking it. The persistent connection itself is not influenced by this in anyway and is still valid. Yup, that's *why* it happens.

Re: [PHP-DEV] Bug #7634 Updated: mysql_pconnect() + lock tables can hang server

2001-11-20 Thread Lars Torben Wilson
Markus Fischer writes: One can argue, people using persitent connections should know what they do ... but yes, documenting this is the best thing definitely. So, making this documentation problem then? Any opinion from others? - Markus I don't think it's worth

Re: [PHP-DEV] Bug #14138 Updated: date arithmetic scrambled

2001-11-20 Thread Lars Torben Wilson
[EMAIL PROTECTED] writes: ID: 14138 Updated by: jmcastagnetto Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Date/time related Operating System: Debian GNU/Linux stable PHP Version: 4.0.6 New Comment: Perhaps a problem with the Debian libraries, cannot confirm problem on

Re: [PHP-DEV] Bug #14165 Updated: No way to return variables from remote include()

2001-11-21 Thread Lars Torben Wilson
[EMAIL PROTECTED] writes: Dear Brian, Marco et al: Sorry to be persistent, but I am pretty sure that my postings have been misunderstood, and the last reply I just got from Marco confirms it. I'm hoping once you understand the question, the bogus nature of the question will go away.

Re: [PHP-DEV] references-weirdness???

2001-11-28 Thread Lars Torben Wilson
Wolfram Kriesing writes: why do the following two examples result in different things, even though i would expect the same behaviour? From the manual: http://www.php.net/manual/en/language.references.return.php function find_var ($param) { ...code... return $found_var;

Re: [PHP-DEV] multiple inheritance ext

2001-12-07 Thread Lars Torben Wilson
Markus Fischer writes: On Fri, Dec 07, 2001 at 02:37:48PM -0700, Chris Newbill wrote : Zend Engine 2 will have multiple-inheritance among other nice toys. No one said and nowhere is written ZE2 will have multiple-inheritance. Don't confuse people. - Markus Strictly

Re: [PHP-DEV] Question: Should exit() print out the integer exit-status?

2001-12-19 Thread Lars Torben Wilson
Vlad Krupin writes: Uh? You probably do not want to see the returned code printed anyway (unless you are debugging and are lazy to get it in any other way). Chances are that the codes returned by exit() won't make much sense to anyone but the one who develops the code, and it's not too

Re: [PHP-DEV] Question: Should exit() print out the integer exit-status?

2001-12-19 Thread Lars Torben Wilson
Zeev Suraski writes: At 14:04 19/12/2001, [EMAIL PROTECTED] wrote: Two ways to fix it then, either update the manual, or fix exit(). I go for the last one then. Ppl who relied on the undocumented feature then, did simply the wrong thing. Only the documentation was wrong to begin with! A

Re: [PHP-DEV] Question: Should exit() print out the integer exit-status?

2001-12-19 Thread Lars Torben Wilson
a new function named something like 'exit_print()' which behaves the way the current exit() does. Besides, as Vlad pointed out it's a _hell_ of a lot easier to do the print-out thing in userland than it is to set the exit status. :) Torben At 14:49 19/12/2001, Lars Torben Wilson wrote: Zeev

Re: [PHP-DEV] Question: Should exit() print out the integer exit-status?

2001-12-19 Thread Lars Torben Wilson
to go. Could you please give me nice example what kind of scripts break if the integer is not printed out? --Jani On Wed, 19 Dec 2001, Zeev Suraski wrote: exit_with_status(), silent_exit(), quiet_exit(), etc. etc. Something should fit :) At 14:49 19/12/2001, Lars Torben

Re: [PHP-DEV] Question: Should exit() print out the integer exit-status?

2001-12-19 Thread Lars Torben Wilson
Zeev Suraski writes: At 15:15 19/12/2001, Lars Torben Wilson wrote: Zeev Suraski writes: exit_with_status(), silent_exit(), quiet_exit(), etc. etc. Something should fit :) Yeah, you could do that. But then, why don't we have a 'c_compatible_dirname()' now, instead of a proper dirname

Re: [PHP-DEV] Question: Should exit() print out the integer exit-status?

2001-12-19 Thread Lars Torben Wilson
Zeev Suraski writes: Perhaps I have not explained my position. I don't care whether it outputs the exit status as a string--as long as it sets the error code appropriately *as well*. AFAIR, this is the way it works now... Zeev If that were the case I would expect the last 'echo $?' in

Re: [PHP-DEV] Question: Should exit() print out the integer exit-status?

2001-12-19 Thread Lars Torben Wilson
Vlad Krupin writes: Lars Torben Wilson wrote: Perhaps I have not explained my position. I don't care whether it outputs the exit status as a string--as long as it sets the error code appropriately *as well*. By appropriately, I mean that 'exit(boo);' would a) print 'boo' and b) return

Re: [PHP-DEV] Question: Should exit() print out the integer exit-status?

2001-12-19 Thread Lars Torben Wilson
be that the exit status of the script would be 123 instead of 0. It would still print out the '123, 456 servers are unavailable'. Vlad Lars Torben Wilson wrote: Vlad Krupin writes: Lars Torben Wilson wrote: Perhaps I have not explained my position. I don't care whether it outputs

Re: [PHP-DEV] Question: Should exit() print out the integer exit-status?

2001-12-19 Thread Lars Torben Wilson
, 2001 at 03:33:15PM -0800, Lars Torben Wilson wrote : Vlad Krupin writes: Please, understand me correctly - I have nothing against exit() working in the same manner regardless of the type of the argument. I would love to see that. The problem is that (1) it already accepts a string

Re: [PHP-DEV] Question: Should exit() print out the integer exit-status?

2001-12-19 Thread Lars Torben Wilson
Markus Fischer writes: Implictely is more error prone. How so? Can you give an example? On Wed, Dec 19, 2001 at 04:12:02PM -0800, Lars Torben Wilson wrote : Markus Fischer writes: Why not just check the type of the parameter? No conversion needed at all. If its a long

Re: [PHP-DEV] Question: Should exit() print out the integer exit-status?

2001-12-20 Thread Lars Torben Wilson
Zeev Suraski writes: At 15:18 20/12/2001, Yasuo Ohgaki wrote: Nobody should complain about BC changes if changes are notified early enough and there is alternative way to do the same thing. IMHO. (This has been done for some features such as track vars ;) That's a very impractical

Re: [PHP-DEV] Question: Should exit() print out the integer exit-status?

2001-12-20 Thread Lars Torben Wilson
Torben Wilson wrote: Zeev Suraski writes: At 15:18 20/12/2001, Yasuo Ohgaki wrote: Nobody should complain about BC changes if changes are notified early enough and there is alternative way to do the same thing. IMHO. (This has been done for some features such as track vars

Re: [PHP-DEV] Question: Should exit() print out the integer exit-status?

2001-12-20 Thread Lars Torben Wilson
, the whole output/not output thing isn't that important to me personally; I was more concerned about the inconsistency in the argument usage. At least with that patch it would be language-consistent, even if one doesn't like the output. At 16:29 20/12/2001, Lars Torben Wilson wrote: Zeev Suraski

[PHP-DEV] EXTENSIONS file XSLT

2002-01-28 Thread Lars Torben Wilson
The EXTENSIONS file doesn't appear to have been updated to mention the new xslt extension which replaced Sablotron. Could someone with sufficient karma commit this? Thanks. Index: EXTENSIONS === RCS file:

Re: [PHP-DEV] Re: Bug #3830 Updated: Function to timeout/break offa function

2002-01-28 Thread Lars Torben Wilson
On Mon, 2002-01-28 at 15:08, Wico de Leeuw wrote: Hiya, thats not true... register_tcik_function is for between 2 instructions (lines?) and will not break into a long takeing mysql_select (correct me if i'm wrong) But i still think that such a function will improve php Greetz, Wico

Re: [PHP-DEV] Content Management

2002-01-29 Thread Lars Torben Wilson
On Tue, 2002-01-29 at 22:35, [EMAIL PROTECTED] wrote: Does anyone know of any group who has put together a web content management architecture for a large site? Two things: first, this list is for development of PHP, not in PHP (you want php-general for that), and second, HTML emails will get

[PHP-DEV] Re: [PHP-QA] XOR or bit manupulation

2002-02-02 Thread Lars Torben Wilson
On Sat, 2002-02-02 at 18:25, Mika Toewe wrote: Hi Is there anything that can manipulate a variable bit by bit? If have a variable $x that has to switch between two values. It doesn't matter if it is true or false, 0 and 255 or whatever. Normally the easiest way would be to use xor to have

Re: [PHP-DEV] Re: Developer Seeking To Help

2002-02-03 Thread Lars Torben Wilson
On Sun, 2002-02-03 at 16:29, Chris Shiflett wrote: On Sun, 3 Feb 2002, Manuel Lemos wrote: Manuel, Thank you for the suggestion. If you would be so kind, I have a few questions. 1) How can I change the status of a bug? For example, I was looking through session bugs (since that's most

Re: [PHP-DEV] Strange behaviour in arrays

2002-02-04 Thread Lars Torben Wilson
On Mon, 2002-02-04 at 03:41, Martin Jansen wrote: Taking the following script: ?php $array = array(foo = true, bar = false ); print_r($array); ? The result of print_r is: Array ( [foo] = 1 [bar] = ) Shouldn't false in the

Re: [PHP-DEV] Lists

2002-02-05 Thread Lars Torben Wilson
On Tue, 2002-02-05 at 15:34, John Donagher wrote: This has probably been mentioned before, but I think the naming of php-dev is way misleading. It's funny that people get so ripped when someone sends an off-topic question to this list. Someone who doesn't read the descriptions may very well

Re: [PHP-DEV] Bug #15415: [VOTE] case sensitive function/classnames for PHP5

2002-02-06 Thread Lars Torben Wilson
On Wed, 2002-02-06 at 17:34, Chris Shiflett wrote: NO I think he meant to vote using the voting form in the bug database. ;) Torben On 7 Feb 2002 [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] Operating system: ANY PHP version: 4.1.1 PHP Bug Type:

Re: [PHP-DEV] Constants

2002-02-13 Thread Lars Torben Wilson
On Wed, 2002-02-13 at 17:22, Evan Nemerson wrote: I was thinking about putting together a list of constants, their purpose, what version of PHP they initially appeared in, etc. So far, I have figured out a function called REGISTER_LONG_CONSTANT is used, or a constant is defined in the

[PHP-DEV] Patches for odbc_execute()

2002-02-14 Thread Lars Torben Wilson
Could someone check these out and commit them (or similar)? At the moment, odbc_execute() allows any script to view any file without regard to safe_mode or open_basedir, and also under certain circumstances can corrupt its parameters. See Bug #15516 for more info. It may be desirable to change

Re: [PHP-DEV] Disable magic quote by default.

2002-02-16 Thread Lars Torben Wilson
On Sat, 2002-02-16 at 18:01, Yasuo Ohgaki wrote: Yasuo Ohgaki wrote: Stefan Esser wrote: magic_quotes_by_default is a nice way to make scripts (written by novices) safer. Unfourtunately mqbd forces you to write unsecure scripts. If you put such scripts onto a server that

Re: [PHP-DEV] Help on PHP vs JAVA

2002-02-21 Thread Lars Torben Wilson
On Thu, 2002-02-21 at 01:07, Berlina wrote: Hello to everybody, I need some help for writting a comparison of PHP vs JAVA, and of course, I need that PHP wins ;-D Wins what? For what task? This is quite a nebulous question. And if you've decided which will win before you've done the

Re: [PHP-DEV] Re: [PHP-QA] Re: 4.2.0 CLI

2002-02-27 Thread Lars Torben Wilson
On Wed, 2002-02-27 at 19:27, Zak Greant wrote: On Wed, 2002-02-27 at 20:23, Yasuo Ohgaki wrote: Jim Winstead wrote: In php.dev Edin Kadribasic [EMAIL PROTECTED] wrote: 1. If you compile CGI binary and then issue 'make install' it will be installed in $PREFIX/bin, then CLI will be

Re: [PHP-DEV] PHP module creation

2002-03-03 Thread Lars Torben Wilson
On Sun, 2002-03-03 at 17:30, topside wrote: Where can I get information/documentation on creating my own PHP modules in C? I basicly just want to use some C functions within PHP - so I figure I can write a PHP module with functions which use the C functions I need. thanks --topside The

Re: [PHP-DEV] Re: Bug #15937: Call-time pass-by-reference has beendeprecated

2002-03-07 Thread Lars Torben Wilson
On Thu, 2002-03-07 at 11:23, Markus Fischer wrote: On Thu, Mar 07, 2002 at 08:02:17PM +0100, [EMAIL PROTECTED] wrote : On Thu, 7 Mar 2002, Andrey Hristov wrote: You probably do: $some_len = strlen($some_str); right. you do not need to use . Probably $some_str is passed by

Re: [PHP-DEV] exec + safemode

2002-03-12 Thread Lars Torben Wilson
On Tue, 2002-03-12 at 07:30, Stefan Esser wrote: Morning, (maybe i am just blind...) I doubt this can be counted as support question *grin* Has anyone of you ever tried to exec a command while in safe_mode? exec (blub); works fine, but it seems impossible to give a param to blub that

Re: [PHP-DEV] exec + safemode

2002-03-13 Thread Lars Torben Wilson
On Wed, 2002-03-13 at 00:13, Stefan Esser wrote: Hi, It is not off topic. Its an annoying bug and I asked around if I oversee something if i change php_escape_shell_cmd to ignore stuff between quotes. (off course checking for escaped quotes within the quotes) Stefan Sorry, I didn't see

Re: [PHP-DEV] ?= and %= both work, why not ?php=

2002-04-25 Thread Lars Torben Wilson
On Thu, 2002-04-25 at 15:27, Brinkman, Theodore wrote: Ok. I have the feeling that I'm going to be making myself a bit unpopular here with my first post, but I mean no offense or disrespect. I'm just trying to understand something. PHP allows ?= if short tags are enabled, or %= if