Changeset 262
- Timestamp:
- 08/03/06 13:24:22 (2 years ago)
- Files:
-
- eaccelerator/trunk/ChangeLog (modified) (1 diff)
- eaccelerator/trunk/ea_dasm.c (modified) (1 diff)
- eaccelerator/trunk/ea_info.c (modified) (8 diffs)
- eaccelerator/trunk/ea_restore.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/trunk/ChangeLog
r259 r262 1 2006-08-03 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 2 3 * zend_do_inheritance can't be called with TSRMLS_CC when using 4 php 4, this also means that eAccelerator won't work with threading! 5 * ea_info and ea_dasm: if eaccelerator_mm_instance is NULL, just return 6 null and don't do something. 7 1 8 2006-07-30 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 2 9 eaccelerator/trunk/ea_dasm.c
r254 r262 556 556 return; 557 557 558 if ( php_check_open_basedir(file TSRMLS_CC)) {558 if (eaccelerator_mm_instance == NULL || php_check_open_basedir(file TSRMLS_CC)) { 559 559 RETURN_NULL(); 560 560 } 561 561 562 562 p = get_cache_entry(file); 563 563 if (p == NULL) { eaccelerator/trunk/ea_info.c
r254 r262 220 220 { 221 221 zend_bool enable; 222 222 223 if (eaccelerator_mm_instance == NULL) { 224 RETURN_NULL(); 225 } 226 223 227 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &enable) == FAILURE) 224 228 return; … … 246 250 zend_bool enable; 247 251 252 if (eaccelerator_mm_instance == NULL) { 253 RETURN_NULL(); 254 } 255 248 256 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &enable) == FAILURE) 249 257 return; … … 271 279 time_t t; 272 280 281 if (eaccelerator_mm_instance == NULL) { 282 RETURN_NULL(); 283 } 284 273 285 if (!isAdminAllowed(TSRMLS_C)) { 274 286 zend_error(E_WARNING, NOT_ADMIN_WARNING); … … 294 306 unsigned int i; 295 307 ea_cache_entry *p; 308 309 if (eaccelerator_mm_instance == NULL) { 310 RETURN_NULL(); 311 } 296 312 297 313 if (!isAdminAllowed(TSRMLS_C)) { … … 376 392 shm = (char *)mm_shm_type(); 377 393 sem = (char *)mm_sem_type(); 394 395 if (eaccelerator_mm_instance == NULL) { 396 RETURN_NULL(); 397 } 398 378 399 available = mm_available (eaccelerator_mm_instance->mm); 379 400 … … 409 430 int i; 410 431 411 if (!isAdminAllowed(TSRMLS_C)) { 432 if (eaccelerator_mm_instance == NULL) { 433 RETURN_NULL(); 434 } 435 436 if (!isAdminAllowed(TSRMLS_C)) { 412 437 zend_error(E_WARNING, NOT_ADMIN_WARNING); 413 438 RETURN_NULL(); … … 442 467 zval *script; 443 468 469 if (eaccelerator_mm_instance == NULL) { 470 RETURN_NULL(); 471 } 472 444 473 if (!isAdminAllowed(TSRMLS_C)) { 445 474 zend_error(E_WARNING, NOT_ADMIN_WARNING); … … 469 498 PHP_FUNCTION(eaccelerator_list_keys) 470 499 { 471 if (eaccelerator_ list_keys(return_value TSRMLS_CC)) {500 if (eaccelerator_mm_instance == NULL && eaccelerator_list_keys(return_value TSRMLS_CC)) { 472 501 return; 473 502 } else { eaccelerator/trunk/ea_restore.c
r255 r262 874 874 #endif 875 875 if (to->parent) 876 #ifdef ZEND_ENGINE_2 876 877 zend_do_inheritance(to, to->parent TSRMLS_CC); 878 #else 879 zend_do_inheritance(to, to->parent); 880 #endif 877 881 EAG(class_entry) = old; 878 882