4

I working on project, developed with Zend Framework and decided to do some work at home, but i ran in strange problem: when I open home page of that website on my local machine, it closes connetcion immediately and Windows error pops up, saying that apache was crashed (but actually it isn't).

So by switching to another revisions of project I've found that problem occurs, when one of Zend Framework files (actually Zend_Auth class) has 8 spaces of indentation in one of methods (someone of our team modified that file, and then has deleted his changes, leaving spaces there).

Interesting thing: if i delete or add space to line, that makes it happen, website works as normal, if I return those 8 spaces, it would be broken again.

My specs:

Windows 7 Apache 2.2.22 (from www.apachelounge.com) installed as service (running from system user account) PHP 5.3

EDIT: If someone interesting, those spaces are in file Auth.php (Zend_Auth class) at line 118. You could try it on your projects with your setups.

hjdm
  • 227
  • 1
  • 3
  • 13
  • if you use 2 or 3 spaces instead of 8, would it crash ? – HamZa Jul 01 '12 at 14:09
  • Could one of those spaces be some other invisible unicode 'character'?What happens if you erase those 8 spaces and insert 8 'homespun' spaces? – jgivoni Jul 01 '12 at 14:23
  • To HamZa DzCyberDeV:No! I've tried 2,3,7,9 spaces and it works just fine! Only 8 spaces make it happen. – hjdm Jul 01 '12 at 14:27
  • To jgivoni: I deleted all spaces and inserted 8 normal spaces again - the problem is still there! – hjdm Jul 01 '12 at 14:30
  • @hjdm how about any other lines? (and please [use the `@name` syntax when replying](http://stackoverflow.com/editing-help#comment-formatting)) – Alvin Wong Jul 01 '12 at 14:39
  • @AlvinWong I've tried several lines with code and without code in Auth.php - result is the same. However, in other files (index.php, IndexController.php) 8 spaces do nothing. Maybe I need to do some more experiments. – hjdm Jul 01 '12 at 16:31
  • "saying that apache was crashed (but actually it isn't)" <- Not the whole apache has crashed, but at least a server pool process (perhaps even a CGI process). I'm pretty sure it is not a bug of apache but has something to do with PHP or the apache PHP handler. Could you please tell us the complete/exact PHP version (5.3.X?) – Briareos386 Jul 05 '12 at 07:41

1 Answers1

2

It's a shot in the dark, but then it's a weird problem you've got: Could it be a case of the "Bush hid the facts" surprise? (see also this SO question). It kind of smells like it since adding or deleting a space makes the problem disappear... and you did say you're running Windows.

Community
  • 1
  • 1
alexis
  • 48,685
  • 16
  • 101
  • 161