免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
论坛 程序设计 PHP 异常?
最近访问板块 发新帖
查看: 4198 | 回复: 2
打印 上一主题 下一主题

异常? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-05-15 17:20 |只看该作者 |倒序浏览
本帖最后由 tiantain00 于 2014-05-15 17:22 编辑

  1. <?php
  2. error_reporting(E_ALL);
  3. $str ='<p><sub style="floating-begin: 1227829;"></sub></p>
  4. <table style="line-height: 15.0px;font-size: 12.0px;" cellpadding="0" cellspacing="0" bgcolor="#a06cb6" border="0" width="750">
  5. <tr><td colspan="9" style="color: #ffffff;padding: 0 20.0px 0 0;background-repeat: no-repeat;" align="right"
  6. background="http://img01.taobaocdn.com/imgextra/i1/267481484/T2wgU3XvpaXXXXXXXX_!!267481484.jpg" height="35"></td></tr>
  7. <td colspan="9" height="10"></td></tr><tr><a><a><aaaafff></table>';
  8. //$str='eee<table>ee<table>eee</table>e';
  9. preg_match('/<tabl((?!<table).)*<\/table>/isU',$str,$tmp);
  10. 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命令运行没有问题

请问是什么原因?


论坛徽章:
1
2015年迎新春徽章
日期:2015-03-04 09:55:28
2 [报告]
发表于 2014-05-15 18:31 |只看该作者
是在win下的吧?

论坛徽章:
0
3 [报告]
发表于 2014-05-15 18:38 |只看该作者
      嗯,是的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP