Précédent   Forum des professionnels en informatique > PHP > Bibliothèques et frameworks > symfony
symfony Forum d'entraide sur le framework PHP symfony. Avant de poster : cours symfony et FAQ symfony
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 26/06/2007, 21h33   #1
Membre confirmé
 
Inscription : août 2003
Messages : 225
Détails du profil
Informations personnelles :
Âge : 30
Localisation : France, Paris (Île de France)

Informations forums :
Inscription : août 2003
Messages : 225
Points : 225
Points : 225
Envoyer un message via MSN à Steph82
Par défaut Mysql extension not loaded

Bonjour,

alors voila 3j que je me prends la tête la dessus. J'ai W2K, j'ai éssayé sous EasyPhp, WAMP et Mov'Amp et toujours le même problème. J'ai suivi les tuts dont Askeet, j'ai installé mon sf_sandbox, jusque la pas de problème, j'accède bien a ma page.

J'ai créé une base nommée symfony (login/mdp: user/pass) avec quelques tables. Je voudrais générer le schema.xml pour générer par la suite le model.
Je tappe la commande normal:
symfony propel-build-schema et voila ce que j'obtiens:

Code :
1
2
3
4
5
6
7
8
9
10
11
12
     [echo] +-----------------------------------------------+
     [echo] |                                               |
     [echo] | Generating XML from Creole connection !       |
     [echo] |                                               |
     [echo] +-----------------------------------------------+
[propel-creole-transform] Propel - CreoleToXMLSchema starting
[propel-creole-transform] Your DB settings are:
[propel-creole-transform] driver : (default)
[propel-creole-transform] URL : mysql://user:pass@localhost/symfony
[propel-creole-transform] There was an error building XML from metadata: mysql extension not loaded [User Info: Array]
[propel-creole-transform] Propel - CreoleToXMLSchema finished
Je ne vois pas d'ou cela vient ?! mes fichiers propel.ini et databases.yml semblent bon:


Code :
1
2
3
4
5
6
7
propel.targetPackage       = lib.model
propel.packageObjectModel  = true
propel.project             = sf_sandbox
propel.database            = mysql
propel.mysql.tableType     = InnoDB
propel.database.createUrl  = mysql://localhost/
propel.database.url        = mysql://user:pass@localhost/symfony


Code :
1
2
3
4
5
all:
  propel:
    class:          sfPropelDatabase
    param:
    dsn:          mysql://user:pass@localhost/symfony

Mon php.ini est aussi bon pour les extensions:
Code :
1
2
extension=php_mysql.dll
extension=php_mysqli.dll
J'ai fais une connection directe avec la basse de données, un simple mysql_connect() et la connection marche. Je n'arrive pas à comprendre pourquoi la connexion semble ne pas s'etablir pour créer le schema.


Merci de m'aider, je suis sous WAMP5 1.7.2 et Symfony 1.0.4
Steph82 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/06/2007, 16h58   #2
Rédacteur
 
Avatar de Yogui
 
Homme Guillaume Rossolini
Directeur technique
Inscription : février 2004
Messages : 13 720
Détails du profil
Informations personnelles :
Nom : Homme Guillaume Rossolini
Localisation : France

Informations professionnelles :
Activité : Directeur technique

Informations forums :
Inscription : février 2004
Messages : 13 720
Points : 17 355
Points : 17 355
Salut

Peux-tu vérifier avec phpinfo(), à tout hasard ?
__________________
Mes articles - Zend Certified Engineer (PHP + Zend Framework)
Ressources PHP - Ressources Zend Framework
Yogui est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 03/07/2007, 10h53   #3
Membre confirmé
 
Inscription : août 2003
Messages : 225
Détails du profil
Informations personnelles :
Âge : 30
Localisation : France, Paris (Île de France)

Informations forums :
Inscription : août 2003
Messages : 225
Points : 225
Points : 225
Envoyer un message via MSN à Steph82
Voila mon PHP Info:

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
 
PHP Version 5.2.0 
 
