ID:               21674
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         *URL Functions
 Operating System: Cobalt RAQ4 Apache/Linux
 PHP Version:      4.3.0
 New Comment:

add:
var_dump(ini_get('include_path'));
to the line before the require_once in the phpbug21674.php script and
paste the output here.


Previous Comments:
------------------------------------------------------------------------

[2003-01-17 12:59:28] [EMAIL PROTECTED]

This is what my phpinfo() says

include_path         .:/usr/lib/php

------------------------------------------------------------------------

[2003-01-17 12:48:12] [EMAIL PROTECTED]

It works fine here...
Is your include_path still '' ?
You *must* have '.' in your include path for relative includes to work;
have you tried that?

------------------------------------------------------------------------

[2003-01-17 12:27:02] [EMAIL PROTECTED]

Test this code if you will:

// Start- Copy and Save this code as phpbug21674.php in a path folder
name "site3"
<?
// PHP BUG# 21674
// This script must be saved to Docs root path of virtual domain-A

// To debug.. change the path to the path on your test server
require_once ("/home/sites/site2/config.php");

echo "Hello - Testing PHP 4.3.0 bug# 21674<br>";
?>
// End - Copy and Save this code as phpbug21674.php

// Begin - Copy and Save this code as config.php in a path folder name
"site2"

<? 
include ('extras.php');

?>
// End - Copy and Save this code as config.php


// Begin - Copy and Save this code as extras.php in a path folder name
"site2"

<?
// -- field definitions --

$extra=array();   // leave this line alone

$extra[info1][name]="Alias Name/Nickname";
$extra[info1][type]="text";

$extra[info2][name]="Your Gender";
$extra[info2][type]=array("Female","Male",);

$extra[info3][name]="Relationship Status";
$extra[info3][type]=array("Single","Single-Looking for
Couples","Couple-Looking for
Singles","Dating","Involved/Partner","Involved-Seeking New
Friends","Married","Married-Seeking Discreet
Friend","Engaged","Divorced","Widowed","Player","Just looking for
friend","Just Looking for Sex Partner","Undecided");

$extra[info4][name]="Sexual Orientation";
$extra[info4][type]=array("Heterosexual","Gay","Lesbian","BiSexual","BiCurious","Rather
Not Say");


// do not edit past this line

$extras = array();
for ($i=0; $i < 21; $i++)
 { $marker = "info".$i; // print $marker."<br>"; // debug
 if (strlen($extra[$marker][name]) > 1)

  $extras[]=$marker;
 }


// in general, to display extra variable values, use
$extra[infox][value]

?>


Now execute php21674.php to reproduce errors.

------------------------------------------------------------------------

[2003-01-16 21:01:53] [EMAIL PROTECTED]

If you can provide us with a complete self-contained reproducing
script, we can investigate this further.

So far in your report you have not responded to any of our requests for
further information, and there was no mention of writing a file in any
of your comments.

Please read the instructions here:
http://bugs.php.net/how-to-report.php
for information about how to write a "good" bug report. 

------------------------------------------------------------------------

[2003-01-16 20:40:43] [EMAIL PROTECTED]

That depends on one's definition of a bug. In this case, the erroneous
message given by php would defintely be considered a bug, in my
opinion.

Its the analougous to one calling the fire department and saying "come
now, my house is on fire" when, in fact, one's nextdoor neighbor has
burned his bar-b-que ribs.

If the affliction is related to a permissions or authority issue, then
the message should state so. The error message should not be one that
makes mention of of a "file or directory not found" when, in fact, the
file or directory does exists. 

Cheers.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/21674

-- 
Edit this bug report at http://bugs.php.net/?id=21674&edit=1

Reply via email to