English 中文(简体)
警告:前言:内部pcre_fullinfo()
原标题:Warning: preg_match(): Internal pcre_fullinfo()

我有以下工作守则:

$test =  123456 ;

$int = preg_match( /^d+$/ , $test, $matches);

print_r(array($int, $matches));

However when I execute it on codepad I get the error:

警告:前言:内部pcre_fullinfo()错误,第5行

但是,这部法典是用我自己的机器操作的(而且该法典应当被罚款)。

I need to distribute my code in the future so it would be bad if it would break depending on some config. So what is the reason codepad breaks on it?

最佳回答

Code executed via codepad is running in a very restricted environment:

法典的执行由一位基于地尔的主管负责。 该战略旨在“扼杀”一切草原,许多系统叫 dis或忽视。 被告和最后被起诉者都被关押在一个牢牢牢里,资源有限。 主管撰写在Haskell。

虽然你不希望破碎游乐机,但皮书图书馆在内部使用被密码环境阻挡的东西的可能性很大。 任何生产系统都不使用这种严格限制,因此,在你的申请中,你应当安全使用这一规范。

The error code stands for "PCRE_ERROR_BADOPTION - the value of what was invalid". However, the code in the PHP source where the error occurs is rc = pcre_fullinfo(pce->re, extra, PCRE_INFO_CAPTURECOUNT, &num_subpats); which uses a constant for what. So it clearly means that the pcre library is broken on codepad.

如果你想要完全安全,你可以用校正写一个小型C方案,把这一职能放在同一个地方。

问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签