System  Windows NT PC1132 5.0 build 2195  
Build Date  Nov 2 2006 11:50:55  
Configure Command  cscript /nologo configure.js " --enable-snapshot-build" " --with-gd=shared"  
Server API  Apache 2.0 Handler  
Virtual Directory Support  enabled  
Configuration File (php.ini) Path  D:\EasyPhp\apache\php.ini  
PHP API  20041225  
PHP Extension  20060613  
Zend Extension  220060519  
Debug Build  no  
Thread Safety  enabled  
Zend Memory Manager  enabled  
IPv6 Support  enabled  
Registered PHP Streams  php, file, data, http, ftp, compress.zlib  
Registered Stream Socket Transports  tcp, udp  
Registered Stream Filters  convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*  
 
 This program makes use of the Zend Scripting Language Engine:
Zend  Engine  v2.2.0,  Copyright  (c)  1998-2006  Zend  Technologies
 
 
 
--------------------------------------------------------------------------------
 
PHP Credits
 
--------------------------------------------------------------------------------
 
Configuration
PHP Core
Directive Local Value Master Value 
allow_call_time_pass_reference Off Off 
allow_url_fopen On On 
allow_url_include Off Off 
always_populate_raw_post_data Off Off 
arg_separator.input &  &  
arg_separator.output &  &  
asp_tags Off Off 
auto_append_file no value no value 
auto_globals_jit On On 
auto_prepend_file no value no value 
browscap no value no value 
default_charset no value no value 
default_mimetype text/html text/html 
define_syslog_variables Off Off 
disable_classes no value no value 
disable_functions no value no value 
display_errors On On 
display_startup_errors Off Off 
doc_root no value no value 
docref_ext no value no value 
docref_root no value no value 
enable_dl On On 
error_append_string no value no value 
error_log no value no value 
error_prepend_string no value no value 
error_reporting 6143 6143 
expose_php On On 
extension_dir D:\EasyPhp\\php5\ext\ D:\EasyPhp\\php5\ext\ 
file_uploads On On 
highlight.bg #FFFFFF #FFFFFF 
highlight.comment #FF8000 #FF8000 
highlight.default #0000BB #0000BB 
highlight.html #000000 #000000 
highlight.keyword #007700 #007700 
highlight.string #DD0000 #DD0000 
html_errors On On 
ignore_repeated_errors Off Off 
ignore_repeated_source Off Off 
ignore_user_abort Off Off 
implicit_flush Off Off 
include_path .; D:\EasyPhp\\php5\pear\ .; D:\EasyPhp\\php5\pear\ 
log_errors On On 
log_errors_max_len 1024 1024 
magic_quotes_gpc Off Off 
magic_quotes_runtime Off Off 
magic_quotes_sybase Off Off 
mail.force_extra_parameters no value no value 
max_execution_time 30 30 
max_input_time 60 60 
open_basedir no value no value 
output_buffering 4096 4096 
output_handler no value no value 
post_max_size 8M 8M 
precision 14 14 
realpath_cache_size 16K 16K 
realpath_cache_ttl 120 120 
register_argc_argv Off Off 
register_globals Off Off 
register_long_arrays Off Off 
report_memleaks On On 
report_zend_debug On On 
safe_mode Off Off 
safe_mode_exec_dir no value no value 
safe_mode_gid Off Off 
safe_mode_include_dir no value no value 
sendmail_from no value no value 
sendmail_path no value no value 
serialize_precision 100 100 
short_open_tag Off Off 
SMTP localhost localhost 
smtp_port 25 25 
sql.safe_mode Off Off 
track_errors Off Off 
unserialize_callback_func no value no value 
upload_max_filesize 2M 2M 
upload_tmp_dir D:\EasyPhp\\tmp\ D:\EasyPhp\\tmp\ 
user_dir no value no value 
variables_order GPCS GPCS 
xmlrpc_error_number 0 0 
xmlrpc_errors Off Off 
y2k_compliance On On 
zend.ze1_compatibility_mode Off Off 
 
 
apache2handler
Apache Version  Apache/2.2.3 (Win32) PHP/5.2.0  
Apache API Version  20051115  
Server Administrator  admin@localhost  
Hostname:Port  localhost:0  
Max Requests  Per Child: 0 - Keep Alive: on - Max Per Connection: 100  
Timeouts  Connection: 300 - Keep-Alive: 5  
Virtual Server  No  
Server Root  D:/EasyPhp/apache  
Loaded Modules  core mod_win32 mpm_winnt http_core mod_so mod_actions mod_alias mod_asis mod_auth_basic mod_authn_default mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_dir mod_env mod_imagemap mod_include mod_isapi mod_log_config mod_mime mod_negotiation mod_setenvif mod_userdir mod_php5  
 
