Raised This Month: $51 Target: $400
 12% 

INI_ParseFile's return value;


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
PartialCloning
Senior Member
Join Date: Dec 2015
Old 06-20-2016 , 05:51   INI_ParseFile's return value;
Reply With Quote #1

INI_ParseFile returns false if you end the parsing by returning false in the newsection function. I'm guessing that's the intended behavior but it should return true if it's able to find and parse a part of the file.

This can be tested by adding the following at the top of the "ReadCSDM_NewSection" in the test file:

PHP Code:
if(equal(section"secondary"))
       return 
false
It will print "Fatal parse error", even after it parsed a part of the file.
PartialCloning is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode