PHPUnit stürzt ab mit XAMPP 1.8.1 und XDEBUG

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

PHPUnit stürzt ab mit XAMPP 1.8.1 und XDEBUG

Postby xant » 04. January 2013 12:47

Hallo,

ich habe phpunit mittels pear erfolgreich installiert.

Code: Select all
C:\xampp\php>phpunit --version
PHPUnit 3.7.10 by Sebastian Bergmann.


Wenn ich nun mein Unittest starte (über die Eingabeaufforderung)

Code: Select all
phpunit unit/UserTest.php


stürzt phpunit ab. "CLI funktioniert nicht mehr".

Damit PHPUnit richtig funktioniert, muss mit xdebug aktiviert sein.

Dies habe ich auch getan. In der php.ini wird xdebug erfolgreich geladen

Code: Select all
phpinfo()
PHP Version => 5.4.7

System => Windows NT DABE-PC 6.1 build 7601 (Windows 7 Business Edition Service Pack 1) i586
Build Date => Sep 12 2012 23:44:56
Compiler => MSVC9 (Visual C++ 2008)
Architecture => x86
Configure Command => cscript /nologo configure.js  "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--with-mcrypt=static" "--disable-static-analyze" "--with-pgo"
Server API => Command Line Interface
Virtual Directory Support => enabled
Configuration File (php.ini) Path => C:\Windows
Loaded Configuration File => C:\xampp\php\php-cli.ini
Scan this dir for additional .ini files => (none)
Additional .ini files parsed => (none)
PHP API => 20100412
PHP Extension => 20100525
Zend Extension => 220100525
Zend Extension Build => API220100525,TS,VC9
PHP Extension Build => API20100525,TS,VC9
Debug Build => no
Thread Safety => enabled
Zend Signal Handling => disabled
Zend Memory Manager => enabled
Zend Multibyte Support => provided by mbstring
IPv6 Support => enabled
DTrace Support => disabled

Registered PHP Streams => php, file, glob, data, http, ftp, zip, compress.zlib, compress.bzip2, phar
Registered Stream Socket Transports => tcp, udp
Registered Stream Filters => convert.iconv.*, mcrypt.*, mdecrypt.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, zlib.*, bzip2.*

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
    with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans


Wenn ich es aber ausführe, stürzt es ab.

Hat schon jemand anderes damit Erfahrungen gemacht? Xdebug ist für phpunit zwingend notwendig.

Der XDebug Wizard ist auch grün.
http://xdebug.org/wizard.php

Summary

Xdebug installed: 2.2.1
Server API: Command Line Interface
Windows: yes - Compiler: MS VC9 - Architecture: x86
Zend Server: no
PHP Version: 5.4.7
Zend API nr: 220100525
PHP API nr: 20100525
Debug Build: no
Thread Safe Build: yes
Configuration File Path: C:\Windows
Configuration File: C:\xampp\php\php-cli.ini
Extensions directory: C:\xampp\php\ext
You're already running the latest Xdebug version

But here are the instructions anyway:

Download php_xdebug-2.2.1-5.4-vc9.dll
Move the downloaded file to C:\xampp\php\ext
Update C:\xampp\php\php-cli.ini and change the line
zend_extension = C:\xampp\php\ext\php_xdebug-2.2.1-5.4-vc9.dll


Ich nutze Windows 7 / 64bit.
Xampp als Vollversion installiert (1.8.1).

Code: Select all
C:\xampp\php>php -v
PHP 5.4.7 (cli) (built: Sep 12 2012 23:48:31)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
    with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans
xant
 
Posts: 2
Joined: 04. January 2013 12:40
Operating System: Windows 7 64bit

Re: PHPUnit stürzt ab mit XAMPP 1.8.1 und XDEBUG

Postby xant » 07. January 2013 22:55

Problem ist gelöst.

Ich hatte das yii Framework genutzt. Mit der Version 1.1.13 klappts nun. (Hatte 1.1.12).
xant
 
Posts: 2
Joined: 04. January 2013 12:40
Operating System: Windows 7 64bit


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 54 guests