Re: [PHP-DEV] Question for Zeev, Zak or Georg - mysql_query andpossible integer overflow?

2003-03-26 Thread Matt Flaherty
Thanks guys for your feedback. With regard to PEAR, I've had to patch PEAR::DB::mysql to solve another problem I've had with the prepared_queries field growing steadily. I'm sure this is also a problem with the either DB subclasses. I'll post my patch to pear-dev as I don't have a CVS account yet.

Re: [PHP-DEV] Question for Zeev, Zak or Georg - mysql_query and possible integer overflow?

2003-03-25 Thread Zak Greant
D'oh - read too little, too fast. :) On Tue, Mar 25, 2003 at 05:55:42PM -0800, Zeev Suraski wrote: > I believe he meant the query id's that the engine uses, and not the auto > increment id's. Wez's response was accurate, we'll overflow at some > point. This is basically because PHP was designe

Re: [PHP-DEV] Question for Zeev, Zak or Georg - mysql_query and possible integer overflow?

2003-03-25 Thread Zeev Suraski
I believe he meant the query id's that the engine uses, and not the auto increment id's. Wez's response was accurate, we'll overflow at some point. This is basically because PHP was designed with short requests in mind. We could probably fix it relatively easily for ZE2. Zeev At 13:15 25/03

Re: [PHP-DEV] Question for Zeev, Zak or Georg - mysql_query and possible integer overflow?

2003-03-25 Thread Zak Greant
On Tue, Mar 25, 2003 at 01:50:17PM +, Matt Flaherty wrote: > Hi, > > I have a question for the authors of the mysql extension. I'm sure you > gentlemen are very busy, but I'd appreciate your insight if you can > spare a moment. I'm developing a stand-alone php application running in > an infin

Re: [PHP-DEV] Question for Zeev, Zak or Georg - mysql_query andpossible integer overflow?

2003-03-25 Thread Matt Flaherty
Thanks Wez, If all that happens is the query will fail, I can live with that. It's a simple SELECT query called over and over again. If the integer wraps around negative, I'm guessing that would probably have undesirable effects. If not, then I can let it run forever. What I don't want is somethin

Re: [PHP-DEV] Question for Zeev, Zak or Georg - mysql_query andpossible integer overflow?

2003-03-25 Thread Wez Furlong
Hi Matt, Yes, there is a risk of overflow. >From my understanding, the id is signed, so you will hit overflow at 2G rather than 4G resources. This applies to any/all PHP/ZE resources. I'm not sure what happens when it overflows; it seems like the query would fail. You could design your applicati

[PHP-DEV] Question for Zeev, Zak or Georg - mysql_query and possible integeroverflow?

2003-03-25 Thread Matt Flaherty
Hi, I have a question for the authors of the mysql extension. I'm sure you gentlemen are very busy, but I'd appreciate your insight if you can spare a moment. I'm developing a stand-alone php application running in an infinite loop from the command line interface. A mysql database is polled contin

[PHP-DEV] Question on startup

2003-03-09 Thread Marcus Börger
Can anybody answer this: Why do we have a sapi_deactivate(TSRMLS_C); call in php_module_startup()? marcus -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Question about zend_compile

2003-03-05 Thread George Schlossnagle
Look at apc. It tracks per-file function and class tables. http://apc.communityconnect.com/ (v2.0) pear/PECL/apc (v1.x) Both versions do the thing you wish for. -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Question about zend_compile

