SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot
    Join Date
    May 2006
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Strange PHP Error

    Hey,

    I am getting this strange PHP error, it works fine on my local testing machine and when unencoded. But as soon as I encode in using Zend Guard I get this error:

    Fatal error: Cannot redeclare getsqlvaluestring() (previously declared in /home/*******/public_html/us/includes/sys_sql_parser.php:2) in /home/*******/public_html/us/includes/sys_sql_parser.php on line 0

    The strange thing about it is that the error is occurring on line 0.

    What can I do about this?

    Thanks,


    Tom

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,260
    Mentioned
    196 Post(s)
    Tagged
    2 Thread(s)

    alreadt declared

    I don't know about the encoding, but it sounds like you are "include/require"-ing instead of "include_once/require_once"-ing.

  3. #3
    SitePoint Member
    Join Date
    Nov 2006
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think it says what it means:
    Cannot redeclare getsqlvaluestring() (previously declared in
    getsqlvaluestring() must've already been called, and now you're trying to redeclare it.
    Mike - Side project: Live Journal (blogging site).

  4. #4
    SitePoint Zealot
    Join Date
    May 2006
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    But how come it works fine on my testing server...

  5. #5
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,260
    Mentioned
    196 Post(s)
    Tagged
    2 Thread(s)

    error

    If zend guard is giving a fatal error, you should check your test server's error logs. There should be something there that's similar, or you may need to fix the error reporting.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •