Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Fix graphme_substr for PHP >= 5.4.18 or >=5.5.1 #5575

Closed
wants to merge 3 commits into from
Closed

Fix graphme_substr for PHP >= 5.4.18 or >=5.5.1 #5575

wants to merge 3 commits into from

Conversation

Maks3w
Copy link
Member

@Maks3w Maks3w commented Dec 2, 2013

Due the changes introduced in the intl extension for fix #62759 now the third argument returns an empty string if is null or 0

Open issue #66219 due the new bug introduced in the previous change.

This fix the issue when $length argument is null but not when is 0

Due the changes introduced in the intl extension for fix #62759 now the third argument returns an empty string if is null or 0

Open bug #66219 due the BC break introduced in the previous change.
@marc-mabe
Copy link
Member

Please add a test for the intl wrapper and write a comment containing the minimal PHP version fixed - so if we bump up the required version we can better find such hacks to remove.

@Maks3w
Copy link
Member Author

Maks3w commented Dec 2, 2013

@marc-mabe This PR fix the issue with Zend\Validator test run.

Also there is no reason for raise the minimum version. This is a new bug introduced in the mentioned versions.

@@ -428,6 +428,10 @@ public function testIssnWithMod0()
*/
public function testCODE128()
{
if (!extension_loaded('iconv')) {
$this->markTestSkipped('Missing ext/intl');
Copy link
Contributor

Choose a reason for hiding this comment

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

$this->markTestSkipped('Missing ext/iconv'); ?

@ghost ghost assigned weierophinney Dec 5, 2013
weierophinney added a commit that referenced this pull request Dec 5, 2013
Fix graphme_substr for PHP >= 5.4.18 or >=5.5.1
weierophinney added a commit that referenced this pull request Dec 5, 2013
- s/intl/iconv/
weierophinney added a commit that referenced this pull request Dec 5, 2013
@Maks3w Maks3w deleted the hotfix/php-62759 branch December 7, 2013 10:14
weierophinney added a commit to zendframework/zend-stdlib that referenced this pull request May 15, 2015
…x/php-62759

Fix graphme_substr for PHP >= 5.4.18 or >=5.5.1
weierophinney added a commit to zendframework/zend-stdlib that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-stdlib that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
…x/php-62759

Fix graphme_substr for PHP >= 5.4.18 or >=5.5.1
weierophinney added a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants