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

parsing of ini files. #829

Merged
merged 1 commit into from
Jul 12, 2013
Merged

parsing of ini files. #829

merged 1 commit into from
Jul 12, 2013

Conversation

kjdev
Copy link
Contributor

@kjdev kjdev commented Jul 11, 2013

No section.

# test.ini
hoge=test
foo=bar

# PHP
$config = new \Phalcon\Config\Adapter\Ini(__DIR__ . '/test.ini');
$config->toArray();
// => Fatal error: Phalcon\Config\Adapter\Ini::__construct(): The argument is not iterable()

// => Update:
// array(2) {
//   'hoge' => "test"
//   'foo' => "bar"
// }

No section items.

# test.ini
[section]
hoge=test
[empty]
[test]
foo=bar

# PHP
$config = new \Phalcon\Config\Adapter\Ini(__DIR__ . '/test.ini');
$config->toArray();
// =>
// array(2) {
//   'section' => array(1) { 'hoge' => "test" }
//   'test' => array(1) { 'foo' => "bar" }
// }

// => UPDATE:
// array(2) {
//   'section' => array(1) { 'hoge' => "test" }
//   'empty' => array(0) {}
//   'test' => array(1) { 'foo' => "bar" }
// }

No section.
No section items.
phalcon pushed a commit that referenced this pull request Jul 12, 2013
parsing of ini files.
@phalcon phalcon merged commit a9069f1 into phalcon:master Jul 12, 2013
@phalcon
Copy link
Collaborator

phalcon commented Jul 12, 2013

Thanks!

@ghost
Copy link

ghost commented Jul 13, 2013

@phalcon Are you sure you wanted to merge it to master, not to 1.2.1?

@phalcon
Copy link
Collaborator

phalcon commented Jul 13, 2013

:(

@ghost ghost mentioned this pull request Jul 13, 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