2003-03-05 Thread John Coggeshall
I'm playing around with the compiler/executor and I was wondering if someone could answer a question.. Is there any reasonable way to essentially push/pop the function table? What I'd like to do is get a function_table hash for only a single file (pesudo code below): PUSH_FUNCTION_TABLE(CG(func

Re: [PHP-DEV] Question on bug list

2003-02-03 Thread Sander Roobol
On Sun, Feb 02, 2003 at 01:17:41PM -0800, Sara Golemon wrote: > > Jesus suggested the same thing, I'm trying out a few different approaches > to > > see what looks best, I'll post again when I have something usable. > > > http://frankenbox.alphaweb.net/test/export.phps > Looks good and useful. +1

Re: [PHP-DEV] Question on bug list

2003-02-02 Thread Sara Golemon
> > Wouldn't it be nice/more useful to generate RDF/RSS on a per-bug basis? > > Then you could just add the feed url to your favourite RSS client. > > > > If you make it do that, then I will take a look and commit, provided > > that there are no objections to this. > > > Jesus suggested the same th

Re: [PHP-DEV] Question on bug list

2003-01-31 Thread Sara Golemon
> Wouldn't it be nice/more useful to generate RDF/RSS on a per-bug basis? > Then you could just add the feed url to your favourite RSS client. > > If you make it do that, then I will take a look and commit, provided > that there are no objections to this. > Jesus suggested the same thing, I'm tryin

Re: [PHP-DEV] Question on bug list

2003-01-31 Thread Wez Furlong
Hey, Wouldn't it be nice/more useful to generate RDF/RSS on a per-bug basis? Then you could just add the feed url to your favourite RSS client. If you make it do that, then I will take a look and commit, provided that there are no objections to this. --Wez. On Fri, 31 Jan 2003, Sara Golemon wro

Re: [PHP-DEV] Question on bug list

2003-01-31 Thread Sara Golemon
> > >I had two questions: One to assign to all NEW messages and one > > >feature request to assign to selective bugs...I wanted to avoid reading > > >all messages on any bug. Thats overkill... > > > > Get a mail client that can handle threading.. > > PHP-Bugs doesn't have "In-Reply-To" and "Ref

Re: [PHP-DEV] Question on bug list

2003-01-31 Thread Daniel Lorch
hi, > >I had two questions: One to assign to all NEW messages and one > >feature request to assign to selective bugs...I wanted to avoid reading > >all messages on any bug. Thats overkill... > > Get a mail client that can handle threading.. PHP-Bugs doesn't have "In-Reply-To" and "References

Re: [PHP-DEV] Question on bug list

2003-01-31 Thread Sara Golemon
> I have a "daily page" I go to every morning which contains all my news > feeds, some comic strips, movie listings, etc If there were a > programmatic query interface to bugs.php.net I could select bug #s to track, > and be able to bring up histories of them from my daily page. > To that end..

Re: [PHP-DEV] Question on bug list

2003-01-31 Thread Sara Golemon
> > Wouldn't it be nice if one could attach himself to a bug and receive an email > > on every new message to that bug? > > I have a "daily page" I go to every morning which contains all my news feeds, some comic strips, movie listings, etc If there were a programmatic query interface to bugs.p

Re: [PHP-DEV] Question on bug list

2003-01-31 Thread Moriyoshi Koizumi
[EMAIL PROTECTED] (Marcus Börger) wrote: > Wouldn't it be nice if one could attach himself to a bug and receive an email > on every new message to that bug? > > And then how am i informed about new bugs? Is there a mailing list for that? > Currently i read the bug-summary-list.. I was thinking o

Re: [PHP-DEV] Question on bug list

2003-01-31 Thread Marcus Börger
At 11:37 31.01.2003, Jani Taskinen wrote: On Fri, 31 Jan 2003, Marcus Börger wrote: >I had two questions: One to assign to all NEW messages and one >feature request to assign to selective bugs...I wanted to avoid reading >all messages on any bug. Thats overkill... Get a mail client that can

Re: [PHP-DEV] Question on bug list

2003-01-31 Thread Jani Taskinen
On Fri, 31 Jan 2003, Marcus Börger wrote: >I had two questions: One to assign to all NEW messages and one >feature request to assign to selective bugs...I wanted to avoid reading >all messages on any bug. Thats overkill... Get a mail client that can handle threading.. --Jani

Re: [PHP-DEV] Question on bug list

2003-01-31 Thread Marcus Börger
At 10:24 31.01.2003, Thomas Seifert wrote: On Fri, 31 Jan 2003 02:49:01 + [EMAIL PROTECTED] (Daniel Lorch) wrote: > hi, > > > > Wouldn't it be nice if one could attach himself to a bug and receive an > > > email > > > on every new message to that bug? > > > > > > And then how am i informed

Re: [PHP-DEV] Question on bug list

2003-01-31 Thread Thomas Seifert
On Fri, 31 Jan 2003 02:49:01 + [EMAIL PROTECTED] (Daniel Lorch) wrote: > hi, > > > > Wouldn't it be nice if one could attach himself to a bug and receive an > > > email > > > on every new message to that bug? > > > > > > And then how am i informed about new bugs? Is there a mailing list f

Re: [PHP-DEV] Question on bug list

2003-01-30 Thread Daniel Lorch
hi, > > Wouldn't it be nice if one could attach himself to a bug and receive an > > email > > on every new message to that bug? > > > > And then how am i informed about new bugs? Is there a mailing list for > > that? > > Currently i read the bug-summary-list.. > > > > [EMAIL PROTECTED] Empty

Re: [PHP-DEV] Question on bug list

2003-01-30 Thread Tal Peer
Marcus Börger wrote: Wouldn't it be nice if one could attach himself to a bug and receive an email on every new message to that bug? And then how am i informed about new bugs? Is there a mailing list for that? Currently i read the bug-summary-list.. [EMAIL PROTECTED] marcus -- PHP Dev

[PHP-DEV] Question on bug list

2003-01-30 Thread Marcus Börger
Wouldn't it be nice if one could attach himself to a bug and receive an email on every new message to that bug? And then how am i informed about new bugs? Is there a mailing list for that? Currently i read the bug-summary-list.. marcus -- --->>> mailto:[EMAIL PROTECTED] <<<-

Re: [PHP-DEV] Question on SSL.

2003-01-27 Thread Wei Weng
ED]> To: "Wei Weng" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, January 27, 2003 1:02 PM Subject: Re: [PHP-DEV] Question on SSL. > Hello, > > please forward user questions to the [EMAIL PROTECTED] > mailinglist, this list is for development

Re: [PHP-DEV] Question on SSL.

2003-01-27 Thread Derick Rethans
Hello, please forward user questions to the [EMAIL PROTECTED] mailinglist, this list is for development _OF_ PHP, not development _with_ PHP. Derick On Mon, 27 Jan 2003, Wei Weng wrote: > This question is a bit Apache specific. > > How does PHP detect whether it is on a SSL connection (with re

[PHP-DEV] Question on SSL.

2003-01-27 Thread Wei Weng
This question is a bit Apache specific. How does PHP detect whether it is on a SSL connection (with respect to an Apache server)? Thanks Wei -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Question about Classes

2002-10-30 Thread Juerg Zgraggen
hi i made a class in PHP. id like to define public and private function for that class like in C++. is this possible? the public and private inside the class does not work... why? thanx, jürg zgraggen /* My Class*/ class bz_ClassX { var $nNumber; var $strDescription; var $strModul; // p

[PHP-DEV] Question regarding zend_hash_*_functions and bug 17490

2002-09-30 Thread Douglas Hawkins
I already posted this, but received no responses. For that reason, I am posting it again. I have been investigating the cause of bug 17490 which appears to have been a problem with the serializer. I am working with the PHP 4.2.3 source. http:/

[PHP-DEV] Question regarding zend_hash_* functions

2002-09-27 Thread Douglas Hawkins
I have been investigating the cause of bug 17490 which appears to have been a problem with the serializer. I am working with the PHP 4.2.3 source. http://bugs.php.net/bug.php?id=17490 The cause of the problem appears to be that zend_hash_num_elements was returning a number smaller than the act

Re: [PHP-DEV] Question, might be stupid...

2002-09-25 Thread DJ Anubis
Le Jeudi 26 Septembre 2002 04:12, Ken a écrit : > I have a HTML form that has a session variable called $cost. Now I want to > set the value to this table data input field. Anyone know how this is > accomplished? > > > > Thanks in advance! This list is only intended for core PHP development. You

[PHP-DEV] Question, might be stupid...

2002-09-25 Thread Ken
I have a HTML form that has a session variable called $cost. Now I want to set the value to this table data input field. Anyone know how this is accomplished? Thanks in advance! -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] question type

2002-09-19 Thread Vergoz Michael \(SYSDOOR\)
; Sent: Thursday, September 19, 2002 3:06 PM Subject: Re: [PHP-DEV] question type > > Vergoz Michael (SYSDOOR) wrote: > >> does PHP support _s64 type ? > > there is no such thing as a _s64 type in C, > what you are refering to is a typedef to > a native C type of that s

Re: [PHP-DEV] question type

2002-09-19 Thread Hartmut Holzgraefe
> Vergoz Michael (SYSDOOR) wrote: >> does PHP support _s64 type ? there is no such thing as a _s64 type in C, what you are refering to is a typedef to a native C type of that size ... [EMAIL PROTECTED] wrote: > No, PHP has only: > > null > bool (true or false) > string > integer (signed, 32 bi

Re: [PHP-DEV] question type

2002-09-19 Thread derick
On Thu, 19 Sep 2002, Vergoz Michael (SYSDOOR) wrote: > hi list, > > does PHP support _s64 type ? No, PHP has only: null bool (true or false) string integer (signed, 32 bits) array object Derick --- Derick Rethans

[PHP-DEV] question type

2002-09-19 Thread Vergoz Michael \(SYSDOOR\)
hi list, does PHP support _s64 type ? michael

[PHP-DEV] Question about print_r

2002-05-29 Thread Garland foster
Hi all, Does anyone know any problem related to print_r($foo) if $foo is a resource, I'm developing a module where a function returns a resource, that is then used by other functions, if I use a print_r($resource) in the middle things change. I'm starting to think that print_r changes the resourc

RE: [PHP-DEV] question

2002-03-25 Thread Joseph Tate
IL PROTECTED] > Subject: [PHP-DEV] question > > > look this code : > > char buffer[MAXPATHLEN]; > char *p; > > if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) > return; > > if((p = VCWD_GETCWD(buffer, MAX

[PHP-DEV] question

2002-03-24 Thread Vergoz Michael (SYSDOOR)
look this code : char buffer[MAXPATHLEN]; char *p; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) return; if((p = VCWD_GETCWD(buffer, MAXPATHLEN)) == NULL) { POSIX_G(last_error) = errno; RETURN_FALSE; } RETURN_STRING(buffer

Re: [PHP-DEV] Question concerning zend_mem_header

2002-03-23 Thread Zeev Suraski
At 02:08 PM 3/23/2002, Stefan Esser wrote: >Hi, > >currently all memory allocated with emalloc has a >zend_mem_header infront of it. This header contains >the backward and forward pointer and the size of this >block. My question is: is there any need for this >linked list on a production system? I

Re: [PHP-DEV] Question concerning zend_mem_header

2002-03-23 Thread Stefan Esser
On Sat, Mar 23, 2002 at 01:23:41PM +0200, Andi Gutmans wrote: > The list is used in order to cleanup any per-request memory leaks (Also in > release mode). It's very much needed. Ahhh i see. So it would not be needed if there aren't any memory leaks anymore. Okay now I understand the use of it.

Re: [PHP-DEV] Question concerning zend_mem_header

2002-03-23 Thread Andi Gutmans
The list is used in order to cleanup any per-request memory leaks (Also in release mode). It's very much needed. Andi At 13:08 23/03/2002 +0100, Stefan Esser wrote: >Hi, > >currently all memory allocated with emalloc has a >zend_mem_header infront of it. This header contains >the backward and f

[PHP-DEV] Question concerning zend_mem_header

2002-03-23 Thread Stefan Esser
Hi, currently all memory allocated with emalloc has a zend_mem_header infront of it. This header contains the backward and forward pointer and the size of this block. My question is: is there any need for this linked list on a production system? I commented the ADD_POINTER_TO_LIST and REMOVE_POI

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

2001-12-20 Thread Vlad Krupin
Zeev Suraski wrote: [snip] > What I *really* fail to understand is the gain we get by modifying > exit()'s behavior, as opposed to adding a new function or adding a new > $silent argument. Giving a WFF to several people? Consistency with > other languages that have nothing to do with the Web

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

2001-12-20 Thread Lars Torben Wilson
[EMAIL PROTECTED] writes: > On Thu, 20 Dec 2001, Zeev Suraski wrote: > > > This patch is fine with me, but as it would still print out the error > > message, I think it's not fine with some other people... > > This solves nothing IMO. The problem is that exit (5) displays '5', and > that must be

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

2001-12-20 Thread Yasuo Ohgaki
Zeev Suraski wrote: > 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 imprac

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

2001-12-20 Thread derick
On Thu, 20 Dec 2001, Zeev Suraski wrote: > This patch is fine with me, but as it would still print out the error > message, I think it's not fine with some other people... This solves nothing IMO. The problem is that exit (5) displays '5', and that must be fixed. Derick > > At 16:29 20/12/2001

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

2001-12-20 Thread Lars Torben Wilson
Zeev Suraski writes: > This patch is fine with me, but as it would still print out the error > message, I think it's not fine with some other people... Well, that'd still be doable with that optional 2nd param I mentioned. But that's someone else's fight. :) 'night > At 16:29 20/12/2001, Lar

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

2001-12-20 Thread Zeev Suraski
This patch is fine with me, but as it would still print out the error message, I think it's not fine with some other people... At 16:29 20/12/2001, Lars Torben Wilson wrote: >Zeev Suraski writes: > > At 15:18 20/12/2001, Yasuo Ohgaki wrote: > > >Nobody should complain about BC changes if changes

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 Zeev Suraski
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 statement in my opinion... Break

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

2001-12-20 Thread derick
On Thu, 20 Dec 2001, benjamin yates wrote: > > > > No offense Benjamin, but you don't understand the conversation. This is > > about running PHP apps in consoles, mail pre-processors and as cron jobs > > where exit status is needed. The only way to get an exit status is with > > exit. > > wow

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

2001-12-20 Thread benjamin yates
> No offense Benjamin, but you don't understand the conversation. This is > about running PHP apps in consoles, mail pre-processors and as cron jobs > where exit status is needed. The only way to get an exit status is with > exit. wow i just tried it... i never realized that return wasn't se

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

2001-12-20 Thread Yasuo Ohgaki
Markus Fischer wrote: > Actually, a good idea to keep BC. Its now just a matter if > its really worth to keep BC for exit. I agree with Markus. However, since there are people who want strong compatibility. I think we can wait exit() to return status code, a litle more. As I posted al

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

2001-12-19 Thread Markus Fischer
Actually, a good idea to keep BC. Its now just a matter if its really worth to keep BC for exit. On Wed, Dec 19, 2001 at 08:28:19PM +, [EMAIL PROTECTED] wrote : > > Just a thought... > > --- > void exit ( [mixed messag

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

2001-12-19 Thread Rasmus Lerdorf
This is what I suggested ages ago. I think this is the correct solution for this one. I don't see mass-breakage, or perhaps even any, caused by this change. The case-insensitivity stuff is completely another matter though. I see very little benefit in 1) breaking thousands of existing scri

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

2001-12-19 Thread php4
Just a thought... --- void exit ( [mixed message[, int return_value]]) Note: This is not a real function, but a language construct. The exit() function terminates execution of the script. Message must be a string or an int. If

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

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

2001-12-19 Thread Markus Fischer
Implictely is more error prone. 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 -> exit/no show it. If anything > > else (well, thats to

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

2001-12-19 Thread Markus Fischer
Yeah Jani I know. It was more targeted at Torben than the whole audience ;) On Thu, Dec 20, 2001 at 02:16:21AM +0200, Jani Taskinen wrote : > > I have said this all the time..as well as many others. > Try convince Zeev to fix his one script that breaks. > > --Jani > > > On Thu, 20 De

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

2001-12-19 Thread Lars Torben Wilson
Markus Fischer writes: > Why not just check the type of the parameter? No conversion > needed at all. If its a long -> exit/no show it. If anything > else (well, thats to argue, but not the point) exit and show. > It would be that easy. And, in that case, I don't care about > t

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

2001-12-19 Thread Jani Taskinen
I have said this all the time..as well as many others. Try convince Zeev to fix his one script that breaks. --Jani On Thu, 20 Dec 2001, Markus Fischer wrote: >Why not just check the type of the parameter? No conversion >needed at all. If its a long -> exit/no show it. If anything >

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

2001-12-19 Thread Markus Fischer
Why not just check the type of the parameter? No conversion needed at all. If its a long -> exit/no show it. If anything else (well, thats to argue, but not the point) exit and show. It would be that easy. And, in that case, I don't care about the number of broken scripts. Prov

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

2001-12-19 Thread Lars Torben Wilson
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, and > has been working that way for a long time, so this ca

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

2001-12-19 Thread Zeev Suraski
t;[EMAIL PROTECTED]>; "Jani Taskinen" <[EMAIL PROTECTED]>; "PHP >Developers Mailing List" <[EMAIL PROTECTED]> >Sent: Wednesday, December 19, 2001 2:26 PM >Subject: Re: [PHP-DEV] Question: Should exit() print out the integer >exit-status? > > > >

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

2001-12-19 Thread Vlad Krupin
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, and has been working that way for a long time, so this can't go away, and (2) there

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) ret

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

2001-12-19 Thread Brian Moon
s" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, December 19, 2001 3:00 PM Subject: Re: [PHP-DEV] Question:

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

2001-12-19 Thread Jason Greene
<[EMAIL PROTECTED]>; "Vlad Krupin" <[EMAIL PROTECTED]>; "Jani Taskinen" <[EMAIL PROTECTED]>; "PHP Developers Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, December 19, 2001 2:26 PM Subject: Re: [PHP-DEV] Question: Should exit() print out the

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

2001-12-19 Thread benjamin yates
>What are you talking about? >1) Setting the exit status of a process is common. >2) Try and right any kind of executer/parser that performs well without >goto's 1 - u can return a value just fine (and silently :) with return, and having multiple exit points i've always thought was bad design

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

2001-12-19 Thread Jason Greene
[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, December 19, 2001 2:45 PM Subject: Re: [PHP-DEV] Question: Should exit() print out the integer exit-status? > >Tw

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

2001-12-19 Thread benjamin yates
>Two reasons: one more... (3) exit is as forbidden as goto so stop using it. -benjamin _ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- PHP Development Mailing List T

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

2001-12-19 Thread Zeev Suraski
eev Suraski" <[EMAIL PROTECTED]> >To: "Lars Torben Wilson" <[EMAIL PROTECTED]> >Cc: <[EMAIL PROTECTED]>; "Vlad Krupin" <[EMAIL PROTECTED]>; "Jani Taskinen" ><[EMAIL PROTECTED]>; "PHP Developers Mailing List" ><

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

2001-12-19 Thread Vlad Krupin
Lars Torben Wilson wrote: >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_compat

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

2001-12-19 Thread Vlad Krupin
it's kinda lame to create a yet another function when exit() already exists. After a while you have die(), exit(), exit_with_status(), silent_exit(), loud_exit(), etc. Maybe not *that* bad, but still exit is just as simple as... well, an exit. Unfortunately, it seems like there will be tons of

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

2001-12-19 Thread Jani Taskinen
Krupin" <[EMAIL PROTECTED]>; "Jani Taskinen" <[EMAIL PROTECTED]>; >"PHP Developers Mailing List" ><[EMAIL PROTECTED]> >Sent: Wednesday, December 19, 2001 6:59 AM >Subject: Re: [PHP-DEV] Question: Should exit() print out the integer exit-status? &g

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

2001-12-19 Thread Jason Greene
Cc: <[EMAIL PROTECTED]>; "Vlad Krupin" <[EMAIL PROTECTED]>; "Jani Taskinen" <[EMAIL PROTECTED]>; "PHP Developers Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, December 19, 2001 6:59 AM Subject: Re: [PHP-DEV] Question: Should exit() print

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

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

2001-12-19 Thread Zeev Suraski
At 16:11 19/12/2001, Lars Torben Wilson wrote: >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 do

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

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

2001-12-19 Thread Zeev Suraski
At 15:21 19/12/2001, Lars Torben Wilson wrote: >Zeev Suraski writes: > > Even if you repeat it may times, it still wouldn't be a bug. When I wrote > > exit() I intended exit() to print out its argument, regardless of its > > type. It's been behaving like this since PHP 3.0.0 alpha 1, because it

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

2001-12-19 Thread Zeev Suraski
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() patch >which has b

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

2001-12-19 Thread Lars Torben Wilson
Zeev Suraski writes: > Even if you repeat it may times, it still wouldn't be a bug. When I wrote > exit() I intended exit() to print out its argument, regardless of its > type. It's been behaving like this since PHP 3.0.0 alpha 1, because it was > supposed to behave like that. > The doc team

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

2001-12-19 Thread Lars Torben Wilson
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() patch which has been proven to break BC? Because the new version is Corr

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

2001-12-19 Thread Zeev Suraski
Even if you repeat it may times, it still wouldn't be a bug. When I wrote exit() I intended exit() to print out its argument, regardless of its type. It's been behaving like this since PHP 3.0.0 alpha 1, because it was supposed to behave like that. The doc team got it wrong, and misdocumented

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

2001-12-19 Thread Jani Taskinen
Fixing a bug by adding new function that behaves correctly is really not the way 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. e

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

2001-12-19 Thread Zeev Suraski
exit_with_status(), silent_exit(), quiet_exit(), etc. etc. Something should fit :) At 14:49 19/12/2001, Lars Torben Wilson wrote: >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 las

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 wi

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

2001-12-19 Thread Zeev Suraski
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 documentation bug should

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

2001-12-19 Thread derick
Hello, On Wed, 19 Dec 2001, Lars Torben Wilson wrote: > Vlad Krupin writes: > > lot of reasons), and we don't have this functionality. Hence, at least > > if parameter to exit() is an int, we should just return the error code, > > *not* print it. > > +1 >From a techincal point of view I totally

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 to

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

2001-12-18 Thread Vlad Krupin
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 difficult to do: echo 1; exi

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

2001-12-18 Thread Jani Taskinen
background information: http://bugs.php.net/bug.php?edit=1&id=11008 http://bugs.php.net/bug.php?edit=1&id=14574 exit() function is broken. Fixing the broken behaviour is the only real solution, IMO. One solution: - When passed argument is string: print out this string - When passed argument i

[PHP-DEV] question re: Bug id #5428

2001-10-21 Thread Adam Wisniewski
Hi all, Link "http://bugs.php.net/bug-dos-and-donts.php"; is mentioned @ "http://bugs.php.net/bug.php?id=5428";, any idea if this link is still working or around anywhere, or would it even be helpful to me. I'm getting "segmentation fault (11)" when executing Sablotron's xslt_process() function.

[PHP-DEV] Question about php_fopen_and_set_opened_path...

2001-09-20 Thread Andy Sautins
Not 100% sure what my question is here, but I'm curious. A little while back I was running PHP-4.0.6 on Solaris8 using apache and wanted to get an idea of expect performance and configuration issues ( was mostly curious about my apache configuration to make sure the .htaccess calls were

[PHP-DEV] Re: [PHP] RE: [PHP-DEV] Question about PDF lib.

2001-08-27 Thread By Proxy
Try http://groups.yahoo.com/pdflib/ - Original Message - From: "Criegern, Phillipp von (PDV)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, August 27, 2001 6:12 PM Subject: [PHP] RE: [PHP-DEV] Q

RE: [PHP-DEV] Question about PDF lib.

2001-08-27 Thread Criegern, Phillipp von (PDV)
I would suggest looking for a real *Support Forum* or http://www.pdflib.com/ >Do anyone know, how i define the "width", "height" etc. parameters in PDFlib >functions in PHP? Is it in cm, pixels, inch? Or? -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROT

[PHP-DEV] Question about PDF lib.

2001-08-27 Thread Johan Holst Nielsen
Hi Do anyone know, how i define the "width", "height" etc. parameters in PDFlib functions in PHP? Is it in cm, pixels, inch? Or? Anyone know? I need to generate printingfiles, so I hope I can use cm or sometime like that :o) Regards, Johan -- PHP Development Mailing List

  1   2   >