#20607 [Fbk]: function included from parent script gets lost
| From: | sniper@php.net | Date: | Thu, 05 Dec 2002 00:19:15 +0000 |
| Subject: | #20607 [Fbk]: function included from parent script gets lost | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-26684@lists.php.net to get a copy of this message | ||
ID: 20607
Updated by: sniper@php.net
Reported By: nick@itomic.com
Status: Feedback
Bug Type: Scripting Engine problem
Operating System: red hat 7.2
PHP Version: 4.2.3
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2002-11-25 00:32:34] nick@itomic.com
it doesnt matter if I do
ini_set("error_reporting", "E_WARNING");
or
ini_set("error_reporting", "E_ALL");
or include_once / require_once
the site comes up with nothing when I set error_reporting
------------------------------------------------------------------------
[2002-11-25 00:28:02] nick@itomic.com
ok index.php now reads (on the live site):
<?
ini_set("error_reporting", "E_ALL");
//echo "Error Level : " . ini_get("error_reporting") . "<br />";
require_once "it_functions/it_db.php";
$a = it_getnextid("table", "trjh");
?>
I dont get any msg at all now, but i should get an echo from
it_GetNextID ... ?
------------------------------------------------------------------------
[2002-11-24 19:27:32] nick@itomic.com
yep, will do that, but im using other files in the same directory. also
what is the function to get/set config options in php via the script?
------------------------------------------------------------------------
[2002-11-24 12:36:08] iliaa@php.net
Looks like the include is failing, but the error is not being shown,
could you increase your error level to display E_WARNING or change
include_once to require_once.
------------------------------------------------------------------------
[2002-11-24 05:53:35] nick@itomic.com
the only difference is in index.php:
<?
include_once "it_db.php";
$a = it_getnextid("table", "trjh");
?>
------------------------------------------------------------------------
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/20607
--
Edit this bug report at http://bugs.php.net/?id=20607&edit=1