Re: [PHP] exit and ob_*
On 10/12/07, Robert Cummings [EMAIL PROTECTED] wrote: Have you checked your error log to see if there an error being generated that you can't see? Cheers, Rob. Yes, no unusual errors. The thing is... this wasn't an issue when I was developing on a Suse box running apache. Recently, I moved development over to Win 2k3 running IIS6. Since then, several issues have cropped up. =/ Think this could be IIS-related? ~Philip On Fri, 2007-10-12 at 14:03 -0500, Philip Thompson wrote: Hi. This is weird. Here's my structure. I have an index.php file that just includes the content depending on what page the user is on. So, because of potential redirection from those sub-pages, I call ob_start() before any output (in index.php). I'm doing some testing and I'm wanting to see what information's in a variable, etc. So, I display the variable contents and call 'exit' so that the page doesn't continue and get redirected elsewhere. However, when I call 'exit' on one of these sub-pages, I get no output from that sub-page. During testing, I took out the redirection and commented the exit line. The output displayed. Before commenting the exit function call, I called ob_clean to see if it had something to do with there being content in the buffer - the content of the sub-page showed WITH the exit. Why would no information show when calling exit(), even if ob_start had been called? I've never had to deal with this before. [examples] // This is content from a sub-page called from index.php [example code: does not work] echo 'hi'; exit; // 'hi' does NOT display ... [example code: does work] ob_clean(); echo 'hi'; exit; // 'hi' DOES display ... [/examples] I suppose this isn't a big deal during production, but during testing it's really frustrating. Does anyone have any suggestions as to why 'exit' is functioning (no pun intended) this way? Note: I do want what's currently in the buffer to be sent to the browser, so I don't want to have to call ob_clean. Any thoughts? Another person (*francois at bonzon dot com) *mentions this on the PHP exit page http://www.php.net/exit, but I'm still not sure why it happens. Thanks in advance, ~Philip -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ...
Re: [PHP] exit and ob_*
On 10/12/07, Philip Thompson [EMAIL PROTECTED] wrote: I suppose this isn't a big deal during production, but during testing it's really frustrating. Does anyone have any suggestions as to why 'exit' is functioning (no pun intended) this way? Note: I do want what's currently in the buffer to be sent to the browser, so I don't want to have to call ob_clean. Any thoughts? I don't know about the behavior, but if you want the contents to be sent, you can flush them using ob_flush() instead of clearing them with ob_clean(). Andrew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] exit and ob_*
On Fri, 2007-10-12 at 14:30 -0500, Philip Thompson wrote: On 10/12/07, Robert Cummings [EMAIL PROTECTED] wrote: Have you checked your error log to see if there an error being generated that you can't see? Cheers, Rob. Yes, no unusual errors. The thing is... this wasn't an issue when I was developing on a Suse box running apache. Recently, I moved development over to Win 2k3 running IIS6. Since then, several issues have cropped up. =/ Think this could be IIS-related? No idea, I've never used IIS :) Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] exit and ob_*
On 10/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-10-12 at 14:30 -0500, Philip Thompson wrote: On 10/12/07, Robert Cummings [EMAIL PROTECTED] wrote: Have you checked your error log to see if there an error being generated that you can't see? Cheers, Rob. Yes, no unusual errors. The thing is... this wasn't an issue when I was developing on a Suse box running apache. Recently, I moved development over to Win 2k3 running IIS6. Since then, several issues have cropped up. =/ Think this could be IIS-related? No idea, I've never used IIS :) Cheers, Rob. Oh lucky you! I'm drafting reasons on why we should switch to apache. I may have some leverage with this issue! ;-) Thanks for you help. Anyone else have some thoughts? ~Philip
Re: [PHP] exit and ob_*
Have you checked your error log to see if there an error being generated that you can't see? Cheers, Rob. On Fri, 2007-10-12 at 14:03 -0500, Philip Thompson wrote: Hi. This is weird. Here's my structure. I have an index.php file that just includes the content depending on what page the user is on. So, because of potential redirection from those sub-pages, I call ob_start() before any output (in index.php). I'm doing some testing and I'm wanting to see what information's in a variable, etc. So, I display the variable contents and call 'exit' so that the page doesn't continue and get redirected elsewhere. However, when I call 'exit' on one of these sub-pages, I get no output from that sub-page. During testing, I took out the redirection and commented the exit line. The output displayed. Before commenting the exit function call, I called ob_clean to see if it had something to do with there being content in the buffer - the content of the sub-page showed WITH the exit. Why would no information show when calling exit(), even if ob_start had been called? I've never had to deal with this before. [examples] // This is content from a sub-page called from index.php [example code: does not work] echo 'hi'; exit; // 'hi' does NOT display ... [example code: does work] ob_clean(); echo 'hi'; exit; // 'hi' DOES display ... [/examples] I suppose this isn't a big deal during production, but during testing it's really frustrating. Does anyone have any suggestions as to why 'exit' is functioning (no pun intended) this way? Note: I do want what's currently in the buffer to be sent to the browser, so I don't want to have to call ob_clean. Any thoughts? Another person (*francois at bonzon dot com) *mentions this on the PHP exit page http://www.php.net/exit, but I'm still not sure why it happens. Thanks in advance, ~Philip -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] exit and ob_*
Hi. This is weird. Here's my structure. I have an index.php file that just includes the content depending on what page the user is on. So, because of potential redirection from those sub-pages, I call ob_start() before any output (in index.php). I'm doing some testing and I'm wanting to see what information's in a variable, etc. So, I display the variable contents and call 'exit' so that the page doesn't continue and get redirected elsewhere. However, when I call 'exit' on one of these sub-pages, I get no output from that sub-page. During testing, I took out the redirection and commented the exit line. The output displayed. Before commenting the exit function call, I called ob_clean to see if it had something to do with there being content in the buffer - the content of the sub-page showed WITH the exit. Why would no information show when calling exit(), even if ob_start had been called? I've never had to deal with this before. [examples] // This is content from a sub-page called from index.php [example code: does not work] echo 'hi'; exit; // 'hi' does NOT display ... [example code: does work] ob_clean(); echo 'hi'; exit; // 'hi' DOES display ... [/examples] I suppose this isn't a big deal during production, but during testing it's really frustrating. Does anyone have any suggestions as to why 'exit' is functioning (no pun intended) this way? Note: I do want what's currently in the buffer to be sent to the browser, so I don't want to have to call ob_clean. Any thoughts? Another person (*francois at bonzon dot com) *mentions this on the PHP exit page http://www.php.net/exit, but I'm still not sure why it happens. Thanks in advance, ~Philip
Re: [PHP] exit and ob_*
On 10/12/07, Andrew Ballard [EMAIL PROTECTED] wrote: On 10/12/07, Philip Thompson [EMAIL PROTECTED] wrote: I suppose this isn't a big deal during production, but during testing it's really frustrating. Does anyone have any suggestions as to why 'exit' is functioning (no pun intended) this way? Note: I do want what's currently in the buffer to be sent to the browser, so I don't want to have to call ob_clean. Any thoughts? I don't know about the behavior, but if you want the contents to be sent, you can flush them using ob_flush() instead of clearing them with ob_clean(). Andrew That's the issue. The contents from the super page (index.php) ARE being flushed. However, the contents of the sub-pages are NOT being flushed - nothing is displayed. That's why this is weird. Some of the buffer is flushed, but not the whole thing. Or, the contents of the sub-pages are making it into the buffer (which makes no sense - size is definitely not an issue). However, I did call ob_flush to see if this would work. Nope. It didn't make a difference. But this makes sense b/c the contents of the super-page are already flushed. Blegh!!! This is frustrating. Is happy hour here yet?! ~Philip
[PHP] exit() function question
Why exit() funtion always exit with 255 value instead of the passed value, in php 4.2.2, even when I compile with --enable-cli. Check the code bellow, to see # cat t3.php #!/usr/src/php-4.2.2/php ?php echo Version: ,phpversion(),\n; exit(1); ? # ./t3.php ; echo last run exit value:$? Version: 4.2.2 last run exit value:255 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] exit() function question
Hi, Wednesday, September 4, 2002, 1:30:49 AM, you wrote: RL Why exit() funtion always exit with 255 value instead of the passed RL value, in php 4.2.2, even when I compile with --enable-cli. RL Check the code bellow, to see RL # cat t3.php RL #!/usr/src/php-4.2.2/php RL ?php RL echo Version: ,phpversion(),\n; RL exit(1); ? RL # ./t3.php ; echo last run exit value:$? RL Version: 4.2.2 RL last run exit value:255 Try changing the commas to dots like echo Version: .phpversion().\n; -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Exit script early
Ok, So I'm creating a details.php page where I'm expecting the url to be something like: /details.php?id=12345 Thus in my php I have the following: if (!isset($id)) { // if no id exsits // Create a page saying ID not found, goto index writeHTMLTag(); writeHeader(Error, never); writeBodyTag(); writeLogoNav(); echo h1Error: A hospital ID was not found./h1 pGoto: a href=\index.php\Nursing Career Match/a ; writeFooter(); writeHTMLTagCloser(); // what command can I use to end the script right here? } else { // Run MySQL stuff and display page } My question is what command can I use to end the script [inside the top part of that if statement]? ~ Mike -- Mike Zornek | Project Leader Apple Student Developers The Insanely Great Site with the Insanely Long URL http://www.applestudentdevelopers.org Personal Site: http://www.mikezornek.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Exit script early
exit; =) Adam Voigt [EMAIL PROTECTED] On Tue, 2002-07-16 at 13:08, Michael Zornek wrote: Ok, So I'm creating a details.php page where I'm expecting the url to be something like: /details.php?id=12345 Thus in my php I have the following: if (!isset($id)) { // if no id exsits // Create a page saying ID not found, goto index writeHTMLTag(); writeHeader(Error, never); writeBodyTag(); writeLogoNav(); echo h1Error: A hospital ID was not found./h1 pGoto: a href=\index.php\Nursing Career Match/a ; writeFooter(); writeHTMLTagCloser(); // what command can I use to end the script right here? } else { // Run MySQL stuff and display page } My question is what command can I use to end the script [inside the top part of that if statement]? ~ Mike -- Mike Zornek | Project Leader Apple Student Developers The Insanely Great Site with the Insanely Long URL http://www.applestudentdevelopers.org Personal Site: http://www.mikezornek.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Exit script early
So I'm creating a details.php page where I'm expecting the url to be something like: My question is what command can I use to end the script [inside the top part of that if statement]? Ironically enough, exit(); Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Exit script early
RTFM re: Exit and Continue. Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Michael Zornek [EMAIL PROTECTED] 07/16/02 01:08PM Ok, So I'm creating a details.php page where I'm expecting the url to be something like: /details.php?id=12345 Thus in my php I have the following: if (!isset($id)) { // if no id exsits // Create a page saying ID not found, goto index writeHTMLTag(); writeHeader(Error, never); writeBodyTag(); writeLogoNav(); echo h1Error: A hospital ID was not found./h1 pGoto: a href=\index.php\Nursing Career Match/a ; writeFooter(); writeHTMLTagCloser(); // what command can I use to end the script right here? } else { // Run MySQL stuff and display page } My question is what command can I use to end the script [inside the top part of that if statement]? ~ Mike -- Mike Zornek | Project Leader Apple Student Developers The Insanely Great Site with the Insanely Long URL http://www.applestudentdevelopers.org Personal Site: http://www.mikezornek.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Exit script early
Why do you need to exit? If your code is layed out correctly, you shouldn't have to. if($something) { //part 1 } else { //part 2 } If $something evaluates to true, only Part 1 is executed...part 2 is never seen. vice versa if $something is negative. ---John Holmes... - Original Message - From: Michael Zornek [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 16, 2002 1:08 PM Subject: [PHP] Exit script early Ok, So I'm creating a details.php page where I'm expecting the url to be something like: /details.php?id=12345 Thus in my php I have the following: if (!isset($id)) { // if no id exsits // Create a page saying ID not found, goto index writeHTMLTag(); writeHeader(Error, never); writeBodyTag(); writeLogoNav(); echo h1Error: A hospital ID was not found./h1 pGoto: a href=\index.php\Nursing Career Match/a ; writeFooter(); writeHTMLTagCloser(); // what command can I use to end the script right here? } else { // Run MySQL stuff and display page } My question is what command can I use to end the script [inside the top part of that if statement]? ~ Mike -- Mike Zornek | Project Leader Apple Student Developers The Insanely Great Site with the Insanely Long URL http://www.applestudentdevelopers.org Personal Site: http://www.mikezornek.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Exit();
Hello, I'm using recursive functions and call a function from inside another one. The problem is that when I call the Exit(); function the whole program is aborted. How can I quit just the current function, not the whole program ? example Function One() { If (!$var) { Exit(); } } Function Two(); { One();//This line kills the program Print(Hello); //This is not printed =( } /example TIA, __ Mauricio Cuenca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Exit();
return maybe. At 16:24 04/04/2002, Mauricio Cuenca wrote: Hello, I'm using recursive functions and call a function from inside another one. The problem is that when I call the Exit(); function the whole program is aborted. How can I quit just the current function, not the whole program ? example Function One() { If (!$var) { Exit(); } } Function Two(); { One();//This line kills the program Print(Hello); //This is not printed =( } /example TIA, __ Mauricio Cuenca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php * Ben Edwards +44 (0)117 9400 636 * * Critical Site Builderhttp://www.criticaldistribution.com * * online collaborative web authoring content management system * * i-Contact Progressive Video http://www.videonetwork.org * * Smashing the Corporate image http://www.subvertise.org * * Bristol Indymedia http://bristol.indymedia.org * * Bristol's radical news http://www.bristle.org.uk * * PGP : F0CA 42B8 D56F 28AD 169B 49F3 3056 C6DB 8538 EEF8 * -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Exit();
Good day, As the documentation says, exit() will end your script. http://www.php.net/manual/en/function.exit.php Use return() to end a function. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: Mauricio Cuenca [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 8:25 AM To: [EMAIL PROTECTED] Subject: [PHP] Exit(); Hello, I'm using recursive functions and call a function from inside another one. The problem is that when I call the Exit(); function the whole program is aborted. How can I quit just the current function, not the whole program ? example Function One() { If (!$var) { Exit(); } } Function Two(); { One();//This line kills the program Print(Hello); //This is not printed =( } /example TIA, __ Mauricio Cuenca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] exit status
Thanks. Is there any way to work around this at present? David Lars Torben Wilson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]; On Sun, 2002-03-03 at 04:16, David Apthorpe wrote: I'm using PHP on the command line. Is there any way to exit, whilst setting the exit status, without having it print out? For example, exit(2) will print 2. Thanks in advance, David Apthorpe This will be in PHP 4.2.0. -- Torben Wilson [EMAIL PROTECTED] http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] exit status
I'm using PHP on the command line Is there any way to exit, whilst setting the exit status, without having it print out? For example, exit(2) will print 2 Thanks in advance, David Apthorpe -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp
Re: [PHP] exit status
On Sun, 2002-03-03 at 04:16, David Apthorpe wrote: I'm using PHP on the command line. Is there any way to exit, whilst setting the exit status, without having it print out? For example, exit(2) will print 2. Thanks in advance, David Apthorpe This will be in PHP 4.2.0. -- Torben Wilson [EMAIL PROTECTED] http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] exit() summary
Hello, As Jani wrote in an earlier e-mail, we have a problem with exit(). If you pass it an integer, like exit(1), it will set the exit status to 1, and _print_ 1 to the output stream. Ok, that was the problem, this are the solutions: 1. We fix exit, so that it does not print the value if it is an integer 2. We add an extra argument to exit, which silences the output 3. We make exit understand @, like @exit(); 4. We add a new function Before hell breaks loose again, I don't want to hear comments on this, only reply's with those numbers in the subject. You can direct these votes to [EMAIL PROTECTED] regards, Derick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] exit in function
Hi I use PHP 4.0.5 and Apache 1.3.19 on Windows 2000, with PHP running as an Apache module. If I use the exit construct from within a function Apache crashes. I made a small test-page like this: ?php function foo() { echo foo1; exit; echo foo2; } foo(); echo bar; ? I would expect it to print foo1 and then nothing more. But instead Apache crashes. Why? Regards, Jakob Kruse PS: I know it isn't very nice to use exit that way, but I'm trying to run some PHP software that uses it extensively. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] exit in function
it happens quite often on Win2k. Don't know why, but in my case it happened with some loopy-loops containing SQL in it. Sometimes it works sometimes it doesn't. Try also renaming files. I know it sounds ridiculous, but happened to work for me. m -Original Message- From: Jakob Kruse [mailto:[EMAIL PROTECTED]] Sent: Friday, May 18, 2001 11:56 PM To: [EMAIL PROTECTED] Subject: [PHP] exit in function Hi I use PHP 4.0.5 and Apache 1.3.19 on Windows 2000, with PHP running as an Apache module. If I use the exit construct from within a function Apache crashes. I made a small test-page like this: ?php function foo() { echo foo1; exit; echo foo2; } foo(); echo bar; ? I would expect it to print foo1 and then nothing more. But instead Apache crashes. Why? Regards, Jakob Kruse PS: I know it isn't very nice to use exit that way, but I'm trying to run some PHP software that uses it extensively. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] exit code generation, php shell script/standalone
to tie in web based scripts and database updates with some server side maintenance and authentication issues, we need to have a PHP script be called from another program. The program expects a return or exit value to be transmitted back on completion or termination of the script. 0 indicating success and anything else indicating failure PHP has exit() and die() which, all though you can place a variable or string in it, only prints it to the screen (or other output target) prior to killing itself, and does not send an exit code as would a perl script is there any way to generate a exit code on the completion of a php script that will be interpreted by the program or CGI calling the script, even if it is code to wrap the PHP script in yet another perl shell. We need to send some variables back from the PHP script to the terminal as open text (just printed to the screen), but the program is specifically waiting for the exit code. really want to avoide writing a perl/dbi script to carry out this function. Appreciate any insight Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] exit signal Floating point exception(8)
Geetings and Salutations- I am experiencing a similar problem, but only on two similarly configured FreeBSD 4.0-Stable servers. Here are the details... We are running php-4.0.1p12, and it is built with -imap=/usr/local specified in the log files. In /var/log/messages, we have the following type messages: [Sun Feb 18 05:48:19 2001] [notice] child pid 258 exit signal Floating point exception(8) I am clueless on how to approach this issue, and could use a little help. Please respond to the list, and cc: me at [EMAIL PROTECTED], as I am not subscribed to the list. Thanks, Charles Peters __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] exit signal Floating point exception(8)
Upgrade to the latest tarball from snaps.php.net On Sun, 18 Feb 2001, Charles Peters wrote: Geetings and Salutations- I am experiencing a similar problem, but only on two similarly configured FreeBSD 4.0-Stable servers. Here are the details... We are running php-4.0.1p12, and it is built with -imap=/usr/local specified in the log files. In /var/log/messages, we have the following type messages: [Sun Feb 18 05:48:19 2001] [notice] child pid 258 exit signal Floating point exception(8) I am clueless on how to approach this issue, and could use a little help. Please respond to the list, and cc: me at [EMAIL PROTECTED], as I am not subscribed to the list. Thanks, Charles Peters __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] exit signal Floating point exception(8)
Thanks Rasmus, I appreciate your quick response. I would imagine that there was a know issue involving this bug and the version of php that I was using? Charles --- Rasmus Lerdorf [EMAIL PROTECTED] wrote: Upgrade to the latest tarball from snaps.php.net On Sun, 18 Feb 2001, Charles Peters wrote: Geetings and Salutations- I am experiencing a similar problem, but only on two similarly configured FreeBSD 4.0-Stable servers. Here are the details... We are running php-4.0.1p12, and it is built with -imap=/usr/local specified in the log files. In /var/log/messages, we have the following type messages: [Sun Feb 18 05:48:19 2001] [notice] child pid 258 exit signal Floating point exception(8) I am clueless on how to approach this issue, and could use a little help. Please respond to the list, and cc: me at [EMAIL PROTECTED], as I am not subscribed to the list. Thanks, Charles Peters __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] exit signal Floating point exception(8)
Yes On Sun, 18 Feb 2001, Charles Peters wrote: Thanks Rasmus, I appreciate your quick response. I would imagine that there was a know issue involving this bug and the version of php that I was using? Charles --- Rasmus Lerdorf [EMAIL PROTECTED] wrote: Upgrade to the latest tarball from snaps.php.net On Sun, 18 Feb 2001, Charles Peters wrote: Geetings and Salutations- I am experiencing a similar problem, but only on two similarly configured FreeBSD 4.0-Stable servers. Here are the details... We are running php-4.0.1p12, and it is built with -imap=/usr/local specified in the log files. In /var/log/messages, we have the following type messages: [Sun Feb 18 05:48:19 2001] [notice] child pid 258 exit signal Floating point exception(8) I am clueless on how to approach this issue, and could use a little help. Please respond to the list, and cc: me at [EMAIL PROTECTED], as I am not subscribed to the list. Thanks, Charles Peters __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Exit Function
What is the way to exit a function? For example: function FooBar() { if ($foo = $bar) Exit_this_Function; ## otherwise execute the rest of this function } function FooBar() { if ($foo = $bar) return 0; } ## otherwise execute the rest of this function } Chris
Re: [PHP] Exit Function
by the way, if ($foo = $bar) will return true simply if $bar is not null, i think you want if ($foo == $bar) thought I'd point that out, cause if you don't know return that nasty one would probably bite you on the ass next :) Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From: "Steve Smith" [EMAIL PROTECTED] To: "Karl J. Stubsjoen" [EMAIL PROTECTED] Cc: "PHP Mailing List" [EMAIL PROTECTED] Sent: Thursday, February 01, 2001 9:39 AM Subject: Re: [PHP] Exit Function On Wed, 31 Jan 2001, Karl J. Stubsjoen wrote: What is the way to exit a function? For example: function FooBar() { if ($foo = $bar) Exit_this_Function; ## otherwise execute the rest of this function } Use "return". If you want your function to return a value, you can use the syntax: return value; Hope this helps, --Steve Hi! I'm a .signature virus! Copy me into yours and join the fun! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Exit Function
On Wed, 31 Jan 2001, Karl J. Stubsjoen wrote: What is the way to exit a function? For example: function FooBar() { if ($foo = $bar) Exit_this_Function; ## otherwise execute the rest of this function } Use "return". If you want your function to return a value, you can use the syntax: return value; Hope this helps, --Steve Hi! I'm a .signature virus! Copy me into yours and join the fun! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Exit Function
What is the way to exit a function? For example: function FooBar() { if ($foo = $bar) Exit_this_Function; ## otherwise execute the rest of this function } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Exit Function
function some($foo, $bar) { if ($foo != $bar) return ; ... } -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] ""Karl J. Stubsjoen"" [EMAIL PROTECTED] wrote in message 004701c08bd5$eecbc340$0afc020a@kstubsjoen">news:004701c08bd5$eecbc340$0afc020a@kstubsjoen... What is the way to exit a function? For example: function FooBar() { if ($foo = $bar) Exit_this_Function; ## otherwise execute the rest of this function } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Exit Function
El Mi 31 Ene 2001 19:34, Karl J. Stubsjoen escribi: What is the way to exit a function? For example: function FooBar() { if ($foo = $bar) Exit_this_Function; ## otherwise execute the rest of this function } return is what you want. -- System Administration: It's a dirty job, but someone told I had to do it. - Martn Marqus email: [EMAIL PROTECTED] Santa Fe - Argentinahttp://math.unl.edu.ar/~martin/ Administrador de sistemas en math.unl.edu.ar - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]