php_vm 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ext/php_vm/php_vm.c +4 -2
- metadata +2 -2
data/ext/php_vm/php_vm.c
CHANGED
@@ -984,7 +984,9 @@ VALUE rb_php_error_reporting_initialize(int argc, VALUE *argv, VALUE self)
|
|
984
984
|
|
985
985
|
if (argc==1 &&TYPE( argv[0])==T_STRING) {
|
986
986
|
log_message = argv[0];
|
987
|
-
VALUE
|
987
|
+
VALUE re_str = rb_str_new2("^(?:(?:PHP )?([^:]+?)(?: error)?: {0,2})?(.+) in (.+) on line (\\d+)$");
|
988
|
+
VALUE re_option = rb_const_get(rb_cRegexp, rb_intern("MULTILINE"));
|
989
|
+
VALUE report_re = rb_funcall(rb_cRegexp, rb_intern("new"), 2, re_str, re_option);
|
988
990
|
VALUE m = rb_funcall(argv[0], rb_intern("match"), 1, report_re);
|
989
991
|
if (m!=Qnil) {
|
990
992
|
error_level = rb_funcall(m, rb_intern("[]"), 1, INT2NUM(1));
|
@@ -1077,7 +1079,7 @@ void Init_php_vm()
|
|
1077
1079
|
rb_define_singleton_method(rb_mPHPVM, "get_class", rb_php_vm_get_class, 1);
|
1078
1080
|
rb_define_singleton_method(rb_mPHPVM, "define_global", rb_php_vm_define_global, 0);
|
1079
1081
|
|
1080
|
-
rb_define_const(rb_mPHPVM, "VERSION", rb_str_new2("1.3.
|
1082
|
+
rb_define_const(rb_mPHPVM, "VERSION", rb_str_new2("1.3.1"));
|
1081
1083
|
|
1082
1084
|
rb_cv_set(rb_mPHPVM, "@@output_handler", Qnil);
|
1083
1085
|
rb_cv_set(rb_mPHPVM, "@@error_handler", Qnil);
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: php_vm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-29 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: php_vm is a native bridge between Ruby and PHP.
|
15
15
|
email:
|