¹ØÓÚPHPµÄcall_user_funcµÄ·ÖÎö
·Ö±ðÏÂÔØÁËphp5.2.10ºÍ5.3.0°æ±¾µÄÔ´Â룬²éÕÒµ½ÀïÃæcall_user_function(ÔÚext/standard/basic_functions.c)µÄ·½·¨¡£
ÔÚ5.2.10°æ±¾Àcall_user_functionÓõÄÊDZê×¼µÄphp º¯ÊýµÄд·¨£¬ÓÃzvalÀàÐÍÀ´´æ´¢½ÓÊյIJÎÊý£¬µ÷ÓÃcall_user_function_exÀ´Ö´ÐÐÓû§µÄ·½·¨¡£Èç¹ûµ÷Óò»³É¹¦Ôò·ÖÎöÊDz»ÊǽÓÊÕµ½µÄ²ÎÊýÀïÓÐʲô´íÎó¡£
µ«ÔÚ5.3.0°æ±¾ÖУ¬ÐÂÔö¼ÓÁËÀàÐÍzend_fcall_infoºÍzend_fcall_info_cacheÀ´½ÓÊÕ²ÎÊý£¬²¢ÇÒµ÷ÓÃzend_call_functionÀ´Ö´ÐÐÓû§µÄ·½·¨¡£ÔÚzend_call_functionÀï¶ÔÏȶԴ«ÈëµÄ²ÎÊý×÷¼ì²é£¬È»ºóÔÙÈ¥Ö´ÐÐÓû§µÄ·½·¨¡£
ËùÒÔÔÚ5.3.0µ±ÖÐÈç¹ûÔÚ²ÎÊý¼ì²â¹ý³ÌÖз¢ÏÖ´íÎóµÄ»°¿ÉÄܾͻᵼÖÂÓû§·½·¨²»Ö´ÐУ¬±ÈÈçÓû§º¯ÊýÓÃÒýÓòÎÊý»áµ¼Ö zend_error(E_WARNING, "Parameter %d to %s%s%s() expected to be a reference, value given" ¡£¡£¡£¡££¬³ÌÐòµ½´ËÖÕÖ¹¡£
Ïà¹ØÎĵµ£º
1.
CentOS 5.2 ÏÂÓÃYum°²×°Apache+PHP+MySQL»·¾³
2009-04-03 23:47
Fedora 8ÏÂÓÃYum°²×°Apache+PHP+MySQL»·¾³
fedora8 ÓÃyumÀ´¹ÜÀí°²×°Apache+PHP+MysqlµÄ»ù±¾°²×°¡£
1. °²×°Apahce, PHP, Mysql, ÒÔ¼°phpÁ¬½Ómysql¿â×é¼þ¡£
yum -y install httpd php mysql mysql-server
php-mysql
centos°²×°php²å¼þ¾ÍÊÇy ......
ÔÌù£ºhttp://www.haw-haw.org/node/150
ÓÃÀ´ÔÚphp³ÌÐòÀï·½±ãµÄÁ¬µ½Ô¶³ÌÖ÷»ú
Ö´ÐгÌÐò
²¢È¡»Ø½á¹û
Ê×ÏÈ£¬ÏµÍ³ÐèÒªÒѾװÓÐopensslºÍopenssl-devel°ü
rpm -qa | grep openssl
È»ºó£¬°²×°libssh2
µ±ÏÂÀ´Ô´´úÂëºó
./configure && make all install
ÔÙÈ»ºó£¬°²×°PECL/ssh2
¿ÉÒÔÓÃÃüÁîpear install ssh2
(ÑÛÇ ......
×î½ü¹«Ë¾ÓиöÍøÕ¾ÒªÏÈÅжϷþÎñÆ÷ÉϵÄÍøÒ³ÊÇ·ñ¿ÉÓã¬È»ºóÔÚ°ÑÖµÌá½»µ½Õâ¸öÍøÒ³ÉÏ¡£Ê¹ÓÃphpÀ´¼ì²âÍøÒ³ÊÇ·ñ¿ÉÓã¬Ã»Ôõô½Ó´¥¹ýphp£¬¸ãÁËÁ½Ì죬»ù±¾ÉÏÊÇ¿ÉÒÔ¼ì²âÁË¡£ÏÖ°Ñ´úÂëÌùÉÏ£º
<?php
//
$url = "http://blog.csdn.net/xuezhongsong/archive/2009/09/17/4561488.aspx";
$ ......
phpµ÷ÓÃÍⲿ³ÌÐòµÄ·½·¨Ò»°ãÓÃexec,systemµÈ£¬µ«ÕâÑùÖ´ÐеÄʱºò±ØÐëµÈ´ýÍⲿ³ÌÐò½áÊøºó£¬phpÒ³Ãæ²ÅÄܼÌÐøÖ´ÐУ¬·ñÔòÍøÒ³»áÒ»Ö±µÈ´ý¡£
ÈçºÎ¸Ä±äÕâÖÖÇé¿öÄØ£¿
Ê×ÏÈ
ÒªÖªµÀphpµ÷ÓõijÌÐòĬÈ϶¼ÊÇ·ÅÔÚºǫ́ÔËÐеģ¬¼´Ê¹ÊÇ×ÀÃæ³ÌÐòÔÚ×ÀÃæÒ²¿´²»µ½£¬µ½½ø³ÌÁбí²ÅÄÜ¿´µ½
ÕâÊÇÓÉÓÚphpµ÷ÓóÌÐòÊÇͨ¹ýapacheÀ´Íê³ÉµÄ£ ......
ÔÎÄÄÚÈÝûÓб仯£¬ÔÚ¹«Ë¾¿ìÏû»¯ÁËÁ½¸öϵͳÁË£¬ËùÒÔ´òËã×Ô¼ºÐ´Ò»¸ö¹¦ÄÜ»¹¿ÉÒԵĸöÈËϵͳ£¬ÎÒÖªµÀÍøÉϺܶ࣬ÎÒÒ²ÊÕ¼¯Á˺ü¸¸ö£¬µ«ÊÇÏë¿´¿´×Ô¼ºÄܲ»ÄÜ×ö³öÀ´£¬ºÃºÃ¼ÓÓÍ°É£¬ÔڳﱸµÄ¹ý³ÌÖÐÓöµ½ÁËÓʼþÕâÑùµÄÎÊÌ⣬ËùÒÔ»¨Á˵ãʱ¼äÑо¿ÁËÒ»·¬£¬ÍøÉÏÕÒµ½µÄºÃÄÚÈÝ£¬ÄóöÀ´·ÖÏíÒ»ÏÂ
ÒýÓÃÍøÖ·£ºhttp://www.china-askpro.com/msg36/qa ......