Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Decimal scale #935

Merged
merged 8 commits into from
Jul 27, 2013
Merged

Add Decimal scale #935

merged 8 commits into from
Jul 27, 2013

Conversation

dreamsxin
Copy link
Contributor

@dreamsxin
Copy link
Contributor Author

Wow, One of them was a failure in php 5.3:

Starting test 'CollectionsTest::testCollections'.

zend_mm_heap corrupted

The command "$(phpenv which php) ./unit-tests/ci/phpunit.php --debug -c unit-tests/phpunit.xml" exited with 1.

@ghost
Copy link

ghost commented Jul 26, 2013

That's a known bug in MongoDB PHP driver. This is completely out of our control.

@@ -170,7 +170,7 @@
PHALCON_INIT_VAR(old_column);

PHALCON_INIT_VAR(size_pattern);
ZVAL_STRING(size_pattern, "#\\(([0-9]+)(,[0-9]+)*\\)#", 1);
ZVAL_STRING(size_pattern, "#\\(([0-9]+)[,]?([0-9]+)*\\)#", 1);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please try this pattern:

#\\(([0-9]++)(?:,\\s*([0-9]++))?\\)#

It seems to be more efficient

@sjinks updated size_pattern
@sjinks updated pattern
@dreamsxin
Copy link
Contributor Author

Thank you for help, @sjinks.

phalcon pushed a commit that referenced this pull request Jul 27, 2013
@phalcon phalcon merged commit 975e8bd into phalcon:1.2.2 Jul 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants