php - yaml_emit_file() not working. Call to undefined function yaml_emit_file() -


the php function yaml_emit_file() not working. have installed , included php_yaml.dll in php.ini file restarted server still when use function, error (when run composer):

call undefined function rs\composer\yaml_emit_file() 

okay little background:

php version 7.1.7 & composer version 1.5.1

i using function in scripthandler.php file invoked when composer run. in script have function buildmodulelist called on post-update-cmd event of composer. else in code working fine.

i in doubt maybe using function in wrong context or that.

here code snippet using yaml_emit_file() (providing reference, tell me if using wrong way!):

if (!$fs->exists($modulelistfile)) {   $fs->touch($root.'/profiles/thunder/modulelist.yml');   $fs->chmod($root . '/profiles/thunder/modulelist.yml', 0666);    if(!empty($modulelist)){     $createyml= yaml_emit_file($modulelistfile, $modulelist);     if (!$createyml){       $io->writeerror('<error>cannot create modulelist.yml</error>');     }   }   $io->write('success: created new modulelist.yml', $newline= true); } else{   $fs->file_put_contents($modulelistfile, $installedpackage, file_append);   $io->write('success: module entry in modulelist.yml', $newline= true); } 


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -