Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUGFIX php-peg E_STRICT fixes

  • Loading branch information...
commit 0dd4d4386e981c454136fb7d739cb3c67f635961 1 parent 2b8e14f
@halkyon halkyon authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 thirdparty/php-peg/Compiler.php
View
6 thirdparty/php-peg/Compiler.php
@@ -273,7 +273,7 @@ function __construct( $value ) {
parent::__construct( 'literal', "'" . substr($value,1,-1) . "'" );
}
- function match_code() {
+ function match_code( $value ) {
// We inline single-character matches for speed
if ( !$this->contains_expression() && strlen( eval( 'return '. $this->value . ';' ) ) == 1 ) {
return $this->match_fail_conditional( 'substr($this->string,$this->pos,1) == '.$this->value,
@@ -298,7 +298,7 @@ function __construct( $value ) {
parent::__construct('rx', self::escape($value));
}
- function match_code() {
+ function match_code( $value ) {
return parent::match_code("'{$this->value}'");
}
}
@@ -309,7 +309,7 @@ function __construct( $optional ) {
}
/* Call recursion indirectly */
- function match_code() {
+ function match_code( $value ) {
$code = parent::match_code( '' ) ;
return $this->value ? $code->replace( array( 'FAIL' => NULL )) : $code ;
}
Please sign in to comment.
Something went wrong with that request. Please try again.