to show all the code would be too much but some parts where the error
happens are here.
now i tried with function_exists..

define('SMARTY_DIR', 'smarty/');
         
         
        require_once(SMARTY_DIR.'Smarty.class.php');
        
        require_once("ichain/ua_index.php");  
        
        require_once("framework/framework.php"); 
        require_once("framework/dbconn.php");
        
                         
                 
        var_dump( function_exists('fw_db_connect') );
//true  included from file "framework/dbconn.php"
        echo "<br>";
        var_dump( function_exists('fw_validate_kostenstelle') );
//false included from file "framework/framework.php"
        echo "<br>"; 
        var_dump( function_exists('ua_getConnect') );
//false included from file "ichain/ua_index.php"
        die("here");
        
        $ua_lnk = ua_getConnect();                        // here the
script would abort because the function doesn't exist,
                                                        // but it does


well as you can see in the comments the functions exist and are spelled
correctly (copy & paste).
the thing is in all included files are many functions. the problem here
is the first 2 work and
functions i want to call that are coded after line 100 or sth. like this
in the incldued files
can't be found. but i don't know why.

now i tried get_included_files() that shows me all the files that i
wanted to include correctly.
but in the list of get_defined_functions(), in the user list are just
some, but not all the functions,
that are really in some files, for example in the file ua_index.php the
function ua_getConnect();

if you need more source code, just tell me, because i still don't have
any idea what that strange beahviour
could caused by.

thanks a lot.

  Ben



-----Ursprüngliche Nachricht-----
Von: William Lovaton [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 13. April 2004 01:06
An: [EMAIL PROTECTED]
Betreff: Re: AW: [PHP] After calling a Function the Script aborts
withoutanyerror :-\


Mmmm... very strange...

can you print_r() the array returned by get_defined_functions(),
get_included_files() and get_declared_classes() and see if every thing
is going on right??  Use the last one if your included file define
classes too.

Can we review the code in the mailing list?? is it big?


-William



El lun, 12-04-2004 a las 17:51, Ben escribió:
> But what if the function you are callign doesn't need any passed 
> variable like
> 
> $bar = foo(); ???
> 
> the more strange thing is, on a lamp environment (SUSE 9.0, PHP 
> 4.3.5),  the scripts worked, on a wamp (win2k, same PHP) and on a LAMP

> RH9 same PHP it didn't work.
> 
> 
> -----Ursprüngliche Nachricht-----
> Von: William Lovaton [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 12. April 2004 22:33
> An: [EMAIL PROTECTED]
> Betreff: Re: [PHP] After calling a Function the Script aborts without
> anyerror :-\
> 
> 
> El lun, 12-04-2004 a las 14:12, Don Read escribió:
> > > Sometimes I have this problems too, no matter if that setting is 
> > > on.
> > > 
> > 
> > If the error occurs within a table element on a web page, Mozilla
> > won't display because it's waiting for the '</tr></table>' to begin 
> > figuring out the display properties.
> 
> I know that but this is not the case, I dont mix HTML with PHP, I use 
> Smarty and the error is generated inside business logic functions.
> 
> Sometimes it occurs when calling a method in a null variable.  This 
> usually shows the error message, but sometimes it doesn't and I don't 
> know why.
> 
> I use allow_call_time_pass_reference = Off and sometimes this triggers

> the problem:
> 
> $x = foo("bar");
> $y = foo($obj->getBar());
> 
> With this setting in off he two lines of code sometimes fails and some

> others doesn't fail.  But when it fails it does it completely silent.
> 
> To workaround the problem I have to do:
> 
> $tmp = "bar";
> $x = foo($tmp);
> 
> or
> 
> $tmp = $obj->getBar();
> $y = foo($tmp);
> 
> 
> Regards,
> 
> 
> -William
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


---
__________________________________________________________
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.656 / Virus Database: 421 - Release Date: 09.04.2004
 

---
__________________________________________________________
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.656 / Virus Database: 421 - Release Date: 09.04.2004
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to