- 论坛徽章:
- 0
|
本帖最后由 tiantain00 于 2014-05-15 17:22 编辑
- <?php
- error_reporting(E_ALL);
- $str ='<p><sub style="floating-begin: 1227829;"></sub></p>
- <table style="line-height: 15.0px;font-size: 12.0px;" cellpadding="0" cellspacing="0" bgcolor="#a06cb6" border="0" width="750">
- <tr><td colspan="9" style="color: #ffffff;padding: 0 20.0px 0 0;background-repeat: no-repeat;" align="right"
- background="http://img01.taobaocdn.com/imgextra/i1/267481484/T2wgU3XvpaXXXXXXXX_!!267481484.jpg" height="35"></td></tr>
- <td colspan="9" height="10"></td></tr><tr><a><a><aaaafff></table>';
- //$str='eee<table>ee<table>eee</table>e';
- preg_match('/<tabl((?!<table).)*<\/table>/isU',$str,$tmp);
- print_r($tmp);
复制代码 在apache下运行 有时(改变$str 的长度 ,</table>的位置)运行终止 错误日志
[Thu May 15 17:13:55 2014] [notice] Parent: child process exited with status 3221225725 -- Restarting.
[Thu May 15 17:13:56 2014] [notice] Apache/2.2.22 (Win64) PHP/5.3.13 configured -- resuming normal operations
[Thu May 15 17:13:56 2014] [notice] Server built: May 13 2012 19:41:17
[Thu May 15 17:13:56 2014] [notice] Parent: Created child process 3168
[Thu May 15 17:13:57 2014] [notice] Child 3168: Child process is running
[Thu May 15 17:13:57 2014] [notice] Child 3168: Acquired the start mutex.
[Thu May 15 17:13:57 2014] [notice] Child 3168: Starting 64 worker threads.
[Thu May 15 17:13:57 2014] [notice] Child 3168: Starting thread to listen on port 80.
[Thu May 15 17:13:57 2014] [notice] Child 3168: Starting thread to listen on port 80.
在命令行下用php命令运行没有问题
请问是什么原因?
|
|