#2206: "Call to undefined function" with PHP4
---------------------------+------------------------------------------------
  Reporter:  fredck        |       Owner:  wwalc          
      Type:  Bug           |      Status:  new            
  Priority:  High          |   Milestone:  FCKeditor 2.6.1
 Component:  Server : PHP  |     Version:  SVN            
Resolution:                |    Keywords:  Confirmed      
---------------------------+------------------------------------------------
Comment (by wwalc):

 Nice idea. Anyway, there is another thing to consider: some people might
 use include/require calls instead of include_once/require_once. This may
 ocassionally be causing problems when calling {{{include
 "fckeditor.php";}}} twice in the same script.
 If we move `FCKeditor_IsCompatibleBrowser()` into fckeditor_php4.php and
 fckeditor_php5.php, we will get rid of this error and issue described in
 this ticket as well.


 The only disadvantage is that this way we will break DRY rule... but
 that's not a big deal and we can live with it, at least until V3.


 I'm attaching a patch that moves '`FCKeditor_IsCompatibleBrowser()`
 function. It's not an ideal solution, but at least it solves most problems
 that php beginners may encounter. I believe that it makes no sense to put
 this into separate file, because we already have plenty of files in the
 root directory.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2206#comment:4>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to