php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17215 "else if" (maybe also "else") function bug
Submitted: 2002-05-14 16:17 UTC Modified: 2002-05-14 16:19 UTC
From: genius at pai dot net dot pl Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.2.1 OS: Slackware 8.0
Private report: No CVE-ID: None
 [2002-05-14 16:17 UTC] genius at pai dot net dot pl
Hello

SOURCE: http://dec.kan.pl/index.phps

Look for the following:

---< cut >---
/** PRZETWORZENIE DANYCH I WYSY?KA **/

        if ($prob_dzial == "" || $prob_name == "" || (...)

           {

                                echo "Prosz? wype?ni? (...)
           }

        else if ($send_status == "ok")

                        {
---< cut >---

When using the PHP 4.1.x version, the supplied script worked perfectly fine. If the areas $prob_dzial, $prob_name etc. had had no value, the script returned "Prosz? wype?ni?..." on the page, if the data had been submitted, the mail was thereafter sent.

In the PHP 4.2.x version, the

if ()

formula works perfectly fine, though after submiting the data to the formn and clicking on "WY?LIJ" (submit), the

else if ()

formula seems to be buggy. It doesn't send any e-mail, and returns the action that the if () formula does.

I'm looking forward to reply from You

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-14 16:19 UTC] derick@php.net
In PHP 4.2.0, the 'register_globals' setting default changed to
be off. See http://www.php.net/release_4_2_0.php for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 17:01:29 2024 UTC