Problem updating PHP 4.3.0 DEV to PHP 4.3.3

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Problem updating PHP 4.3.0 DEV to PHP 4.3.3

    Hi!

    I had Apache 2.0.47 and PHP 4.3.0 DEV running successfully on a W2k
    Server. For some reason, I couldn't get PHP to read XML-Attributes
    with the DOM XML -functions. So I thought, it would be time to update
    PHP to a newer version.
    So I simply replaces the old php-files with the new ones and of course
    kept the php.ini. But now, PHP doesn't work anymore. As soon as I
    request a page with php code, I get a "document contains no data"
    error after a while. (Apache's error log looks like the excerpt at the
    end of this message)

    If I install PHP5, I can't even start Apache.

    Does anyone have an idea, what may go wrong here?

    Thanks in advance,

    Tobias

    [...]
    [Wed Sep 24 20:46:56 2003] [debug] child.c(695): Child 3196: Worker
    thread 248 starting.
    [Wed Sep 24 20:46:56 2003] [debug] child.c(695): Child 3196: Worker
    thread 249 starting.
    [Wed Sep 24 20:47:24 2003] [notice] Parent: child process exited with
    status 3221225477 -- Restarting.
    [Wed Sep 24 20:47:25 2003] [notice] Parent: Created child process 3032
    [Wed Sep 24 20:47:25 2003] [debug] mpm_winnt.c(505): Parent: Sent the
    scoreboard to the child
    [Wed Sep 24 20:47:25 2003] [notice] Child 3032: Child process is
    running
    [Wed Sep 24 20:47:25 2003] [info] Parent: Duplicating socket 220 and
    sending it to child process 3032
    [Wed Sep 24 20:47:25 2003] [debug] mpm_winnt.c(426): Child 3032:
    Retrieved our scoreboard from the parent.
    [Wed Sep 24 20:47:25 2003] [debug] mpm_winnt.c(623): Parent: Sent 1
    listeners to child 3032
    [Wed Sep 24 20:47:25 2003] [debug] mpm_winnt.c(582): Child 3032:
    retrieved 1 listeners from parent
    [Wed Sep 24 20:47:25 2003] [notice] Child 3032: Acquired the start
    mutex.
    [Wed Sep 24 20:47:25 2003] [notice] Child 3032: Starting 250 worker
    threads.
    [Wed Sep 24 20:47:25 2003] [debug] child.c(695): Child 3032: Worker
    thread 0 starting.
    [Wed Sep 24 20:47:25 2003] [debug] child.c(695): Child 3032: Worker
    thread 1 starting.
    [...]
    Tobias Guest

  2. Similar Questions and Discussions

    1. problem updating ports
      Hi! Has anyone encountered the following error. I'm using Freebsd 5.3. daffy# portsdb -Uu Updating the ports index ... Generating INDEX.tmp -...
    2. problem updating in datagrid ??
      The guts of the below asp.net vb code was pieced together from another thread - all due credit to it's original author. Thank you! I've...
    3. Problem when updating a datagrid
      Using the sample walkthrough: Walkthrough: Using a DataGrid Web Control to Read and Write Data This is the Update command code: Private Sub...
    4. Problem updating to database
      <% dim ORIG dim MSG dim KEYWORD strNum = request.QueryString("ORIG") ''get mobile number from VisualGSM strKey =...
    5. Updating template problem
      Raphael: Basic Introduction - In DMX, the region outside of the <html> tag can be made to be - 1. EDITABLE (by setting that parameter to...
  3. #2

    Default DOMXML and Umlauts (Re: Problem updating PHP 4.3.0 DEV to PHP 4.3.3)

    Hi again,

    I've found the problem. There was a dll from an old backup still
    somwhere in the search path.

    But now I have a new problem. When I use the domxml-functions to
    parse a xml document with ISO-8859-1 encoding, and simply print out
    the parsed texts with echo, then all the umlauts get messed
    (ö -> ö and so on). The html is set to charset=iso-8859-1, the xml
    encoding is ISO-8859-1. So why do my umlauts become 2-byte codes in
    output, that can't even convert with htmlentities()?

    bye,

    Tobias

    Tobias Grimm Guest

  4. #3

    Default Re: DOMXML and Umlauts (Re: Problem updating PHP 4.3.0 DEV to PHP 4.3.3)

    I had a similar problem a few months back, and when I queried it with PHP
    support they told me that while the default character set for PHP is
    ISO-8859-1 the character set used by the DOM XML functions is UTF-8. In
    order to correctly process accented characters this is what you do:-

    1) Use the mb_convert-encoding() function along with the
    $doc->create_text_node() function to convert from ISO-8859-1 to UTF-8, as
    in:
    $value =
    $xml_doc->create_text_node(mb_convert_encoding($fieldvalue, 'UTF-8','ISO-8859
    -1'));

    2) On the $xml_doc->dump_mem() command change the encoding back to
    ISO-8859-1 as in:
    $xml_string = $xml_doc->dump_mem(true,'ISO-8859-1');

    I hope this helps.

    Tony Marston
    [url]http://www.tonymarston.net/[/url]

    "Tobias Grimm" <tobias.grimm@gmx.de> wrote in message
    news:bktepc$bj0$00$1@news.t-online.com...
    > Hi again,
    >
    > I've found the problem. There was a dll from an old backup still
    > somwhere in the search path.
    >
    > But now I have a new problem. When I use the domxml-functions to
    > parse a xml document with ISO-8859-1 encoding, and simply print out
    > the parsed texts with echo, then all the umlauts get messed
    > (ö -> ö and so on). The html is set to charset=iso-8859-1, the xml
    > encoding is ISO-8859-1. So why do my umlauts become 2-byte codes in
    > output, that can't even convert with htmlentities()?
    >
    > bye,
    >
    > Tobias
    >

    Tony Marston Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139