Directive Local Value Master Value 
engine 1 1 
last_modified 0 0 
xbithack 0 0 
 
 
Apache Environment
Variable Value 
TMP  D:/EasyPhp/tmp  
HTTP_ACCEPT  image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*  
HTTP_REFERER  <a href="http://127.0.0.1/home/" target="_blank">http://127.0.0.1/home/</a>  
HTTP_ACCEPT_LANGUAGE  fr  
HTTP_ACCEPT_ENCODING  gzip, deflate  
HTTP_USER_AGENT  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)  
HTTP_HOST  127.0.0.1  
HTTP_CONNECTION  Keep-Alive  
PATH  C:\oracle\ora92\bin; C:\WINNT\system32; C:\WINNT; C:\WINNT\System32\Wbem; C:\WINNT\system32\nls; C:\WINNT\system32\nls\FRANCAIS; D:\Program Files\IDM Computer Solutions\UltraEdit-32; C:\Program Files\Java\jdk1.5.0_08\bin; D:\maven-2.0.5\bin; D:\EasyPhp\Apache\bin; D:\EasyPhp\PHP5  
SystemRoot  C:\WINNT  
COMSPEC  C:\WINNT\system32\cmd.exe  
PATHEXT  .COM; .EXE; .BAT; .CMD; .VBS; .VBE; .JS; .JSE; .WSF; .WSH  
WINDIR  C:\WINNT  
SERVER_SIGNATURE  no value  
SERVER_SOFTWARE  Apache/2.2.3 (Win32) PHP/5.2.0  
SERVER_NAME  127.0.0.1  
SERVER_ADDR  127.0.0.1  
SERVER_PORT  80  
REMOTE_ADDR  127.0.0.1  
DOCUMENT_ROOT  D:/EasyPhp/www  
SERVER_ADMIN  admin@localhost  
SCRIPT_FILENAME  D:/EasyPhp/home/phpinfo.php  
REMOTE_PORT  4386  
GATEWAY_INTERFACE  CGI/1.1  
SERVER_PROTOCOL  HTTP/1.1  
REQUEST_METHOD  GET  
QUERY_STRING  no value  
REQUEST_URI  /home/phpinfo.php  
SCRIPT_NAME  /home/phpinfo.php  
 
 
HTTP Headers Information
HTTP Request Headers 
HTTP Request  GET /home/phpinfo.php HTTP/1.1  
Accept  image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*  
Referer  <a href="http://127.0.0.1/home/" target="_blank">http://127.0.0.1/home/</a>  
Accept-Language  fr  
Accept-Encoding  gzip, deflate  
User-Agent  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)  
Host  127.0.0.1  
Connection  Keep-Alive  
HTTP Response Headers 
X-Powered-By  PHP/5.2.0  
 
 
bcmath
BCMath support  enabled  
 
 
calendar
Calendar support  enabled  
 
 
com_dotnet
COM support enabled 
DCOM support disabled 
.Net support enabled 
 
Directive Local Value Master Value 
com.allow_dcom 0 0 
com.autoregister_casesensitive 1 1 
com.autoregister_typelib 0 0 
com.autoregister_verbose 0 0 
com.code_page no value no value 
com.typelib_file no value no value 
 
 
ctype
ctype functions  enabled  
 
 
date
date/time support  enabled  
Timezone Database Version  2006.14  
Timezone Database  internal  
Default timezone  Europe/Paris  
 
Directive Local Value Master Value 
date.default_latitude 31.7667 31.7667 
date.default_longitude 35.2333 35.2333 
date.sunrise_zenith 90.583333 90.583333 
date.sunset_zenith 90.583333 90.583333 
date.timezone no value no value 
 
 
dom
DOM/XML  enabled  
DOM/XML API Version  20031129  
libxml Version  2.6.26  
HTML Support  enabled  
XPath Support  enabled  
XPointer Support  enabled  
Schema Support  enabled  
RelaxNG Support  enabled  
 
 
filter
Input Validation and Filtering enabled 
Revision  $Revision: 1.52.2.25 $  
 
Directive Local Value Master Value 
filter.default unsafe_raw unsafe_raw 
filter.default_flags no value no value 
 
 
ftp
FTP support  enabled  
 
 
gd
GD Support  enabled  
GD Version  bundled (2.0.28 compatible)  
FreeType Support  enabled  
FreeType Linkage  with freetype  
FreeType Version  2.1.9  
T1Lib Support  enabled  
GIF Read Support  enabled  
GIF Create Support  enabled  
JPG Support  enabled  
PNG Support  enabled  
WBMP Support  enabled  
XBM Support  enabled  
 
 
hash
hash support  enabled  
Hashing Engines  md4 md5 sha1 sha256 sha384 sha512 ripemd128 ripemd160 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32 crc32b haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5  
 
 
iconv
iconv support  enabled  
iconv implementation  " libiconv"  
iconv library version  1.9  
 
Directive Local Value Master Value 
iconv.input_encoding ISO-8859-1 ISO-8859-1 
iconv.internal_encoding ISO-8859-1 ISO-8859-1 
iconv.output_encoding ISO-8859-1 ISO-8859-1 
 
 
json
json support  enabled  
json version  1.2.1  
 
 
libxml
libXML support  active  
libXML Version  2.6.26  
libXML streams  enabled  
 
 
mbstring
Multibyte Support  enabled  
Multibyte string engine  libmbfl  
Multibyte (japanese) regex support  enabled  
Multibyte regex (oniguruma) version  4.4.4  
Multibyte regex (oniguruma) backtrack check  On  
 
mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1. 
 
Directive Local Value Master Value 
mbstring.detect_order no value no value 
mbstring.encoding_translation Off Off 
mbstring.func_overload 0 0 
mbstring.http_input pass pass 
mbstring.http_output pass pass 
mbstring.internal_encoding no value no value 
mbstring.language neutral neutral 
mbstring.strict_detection Off Off 
mbstring.substitute_character no value no value 
 
 
mysql
MySQL Support enabled 
Active Persistent Links  0  
Active Links  0  
Client API version  5.0.22  
 
Directive Local Value Master Value 
mysql.allow_persistent On On 
mysql.connect_timeout 60 60 
mysql.default_host no value no value 
mysql.default_password no value no value 
mysql.default_port no value no value 
mysql.default_socket no value no value 
mysql.default_user no value no value 
mysql.max_links Unlimited Unlimited 
mysql.max_persistent Unlimited Unlimited 
mysql.trace_mode Off Off 
 
 
mysqli
MysqlI Support enabled 
Client API library version  5.0.22  
Client API header version  5.0.22  
MYSQLI_SOCKET  /tmp/mysql.sock  
 
Directive Local Value Master Value 
mysqli.default_host no value no value 
mysqli.default_port 3306 3306 
mysqli.default_pw no value no value 
mysqli.default_socket no value no value 
mysqli.default_user no value no value 
mysqli.max_links Unlimited Unlimited 
mysqli.reconnect Off Off 
 
 
odbc
ODBC Support enabled 
Active Persistent Links  0  
Active Links  0  
ODBC library  Win32  
 
Directive Local Value Master Value 
odbc.allow_persistent On On 
odbc.check_persistent On On 
odbc.default_db no value no value 
odbc.default_pw no value no value 
odbc.default_user no value no value 
odbc.defaultbinmode return as is return as is 
odbc.defaultlrl return up to 4096 bytes return up to 4096 bytes 
odbc.max_links Unlimited Unlimited 
odbc.max_persistent Unlimited Unlimited 
 
 
pcre
PCRE (Perl Compatible Regular Expressions) Support  enabled  
PCRE Library Version  6.7 04-Jul-2006  
 
 
PDO
PDO support enabled 
PDO drivers  sqlite  
 
 
pdo_sqlite
PDO Driver for SQLite 3.x enabled 
PECL Module version  1.0.1 $Id: pdo_sqlite.c,v 1.10.2.6 2006/01/01 12:50:12 sniper Exp $  
SQLite Library  3.3.7undefined  
 
 
Reflection
Reflection enabled 
Version  $Id: php_reflection.c,v 1.164.2.33.2.31 2006/10/18 16:35:15 johannes Exp $  
 
 
session
Session Support  enabled  
Registered save handlers  files user  
Registered serializer handlers  php php_binary wddx  
 
