PDA

View Full Version : After new update , i get this problem fron PHP !



.::Gsmdenis::.
12-21-2008, 01:01 PM
After new update , i get this problem fron PHP !

This is my OS :


Apache: 2.2.11
Dovecot: 1.1.7
AWstats: 6.8
Exim: no
exim.conf update: yes
MySQL: 5.1.30
MySQL backup: yes
PHP: 5.2.8 as CLI with mail() header patch
phpMyAdmin: 3.1.1-all-languages
ProFTPD: 1.3.1
Atmail webmail: 1.02
RoundCube webmail: 0.1.1
Replace "php.ini" with './build all' and './build php-ini': yes
Replace "php.ini" using type: recommended
Run "clean" every time: yes
Run "clean_old_webapps" every time: no
Show texts in bold: yes
SquirrelMail: 1.4.17
UebiMiau: 3.11


Few days ago , i have update the Mysql and Php also apache to lastest version , but after update , my vBulletin forum one of section :


Statistics & Logs
Transaction Log and Transaction Stats don;t working any more , seen's php have lost something which did not support :


preg_match / str_replace preg_replace / mb_convert_encoding / iconv file_get_contents any more !


Please give me some suggest about this issue !

BTW, i have try to do the version back , but same !

Thanks a million times !

BR.,

Denis

.::Gsmdenis::.
12-21-2008, 01:27 PM
PS , here is the server phpinfo [Check (http://www.gsmhosting.cn/test.php)]


BR.,

Denis

DirectAdmin Support
12-21-2008, 01:56 PM
Does is say those functions don't exist.. or does it say they're disabled?

Check the /usr/local/Zend/etc/php.ini (should be linked from /usr/local/lib/php.ini)... and see if you have any of the above commands set in your:

disable_functions=

section.

John

.::Gsmdenis::.
12-22-2008, 12:22 AM
hi , john!

i have closed disable_functions for all , but it;s same !

and i have make some test for php : [check (http://joeysky.cn/test/test1.php)]

look php?do=options(&&)dogroup=

seen's xml_parse_into_struct have problem !

BR.,

denis

.::Gsmdenis::.
12-22-2008, 08:32 AM
i back here again , explian the issue:


the PHP files:


$file = "ct.xml";
$xml_parser = xml_parser_create();
if (!($fp = fopen($file, "r"))) {
die("could not open XML input");
}
$data = fread($fp, filesize($file));
fclose($fp);
xml_parse_into_struct($xml_parser, $data, $vals, $index);


echo "<pre>";
print_r ($vals);
echo "</pre>";
xml_parser_free($xml_parser);
exit;



The XML files:


<?xml version="1.0" encoding="UTF-8"?>
<navoption>
<link>options.php?do=options(&amp;&lt;&gt;&amp;&lt;&gt;&amp;&lt;&gt;)dogroup=buypoint</link>
</navoption>


now we named the php files to test1.php

put is on my server and running :

i get :


Array
(
[0] => Array
(
[tag] => NAVOPTION
[type] => open
[level] => 1
[value] =>

)

[1] => Array
(
[tag] => LINK
[type] => complete
[level] => 2
[value] => options.php?do=options()dogroup=buypoint
)

[2] => Array
(
[tag] => NAVOPTION
[value] =>

[type] => cdata
[level] => 1
)

[3] => Array
(
[tag] => NAVOPTION
[type] => close
[level] => 1
)

)



But in fact we need to get like below:


Array
(
[0] => Array
(
[tag] => NAVOPTION
[type] => open
[level] => 1
[value] =>

)

[1] => Array
(
[tag] => LINK
[type] => complete
[level] => 2
[value] => options.php?do=options(&<>&<>&<>)dogroup=buypoint
)

[2] => Array
(
[tag] => NAVOPTION
[value] =>

[type] => cdata
[level] => 1
)

[3] => Array
(
[tag] => NAVOPTION
[type] => close
[level] => 1
)

)


what is differ above :

Incorrect one:


[value] => options.php?do=options()dogroup=buypoint

correct one :


[value] => options.php?do=options(&<>&<>&<>)dogroup=buypoint


Please help me fix the issue , thanks advance !


BR.,

denis

smtalk
12-22-2008, 09:14 AM
http://directadmin.com/forum/showthread.php?t=28290

.::Gsmdenis::.
12-22-2008, 10:02 AM
Thanks Martynas Bendorius fast reply get fast help for fix my problem !


Let me Thanks a million a million a million a million a million times :-)

BR.,


Denis