1
Vote

Windows Azure SDK for PHP 4.1.0 / Bug while running scaffolder command line

description

Hi,
 
I was running the command line:
scaffolder run -out=./sample
 
When I got these errors:
 
2: Error in C:\Program Files (x86)\Windows Azure SDK for PHP 4.1.0\scaffolders\DefaultScaffolder.phar:224 - unpack(): Type V: not enough input, need 4, have 0
2: Error in C:\Program Files (x86)\Windows Azure SDK for PHP 4.1.0\scaffolders\DefaultScaffolder.phar:228 - unpack(): Type V: not enough input, need 4, have 0
2: Error in C:\Program Files (x86)\Windows Azure SDK for PHP 4.1.0\scaffolders\DefaultScaffolder.phar:228 - array_values(): The argument should be an array
8: Error in C:\Program Files (x86)\Windows Azure SDK for PHP 4.1.0\scaffolders\DefaultScaffolder.phar:232 - Undefined offset: 2
8: Error in C:\Program Files (x86)\Windows Azure SDK for PHP 4.1.0\scaffolders\DefaultScaffolder.phar:233 - Undefined offset: 5
8: Error in C:\Program Files (x86)\Windows Azure SDK for PHP 4.1.0\scaffolders\DefaultScaffolder.phar:234 - Undefined offset: 4
 
Do you know where there could come from?
 
Thanks in advance,
 
@+ rv.

comments

blobaugh wrote Mar 4, 2012 at 11:06 PM

Windows may be getting confused by the "./sample". May be too unix-y. Try using just "sample". Also, using the quotes can sometimes help.

Let me know how that works

arcturien wrote Mar 5, 2012 at 9:32 PM

Hi,

With "sample" or sample I got the same errors. I'll try to re-install and re-test this on another machine... just to be sure.

Thanks,

@+ rv.

blobaugh wrote Mar 6, 2012 at 1:33 AM

Hrm, I do not think that any changes have been made to cause that script to give that output. Maybe try putting in an entire path in quotes.

arcturien wrote Mar 6, 2012 at 2:25 PM

I've just reinstall everything (PHP and Windows Azure DSK for PHP) on another machine and everything is ok!!!

:-)

I'll check later why on the first machine I've got these errors...
:-/

Thanks again for your time.

@+ rv.

arcturien wrote Mar 6, 2012 at 7:49 PM

Hi all, after installing PHP and PHP SDK for Azure on another machine every thing was fine!!!

I've rechecked my first machine config and found that in the %path% env parameter there was two versions of PHP installed. After removing the wrong one every thing went wright!!!
:-)

It was just a config issue!!!

Thanks for your help anyway!!!

@+ rv.

arcturien wrote Mar 6, 2012 at 7:55 PM

It was a config issue!!!

Two versions of PHP were used in the %path% env. parameter.

Thanks for your attention.

@+ rv.

blobaugh wrote Mar 6, 2012 at 8:30 PM

Very interesting. Thank you for reporting back. I had not seen that issue with the command line tools before, only with IIS. Another tool for the belt :)

arcturien wrote Mar 7, 2012 at 5:28 PM

I was using two versions of PHP on my path env parameter.

After removing the wrong one (PHP 4.XX) every thing is now ok.

Thanks for your support and your time!!!

@+ rv.

arcturien wrote Mar 7, 2012 at 5:29 PM

I was using two versions of PHP on my path env parameter.

After removing the wrong one (PHP 4.XX) every thing is now ok.

Thanks for your support and your time!!!

@+ rv.

arcturien wrote Mar 7, 2012 at 5:31 PM

Sorry for the spamming but it seems like my last comments are only visible when you "edit" this ticket.

@+ rv.

wrote Feb 14, 2013 at 7:27 PM