summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Utils/Routine.php2
-rw-r--r--tests/utils/RoutineTest.php11
2 files changed, 13 insertions, 0 deletions
diff --git a/src/Utils/Routine.php b/src/Utils/Routine.php
index f234d97..9bc10f7 100644
--- a/src/Utils/Routine.php
+++ b/src/Utils/Routine.php
@@ -101,6 +101,7 @@ class Routine
'name' => array(),
'type' => array(),
'length' => array(),
+ 'length_arr' => array(),
'opts' => array(),
);
@@ -110,6 +111,7 @@ class Routine
$retval['name'][$idx] = $param->name;
$retval['type'][$idx] = $param->type->name;
$retval['length'][$idx] = implode(',', $param->type->size);
+ $retval['length_arr'][$idx] = $param->type->size;
$retval['opts'][$idx] = array();
foreach ($param->type->options->options as $opt) {
$retval['opts'][$idx][] = is_string($opt) ?
diff --git a/tests/utils/RoutineTest.php b/tests/utils/RoutineTest.php
index 34ed2af..b768725 100644
--- a/tests/utils/RoutineTest.php
+++ b/tests/utils/RoutineTest.php
@@ -106,6 +106,7 @@ class RoutineTest extends TestCase
'name' => array(),
'type' => array(),
'length' => array(),
+ 'length_arr' => array(),
'opts' => array()
)
),
@@ -125,6 +126,9 @@ class RoutineTest extends TestCase
'length' => array(
0 => ''
),
+ 'length_arr' => array(
+ 0 => array(),
+ ),
'opts' => array(
0 => ''
)
@@ -146,6 +150,9 @@ class RoutineTest extends TestCase
'length' => array(
0 => '25'
),
+ 'length_arr' => array(
+ 0 => array('25'),
+ ),
'opts' => array(
0 => 'UNSIGNED ZEROFILL'
)
@@ -172,6 +179,10 @@ class RoutineTest extends TestCase
0 => '1',
1 => '15'
),
+ 'length_arr' => array(
+ 0 => array('1'),
+ 1 => array('15')
+ ),
'opts' => array(
0 => 'ZEROFILL',
1 => 'utf8'