Directive Local Value Master Value 
session.auto_start Off Off 
session.bug_compat_42 Off Off 
session.bug_compat_warn On On 
session.cache_expire 180 180 
session.cache_limiter nocache nocache 
session.cookie_domain no value no value 
session.cookie_httponly Off Off 
session.cookie_lifetime 0 0 
session.cookie_path / / 
session.cookie_secure Off Off 
session.entropy_file no value no value 
session.entropy_length 0 0 
session.gc_divisor 1000 1000 
session.gc_maxlifetime 1440 1440 
session.gc_probability 1 1 
session.hash_bits_per_character 5 5 
session.hash_function 0 0 
session.name PHPSESSID PHPSESSID 
session.referer_check no value no value 
session.save_handler files files 
session.save_path D:\EasyPhp\\tmp\ D:\EasyPhp\\tmp\ 
session.serialize_handler php php 
session.use_cookies On On 
session.use_only_cookies Off Off 
session.use_trans_sid 0 0 
 
 
SimpleXML
Simplexml support enabled 
Revision  $Revision: 1.151.2.22.2.15 $  
Schema support  enabled  
 
 
SPL
SPL support enabled 
Interfaces  Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject  
Classes  AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilterIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RegexIterator, RuntimeException, SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage, SplTempFileObject, UnderflowException, UnexpectedValueException  
 
 
standard
Regex Library  Bundled library enabled  
Dynamic Library Support  enabled  
Internal Sendmail Support for Windows  enabled  
 
Directive Local Value Master Value 
assert.active 1 1 
assert.bail 0 0 
assert.callback no value no value 
assert.quiet_eval 0 0 
assert.warning 1 1 
auto_detect_line_endings 0 0 
default_socket_timeout 60 60 
safe_mode_allowed_env_vars PHP_ PHP_ 
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH 
url_rewriter.tags a=href,area=href,frame=src,input=src,form=fakeentry a=href,area=href,frame=src,input=src,form=fakeentry 
user_agent no value no value 
 
 
tokenizer
Tokenizer Support  enabled  
 
 
wddx
WDDX Support enabled 
WDDX Session Serializer  enabled  
 
 
xml
XML Support  active  
XML Namespace Support  active  
libxml2 Version  2.6.26  
 
 
xmlreader
XMLReader  enabled  
 
 
xmlwriter
XMLWriter  enabled  
 
 
xsl
XSL  enabled  
libxslt Version  1.1.17  
libxslt compiled against libxml Version  2.6.26  
EXSLT  enabled  
libexslt Version  0.8.13  
 
 
zlib
ZLib Support  enabled  
Stream Wrapper support  compress.zlib://  
Stream Filter support  zlib.inflate, zlib.deflate  
Compiled Version  1.2.3  
Linked Version  1.2.3  
 
Directive Local Value Master Value 
zlib.output_compression Off Off 
zlib.output_compression_level -1 -1 
zlib.output_handler no value no value 
 
 
Additional Modules
Module Name 
 
 
Environment
Variable Value 
no value  G:=G:\  
no value  H:=H:\  
no value  I:=I:\  
no value  R:=R:\  
no value  Z:=Z:\  
ALLUSERSPROFILE  C:\Documents and Settings\All Users  
APPDATA  C:\Documents and Settings\usernt\Application Data  
CLASSPATH  .; C:\WINNT\JavaCls0  
CommonProgramFiles  C:\Program Files\Fichiers communs  
COMPUTERNAME  PC1132  
ComSpec  C:\WINNT\system32\cmd.exe  
HOMEDRIVE  C:  
HOMEPATH  \  
JAVA_HOME  C:\Program Files\Java\jdk1.5.0_08  
LC_ALL  en_US.UTF-8  
LOGONSERVER  \\PC1132  
MAVEN_OPTS  -Dfile.encoding=UTF-8  
NUMBER_OF_PROCESSORS  2  
NWLANGUAGE  francais  
NWUSERNAME  sbouclier  
OS  Windows_NT  
Os2LibPath  C:\WINNT\system32\os2\dll;  
Path  C:\oracle\ora92\bin; C:\WINNT\system32; C:\WINNT; C:\WINNT\System32\Wbem; C:\WINNT\system32\nls; C:\WINNT\system32\nls\FRANCAIS; D:\Program Files\IDM Computer Solutions\UltraEdit-32; C:\Program Files\Java\jdk1.5.0_08\bin; D:\maven-2.0.5\bin; D:\EasyPhp\Apache\bin; D:\EasyPhp\PHP5  
PATHEXT  .COM; .EXE; .BAT; .CMD; .VBS; .VBE; .JS; .JSE; .WSF; .WSH  
PROCESSOR_ARCHITECTURE  x86  
PROCESSOR_IDENTIFIER  x86 Family 15 Model 6 Stepping 5, GenuineIntel  
PROCESSOR_LEVEL  15  
PROCESSOR_REVISION  0605  
ProgramFiles  C:\Program Files  
SystemDrive  C:  
SystemRoot  C:\WINNT  
TEMP  C:\DOCUME~1\usernt\LOCALS~1\Temp  
TMP  C:\DOCUME~1\usernt\LOCALS~1\Temp  
USERDOMAIN  PC1132  
USERNAME  usernt  
USERPROFILE  C:\Documents and Settings\usernt  
windir  C:\WINNT  
WINDOWS_LOGIN  0  
AP_PARENT_PID  1756  
 
 
PHP Variables
Variable Value 
_SERVER["TMP"] D:/EasyPhp/tmp 
_SERVER["HTTP_ACCEPT"] image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */* 
_SERVER["HTTP_REFERER"] <a href="http://127.0.0.1/home/" target="_blank">http://127.0.0.1/home/</a> 
_SERVER["HTTP_ACCEPT_LANGUAGE"] fr 
_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate 
_SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322) 
_SERVER["HTTP_HOST"] 127.0.0.1 
_SERVER["HTTP_CONNECTION"] Keep-Alive 
_SERVER["PATH"] C:\oracle\ora92\bin; C:\WINNT\system32; C:\WINNT; C:\WINNT\System32\Wbem; C:\WINNT\system32\nls; C:\WINNT\system32\nls\FRANCAIS; D:\Program Files\IDM Computer Solutions\UltraEdit-32; C:\Program Files\Java\jdk1.5.0_08\bin; D:\maven-2.0.5\bin; D:\EasyPhp\Apache\bin; D:\EasyPhp\PHP5 
_SERVER["SystemRoot"] C:\WINNT 
_SERVER["COMSPEC"] C:\WINNT\system32\cmd.exe 
_SERVER["PATHEXT"] .COM; .EXE; .BAT; .CMD; .VBS; .VBE; .JS; .JSE; .WSF; .WSH 
_SERVER["WINDIR"] C:\WINNT 
_SERVER["SERVER_SIGNATURE"] no value 
_SERVER["SERVER_SOFTWARE"] Apache/2.2.3 (Win32) PHP/5.2.0 
_SERVER["SERVER_NAME"] 127.0.0.1 
_SERVER["SERVER_ADDR"] 127.0.0.1 
_SERVER["SERVER_PORT"] 80 
_SERVER["REMOTE_ADDR"] 127.0.0.1 
_SERVER["DOCUMENT_ROOT"] D:/EasyPhp/www 
_SERVER["SERVER_ADMIN"] admin@localhost 
_SERVER["SCRIPT_FILENAME"] D:/EasyPhp/home/phpinfo.php 
_SERVER["REMOTE_PORT"] 4386 
_SERVER["GATEWAY_INTERFACE"] CGI/1.1 
_SERVER["SERVER_PROTOCOL"] HTTP/1.1 
_SERVER["REQUEST_METHOD"] GET 
_SERVER["QUERY_STRING"] no value 
_SERVER["REQUEST_URI"] /home/phpinfo.php 
_SERVER["SCRIPT_NAME"] /home/phpinfo.php 
_SERVER["PHP_SELF"] /home/phpinfo.php 
_SERVER["REQUEST_TIME"] 1183452698
Steph82 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 03/07/2007, 11h55   #4
Rédacteur
 
Avatar de Yogui
 
Homme Guillaume Rossolini
Directeur technique
Inscription : février 2004
Messages : 13 720
Détails du profil
Informations personnelles :
Nom : Homme Guillaume Rossolini
Localisation : France

Informations professionnelles :
Activité : Directeur technique

Informations forums :
Inscription : février 2004
Messages : 13 720
Points : 17 355
Points : 17 355
Peux-tu vérifier combien de php.ini tu as, et où ils se trouvent ? C'est apparemment un problème récurrent : PHP CLI utilise son propre php.ini, qui n'est pas le même que le php.ini utilisé par Apache.
__________________
Mes articles - Zend Certified Engineer (PHP + Zend Framework)
Ressources PHP - Ressources Zend Framework
Yogui est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 29/07/2007, 14h45   #5
Membre actif
 
Inscription : juin 2003
Messages : 228
Détails du profil
Informations personnelles :
Âge : 29

Informations forums :
Inscription : juin 2003
Messages : 228
Points : 182
Points : 182
J'ai eu exactement le même problème, et en effet, c'est bien lié au php.ini. Pour corriger le problèmes, 2 solutions :

Lors de l'utilisation de php CLI :

Code :
1
2
 
php -c c:\path\to\php.ini\directory\ symfony ...
pour éviter de se trainer le "-c", j'ai recopier le php.ini de Apache dans le répertoire contenant l'executable de php CLI.

Voila
pedouille est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 05/09/2007, 12h08   #6
Membre à l'essai
 
Inscription : mars 2006
Messages : 43
Détails du profil
Informations personnelles :
Âge : 38

Informations forums :
Inscription : mars 2006
Messages : 43
Points : 24
Points : 24
Envoyer un message via Skype™ à chaporon
Par défaut Modification du fichier symfony.bat

Un grand merci pour la solution.

Pour moi, la recopie du php.ini n'a pas fonctionné sous EasyPHP.

J'ai modifié le fichier CLI symfony.bat qui se trouve en fonction de l'installation soit:
- à la racine du répertoire d'installation de php
- à la racine du site web
pour rajouter l'option -c (-c "C:\Program Files\EasyPHP\apache") en permanence.

Code :
1
2
3
4
5
6
 
IF EXIST ".\symfony" (
  %PHP_COMMAND% -c "C:\Program Files\EasyPHP\apache" -d html_errors=off -d open_basedir= -q ".\symfony" %1 %2 %3 %4 %5 %6 %7 %8 %9
) ELSE (
  %PHP_COMMAND% -d html_errors=off -d open_basedir= -q "%SCRIPT_DIR%\symfony" %1 %2 %3 %4 %5 %6 %7 %8 %9
)
chaporon est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 24/09/2007, 23h40   #7
Membre confirmé
 
Inscription : août 2003
Messages : 225
Détails du profil
Informations personnelles :
Âge : 30
Localisation : France, Paris (Île de France)

Informations forums :
Inscription : août 2003
Messages : 225
Points : 225
Points : 225
Envoyer un message via MSN à Steph82
Bon, j'ai recopié le php.ini, ca n'a pas marché. J'ai ecris:

Code :
1
2
3
4
5
IF EXIST ".\symfony" (
  %PHP_COMMAND% -c "F:\server2go\server\Apache" -d html_errors=off -d open_basedir= -q ".\symfony" %1 %2 %3 %4 %5 %6 %7 %8 %9
) ELSE (
  %PHP_COMMAND% -d html_errors=off -d open_basedir= -q "%SCRIPT_DIR%\symfony" %1 %2 %3 %4 %5 %6 %7 %8 %9
)
je me retrouve avec des warnings:


Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
 
F:\server2go\htdocs\prjAnu2>symfony propel-build-schema
PHP Warning:  PHP Startup: Unable to load dynamic library '%CDPMS:SRVDIR%php\ext
\php_gd2.dll' - Le module spÚcifiÚ est introuvable.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '%CDPMS:SRVDIR%php\ext
\php_mssql.dll' - Le module spÚcifiÚ est introuvable.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '%CDPMS:SRVDIR%php\ext
\php_pdo.dll' - Le module spÚcifiÚ est introuvable.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '%CDPMS:SRVDIR%php\ext
\php_sqlite.dll' - Le module spÚcifiÚ est introuvable.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '%CDPMS:SRVDIR%php\ext
\php_mysql.dll' - Le module spÚcifiÚ est introuvable.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '%CDPMS:SRVDIR%php\ext
\php_mysqli.dll' - Le module spÚcifiÚ est introuvable.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '%CDPMS:SRVDIR%php\ext
\php_pdo_sqlite.dll' - Le module spÚcifiÚ est introuvable.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '%CDPMS:SRVDIR%php\ext
\php_pdo_pgsql.dll' - Le module spÚcifiÚ est introuvable.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '%CDPMS:SRVDIR%php\ext
\php_pdo_mysql.dll' - Le module spÚcifiÚ est introuvable.
 in Unknown on line 0
Buildfile: F:\server2go\htdocs\symfony-1.0.7\lib\vendor\propel-generator\build.x
ml
[resolvepath] Resolved F:\server2go\htdocs\prjAnu2/config to F:\server2go\htdocs
\prjAnu2\config
 
propel-project-builder > check-project-or-dir-set:
 
propel-project-builder > check-project-set:
 
propel-project-builder > set-project-dir:
 
propel-project-builder > check-buildprops-exists:
 
propel-project-builder > check-buildprops-for-propel-gen:
 
propel-project-builder > check-buildprops:
 
propel-project-builder > configure:
     [echo] Loading project-specific props from F:\server2go\htdocs\prjAnu2\conf
ig/propel.ini
 [property] Loading F:\server2go\htdocs\prjAnu2\config\propel.ini
 
propel-project-builder > creole:
    [phing] Calling Buildfile 'F:\server2go\htdocs\symfony-1.0.7\lib\vendor\prop
el-generator\build-propel.xml' with target 'creole'
 [property] Loading F:\server2go\htdocs\symfony-1.0.7\lib\vendor\propel-generato
r\.\default.properties
 
propel > creole:
     [echo] +-----------------------------------------------+
     [echo] |                                               |
     [echo] | Generating XML from Creole connection !       |
     [echo] |                                               |
     [echo] +-----------------------------------------------+
[propel-creole-transform] Propel - CreoleToXMLSchema starting
[propel-creole-transform] Your DB settings are:
[propel-creole-transform] driver : (default)
[propel-creole-transform] URL : mysql://symfony:symfony@localhost/prjanu2
[propel-creole-transform] There was an error building XML from metadata: mysql e
xtension not loaded [User Info: Array]
[propel-creole-transform] Propel - CreoleToXMLSchema finished
 
BUILD FINISHED
 
Total time: 1.9955 second

Je comprends pas pourquoi il me met:
[propel-creole-transform] Your DB settings are:
[propel-creole-transform] driver : (default)

Il charge rien du tout. Bon entre temps j'ai reformaté le PC, tout réinstallé. Dsl pour le delai de reponse, j'avais un peu laissé tombé.

Je crois que je vais passer a Doctrine
Steph82 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/09/2007, 14h06   #8
Rédacteur
 
Avatar de Yogui
 
Homme Guillaume Rossolini
Directeur technique
Inscription : février 2004
Messages : 13 720
Détails du profil
Informations personnelles :
Nom : Homme Guillaume Rossolini
Localisation : France

Informations professionnelles :
Activité : Directeur technique

Informations forums :
Inscription : février 2004
Messages : 13 720
Points : 17 355
Points : 17 355
Cela me semble assez simple, symfony ne trouve pas tes extensions PHP. Attention, il me semble que les extensions PHP de symfony ne se trouvent pas au même endroit que pour ton serveur Web (ce qui est normal puisque c'est CLI et non Web), vérifie donc qu'elles se trouvent aux deux endroits.
__________________
Mes articles - Zend Certified Engineer (PHP + Zend Framework)
Ressources PHP - Ressources Zend Framework
Yogui est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 29/09/2007, 13h47   #9
Membre confirmé
 
Inscription : août 2003
Messages : 225
Détails du profil
Informations personnelles :
Âge : 30
Localisation : France, Paris (Île de France)

Informations forums :
Inscription : août 2003
Messages : 225
Points : 225
Points : 225
Envoyer un message via MSN à Steph82
Oui surement Mais ce qui m'étonne c'est que j'ai fais a peut pres tout les tutoriels possibles, suivi toute les installations sur plusieurs serveurs différents, recréé toutes mes variables d'environnement,... aucun moyen de faire marcher Propel. En fait c'est bien lui qui 'foire' puisque je ne peux pas créer mon modèle à partir de ma base et vice versa.
C'est dommage sinon le reste fonctionnait bien.

Bon en tout cas, ce n'est pas grave, je suis passé à Zend Framework puisqu'ils ont sorti une stable release, et là plus de soucis d'ORM.

En tout cas, merci pour votre aide et votre patience
Steph82 est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 22h45.


 
 
 
 
Partenaires

Hébergement Web