File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / ereg / tests / ereg_variation_004.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:54 2012 UTC (12 years, 5 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

--TEST--
Test ereg() function : usage variations - pass non-variable as arg 3, which is pass-by-ref.
--FILE--
<?php
/* Prototype  : proto int ereg(string pattern, string string [, array registers])
 * Description: Regular expression match 
 * Source code: ext/standard/reg.c
 * Alias to functions: 
 */

var_dump(ereg('l{2}', 'hello', str_repeat('x',1)));
echo "Done";
?>
--EXPECTF--
Strict Standards: Only variables should be passed by reference in %s on line %d

Deprecated: Function ereg() is deprecated in %s on line %d
int(2)
Done

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>